I have the folloing code:
The code in SIte.Master.cs determines which menu options are shown or hidden.
On second click of the button, the code is redirected to another page and brings up the data correctly in a grid view.
How do I stop the need to click twice? Any help would be great. Thanks in advance.
In Report.aspx
<asp:Button ID="btnCommRpt" runat="server" Text="Create Commissions Report" Width="300px"
OnClick="btnCommRpt_Click" AutoPostBack="True" />
In Report.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!Page.IsPostBack)
{
string str = "";
bool res = false;
SalesDB.UserCheck st = new SalesDB.UserCheck();
res = st.getUName ...
Go to the complete details ...