url in cell.innerhtml not doing a postback

P

pradeep

i have a url which i create using <a href=...> tags and it also contains a
query string im passing..when i click on it..the parameters passed in it are
used and are processed in the same page. The issue is when i click on the
resulting url it is not a post back.
'url is a string var
url = "details.aspx?paramWebFormID = " &
Trim(CStr(Columns(cnt).LinkWebFormID)) & "&paramStr = " + sParamStr
this im passing to a cell.innerhtml as <a href = url>...</a>
How do i make the link click an post back??
Thanks in advance!!!
 
W

Wilco Bauwer

Use a linkbutton instead:

<asp:LinkButton Runat="server" OnClick="....">my link</asp:LinkButton>
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top