Click here to Skip to main content
15,564,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script language ="javascript">

function getPnr()
{
var txtval = document.getElementById('TextBox1').value;
document.getElementById('a1').href="/KB/answers/default.aspx"?param1=" + txtval ;
}

</script>



And anchor tag ...........



HTML
<a class="menu-root " id="ancher"   önclick='getPnr()' href ="#" rel="lyteframe" rev="width: 500px; height:200px; "
                            style="font-family: arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold;  overflow:hidden; ">
                              GO</a>



But in aspx page querystring not find the value which is passed by textbox.
Please correct my code
Posted
Updated 30-Mar-12 0:58am
v2

1 solution

hey,
why u wasting Your time for this use linkbutton it is same as anchor tag
Best luck
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900