hi
how get value query string from javascript,
<script type="text/javascript">
$(document).ready(function () {
var urlParams = new URLSearchParams(window.location.search);
var TextBox1Value = urlParams.get('Textbox1');
var TextBox1 = document.getElementById("<%= TextBox1.ClientID %>");
alert(TextBox1);
if (TextBox1) {
TextBox1.value = TextBox1Value;
} else {
console.error("TextBox1 not found");
}
});
</script>
value http://localhost:53001/form/formemployeenew.aspx?Textbox1=1233
TextBox1Value put to texboxt1
thanks