1
I have a page with 3 buttons that call the same page and wanted to know if it has how to see which of the 3 buttons called the page. Are buttons Web Forms.
What I did was put them to add a value to a Hidden field to find out on the other page who called.
protected void Button1_Click1(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "3";
}
protected void btnLivro1_Click(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "1";
}
protected void btnLivro2_Click(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "2";
}
Add to your question the code surrounding the 3 buttons and what exactly they do!
– novic
Can be passed as querystring, and on the page called would have to pick up this value on pageload
– Herbert Junior
If you want to get the value on another page, why not save the value on a Session?
– olavooneto