Posted on 2013-05-20
I am building a list of controls in code behind and putting an id# in a hyperlink.
an HTML hyperlink, not building asp.net controls. (only because I cant figure that out )
I can get it to postback to a button but can't get a value from the postback agument.
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'get arg and do something.
I tried this but cant get the values when the post back happens - it goes to the button1:
<a href="#" onclick="j WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('button1','12', true, "", "", false, false))" /><br />
<a href="#" onclick="j WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('button1','44', true, "", "", false, false))" />
I need to list values - somehow - and when clicking it, it go to code behind with the value of the line.
not wanting to use a gridview.
I have loaded jquery and jquery moble
I'm using vb,net too
thanks, any comments are appreciated.