Wayne Barron
asked on
vb.net pass querystring to asp:textbox
Hello All;
I found out that I cannot do something like this.
Cannot have a codeblock in the asp tag.
I can do it old school.
(But this causes the following error:
Invalid postback or callback argument.)
So, what to do?
How can I pass the querystring value to the field, without causing an error, and get the data, to finish processing the form?
I read that I could do an Eventhandler, however. I have no idea on where to even start on that one.
Thanks All
Carrzkiss
I found out that I cannot do something like this.
Cannot have a codeblock in the asp tag.
<asp:TextBox ID="email" runat="server"><%=Request.QueryString("email") %></asp:TextBox>
I can do it old school.
(But this causes the following error:
Invalid postback or callback argument.)
<input type="text" ID="email" name="email" readonly value="<%=Request.QueryString("email") %>" />
So, what to do?
How can I pass the querystring value to the field, without causing an error, and get the data, to finish processing the form?
I read that I could do an Eventhandler, however. I have no idea on where to even start on that one.
Thanks All
Carrzkiss
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
btw, your scripts posted should work well.
<script runat="server">
Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs) Handles Me.Load
Myemail.Text = Request.QueryString("email")
End Sub
</script>
ASKER
I found the code from an asp.net forum to use.
Easy to implement and works like a charm.
Wayne
Easy to implement and works like a charm.
Wayne