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:

http://www.mredkj.com/vbnet/NumericTextBox.html

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 asp.net:

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

//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();
GridView1.DataBind();

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 Studio.net 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:

1-http://resources.businessobjects.com/support/additional_downloads/runtime.asp#09
2-http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/b70c896a-6844-48bb-a966-63a3f589a0f1

For Visual Studio.Net 2010
http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp