DataGrid n PostBack Problems

  • Thread starter Thread starter Shahram Khosraviani
  • Start date Start date
S

Shahram Khosraviani

hi,

I fire an method to the fetch the user information only once, which I do it
like



if not ispostback then

validateuser()

End if



Now, there is a datagrid in the same page,


......

<Columns>

<asp:HyperLinkColumn DataNavigateUrlField="Cert_ID"
DataNavigateUrlFormatString="default.aspx?certid={0}"
DataTextField="Cert_ID" HeaderText="Cert ID"></asp:HyperLinkColumn>

......



and i realized that the default page, gets refreshed and acts as though this
is the first time that its being loaded when the link in the datagrid is
clicked, thereby, the method validateuser() gets fired again. Is there a
way, I can avoid this Fresh Refresh ?

Any Suggestions and Advice are greatly appreciated and welcomed.

Thank You
 
I learnt if you use

<asp:ButtonColumn ... />

it works with a postback.

hope it helps everyone else who face the same problems.
 
Back
Top