Saturday, March 26, 2011

Numeric textbox in ASP.Net

Although NumericUpDownExtender from Ajax toolkit can be used but it has drawbacks and UI issues as well. So I found the right solution under this URL:

It is really great control and fulfill almost all the needs. It is easy to use and understand.

Monday, March 21, 2011

Populating TimeZone list in ASP.Net

Following code will populate the controls in

//Populating in DropDownList (1)
this.DropDownList1.DataSource = TimeZoneInfo.GetSystemTimeZones();

//Populating in DropDownList (2)
foreach (TimeZoneInfo tmz in TimeZoneInfo.GetSystemTimeZones())
this.DropDownList1.Items.Add(new ListItem(tmz.DisplayName, tmz.Id));
//Populating in GridView
GridView1.DataSource = TimeZoneInfo.GetSystemTimeZones();

Friday, March 18, 2011

How to enter a new Line in ASP.Net

string text = "First Line" + <br/> + "Second Line";
// its result is
First Line
Second Line

Sunday, March 6, 2011

Crystal Reports Merge Modules for Visual Studio.Net 2008, 2010

There are no merger modules for Basic Crystal Report for Microsoft Visual 2008. Merge modules can be found until Vs.Net 2005. But now you have to install a redistributable
 .msi package located under “C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x86.msi”.
Following are the helpful links:


For Visual Studio.Net 2010