< asp:button text="Submit" onclientclick="Page_ClientValidate('ValidationGroup'); return (Page_IsValid && confirm('Are you sure?'));" onclick="Button1_Click" runat="server" id="Button1">< /asp:button >

Sometimes it is handy to have a quick overview of all the assemblies that your C# program has loaded. Maybe because you are trying to debug a version conflict, or because you want to distribute your application and want to get an idea of its dependencies.

To find the loaded assemblies we first need to determine the current AppDomain (it is possible for your application to have more than one AppDomain, but in that case you have created the second one yourself). Each AppDomain keeps a list of Assemblies it is using and in the following example code we query it using the GetAssemblies() method.

using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();

foreach (Assembly MyAssembly in AssembliesLoaded)
{
Console.WriteLine("Loaded: {0}", MyAssembly.FullName);
}
Console.ReadLine();
}
}
}

hi friends if you get crystal report toolbar images in local but do not get on server do this steps


1. copy this folder "CrystalReportWebFormViewer3" to project directory from following path Copy C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727
\CrystalReportWebFormViewer3

2. and add these two properties

< id="CrystalReportViewer1" runat="server" autodatabind="true" hascrystallogo="False" enabledatabaselogonprompt="False" enableparameterprompt="False" grouptreeimagesfolderurl="CrystalReportWebFormViewer3/images/tree/" toolbarimagesfolderurl="CrystalReportWebFormViewer3/images/toolbar/">

3. upload CrystalReportWebFormViewer3 folder also on server

  • Datagrid has built in paging sorting and editing capabilities which are not there with the other two controls.
  • Datalist has a property called repeat. Direction = vertical or horizontal.This is most useful in designing layouts.
  • A repeater is used when more intimate control over html generation is required.Repeater is the most customizable. It allows you to create structures like nested lists for example.
  • The Repeater repeats a chunk of HTML you write, it has the least functionality of the three of them. DataList is the next step up from a Repeater; accept you have very little control over the HTML that the control renders. DataList is the first of the three controls that allow you Repeat-Columns horizontally or vertically.
  • Datagrid is most restrictive as regards to customization followed by DataList and finally Repeater is the most customizable. However, instead of working on a row-by-row basis, you’re working on a column-by-column basis. DataGrid caters to sorting and has basic paging for your disposal. NOTE: DataList and DataGrid both render as HTML tables by default.
  • Out of the 3 controls, I use the Repeater the most due to its flexibility. Occasionally I like using a DataList because it allows me to easily list out my records in rows of three for instance.

Create two LinkButton
1>btnshowall
2>btninstock


protected void btnshowall_Click(object sender, EventArgs e)
{
btnshowall.Attributes["OnClick"] = "return false;";
btninstock.Attributes["OnClick"] = "return true;";

btnshowall.CssClass = "inactive-text";
btninstock.CssClass = "active-text";
}
protected void btninstock_Click(object sender, EventArgs e)
{
btninstock.Attributes["OnClick"] = "return false;";
btnshowall.Attributes["OnClick"] = "return true;";

btnshowall.CssClass = "active-text";
btninstock.CssClass = "inactive-text";
}

System.Web.UI.Page page =
(System.Web.UI.Page)HttpContext.Current.Handler;
page.ClientScript.RegisterStartupScript(this.GetType(),"a","alert('Hi kiran');",true);

Put this code in .cs file

protected void Page_Load(object sender, EventArgs e)
{
AdRotator2.DataMember = "bannerid";
AdRotator2.ImageUrlField = "Imageurl";
AdRotator2.DataSource = getbanner(2);
AdRotator2.DataBind();
}
protected void Timer2_Tick2(object sender, EventArgs e)
{
AdRotator2.DataMember = "bannerid";
AdRotator2.ImageUrlField = "Imageurl";
AdRotator2.DataSource = getbanner(2);
AdRotator2.DataBind();
}
protected DataTable getbanner(int type)
{
return (bannerobj.GetBannerDetailByType(type));
}

Put this code in html code

< id="UpdatePanel2" runat="server">
<>
< id="AdRotator2" runat="server" width="199" height="235">
< id="Timer2" runat="server" ontick="Timer2_Tick2" interval="5000">
< /ContentTemplate>
< /asp:UpdatePanel>

ANS :
Yes, we can do this, but for that we must know the error codes; only then we can take the user to a proper error message page.
CustomErrors Configuration section in web.config file:
The default configuration is:
< mode="RemoteOnly" defaultredirect="Default.aspx">
< statuscode="404" redirect="Notfound.aspx">
< /customErrors >
Add an <> tag for each error you want to handle.
The error tag will redirect the user to the Notfound.aspx page when the site returns the 404 (Page not found) error.

ANS:
How to Login with multiple ID in Google Talk ? for that nothing to download just set the property of shortcut of GTalk.
Click start then All Program
find Google talk create new shortcut
drag and drop this new creates shortcut means Google Talk (2) to desktop.
right click Google Talk (2) and select property in property window
target is"C:\Program Files\Google\Google Talk\googletalk.exe" /startmenu
but replace it with "C:\Program Files\Google\Google Talk\googletalk.exe" /nomutex
and click ok.
Double click this Google Talk (2) short cut there is open new Google Talk window as many as u required.
if any query contact me on kiran.d2d@gmail.com


 

| Modified by Kiran Patel |