Posts Tagged ‘asp.net’

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:
// [...]


<asp:Wizard>
<StartNavigationTemplate> // <StepNavigationTemplate> also available.
<asp:Button />
</StartNavigationTemplate>
</asp:Wizard>


((Button)wizard1.FindControl(“StartNavigationTemplateContainerID”).FindControl(“btnNext”)).Enabled = true;
This is pretty much about it.. So simple.