HOw to display the button id
-
Hello I am a beginner and I really need hlp The problem is that :- I want to display the Button id of the button which has been clicked on a new page on being clicked and the text also i mean buton.text.
Mrinal
Do you mean that you want to pass the button ID and TEXT to the new page on the click of a Button? If yes... On the button click event use Reponse.Redirect to call the new page. Along wi the page URL you can pass the button ID and TEXT as query string values. something like this...
Response.Redirect("NewPage.aspx?btnId=" + btn.ID + "&btntext=" + btn.Text, False)
and In the New page you can retrieve the values using Request object.Request.QueryString("btnId") Request.QueryString("btntext")
the above statement will give you the vaues that you passed from the actual page.Regards
J O H N :rose:
"Even eagles need a push." David McNally
-
Do you mean that you want to pass the button ID and TEXT to the new page on the click of a Button? If yes... On the button click event use Reponse.Redirect to call the new page. Along wi the page URL you can pass the button ID and TEXT as query string values. something like this...
Response.Redirect("NewPage.aspx?btnId=" + btn.ID + "&btntext=" + btn.Text, False)
and In the New page you can retrieve the values using Request object.Request.QueryString("btnId") Request.QueryString("btntext")
the above statement will give you the vaues that you passed from the actual page.Regards
J O H N :rose:
"Even eagles need a push." David McNally