click on hyperlink to call datagrid

B

Britney

I have the following simple dataForm sample, basically I can click on a
button then return the datagrid.dataBind().
but I want to convert my button to a hyperlink, how do I do that? Is that
possible?




<TD><asp:button id="buttonLoad" accessKey="L" runat="server"
Text="Load"></asp:button>



public void buttonLoad_Click(object sender, System.EventArgs e)
{
try
{
this.LoadDataSet();
this.masterDataGrid.SelectedIndex = -1;
this.masterDataGrid.DataBind();
}
catch (System.Exception eLoad)
{
this.Response.Write(eLoad.Message);
}
 
C

Carl Prothman [MVP]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top