Archive for the 'ASP.NET Tips' Category
If you export gridview to excel, sometimes you will face format difference.
For example date field is 082008 on your gridview, but in excel file it becomes 82008. If the excel file is imported to another system or app, it could be a problem.
So here is a solution.
In the middle of your export function, write this:
// [...]
Filed under: ASP.NET Tips | Leave a Comment
Tags: asp.net, cell, excel, export, format, tip
<asp:Wizard>
<StartNavigationTemplate> // <StepNavigationTemplate> also available.
<asp:Button />
</StartNavigationTemplate>
</asp:Wizard>
Filed under: ASP.NET Tips | Leave a Comment
Tags: asp.net, custom, next, wizard
((Button)wizard1.FindControl(“StartNavigationTemplateContainerID”).FindControl(“btnNext”)).Enabled = true;
This is pretty much about it.. So simple.
Filed under: ASP.NET Tips | Leave a Comment
Tags: asp.net, disable, enable, next, wizard
When you want to get a value of a dynamically created control, you need to create the control again while postback.
——————————————————-
for example:
protected void Page_Load(object sender, EventArgs e)
{
if(IsPostBack)
createDynamicDDL();
}
private void createDynamicDDL()
{
DropDownList ddl_1 = new DropDownList();
tc.add(ddl_1); // TableCell(Let’s say tc already exist.)
tr.add(tc);
tbl.add(tr);
}
——————————————————-
Unless you don’t do this, NullReferenceException will be occurred.
Filed under: ASP.NET Tips | Leave a Comment
Tags: dynamic control



