I want to write a very simple function that will call a web page and pass the clicked button id along. The problem is I don't know how to get the button's id because I generate it programmaticall y!!!
Below is the code that I'm sticking with
<code>
<input id="<%GetButton Id(); %>" type="button" value="<%=GetSt ring()%>"
onclick="window .open('OpenIt.a spx','Temp','wi dth=1040,height =570,left=0,top =100,screenX=0, screenY=100')" />
</code>
In the onclick funtion, I want to pass the button Id along, not just open OpenIt page.
Some kind of "OpenIt.aspx?bu ttonId" but I don't know how to get the button Id and insert it in since the button id is dynamically assigned. I'm thinking about THIS object but it's not available.
Any ides is welcome. Thanks guys.
Below is the code that I'm sticking with
<code>
<input id="<%GetButton Id(); %>" type="button" value="<%=GetSt ring()%>"
onclick="window .open('OpenIt.a spx','Temp','wi dth=1040,height =570,left=0,top =100,screenX=0, screenY=100')" />
</code>
In the onclick funtion, I want to pass the button Id along, not just open OpenIt page.
Some kind of "OpenIt.aspx?bu ttonId" but I don't know how to get the button Id and insert it in since the button id is dynamically assigned. I'm thinking about THIS object but it's not available.
Any ides is welcome. Thanks guys.