I have a textbox
where, through another page I give you an email.
txtemail.text = "[email protected]"
And when my page does load
, in that textbox
it appears: [email protected]
.
But if I try to make a new input
on that textbox
it does not save, always with [email protected]
.
I have AutoPostBack="true"
, I already tried OnTextChanged
but I could not.
I needed something of the sort.
txtemail.text = txtemail.text.newInput()
This is my textbox
<div class="form-group">
<asp:Label ID="LEmailP" runat="server" Text="Para :" Font-Size="Medium" Font-Bold="true"></asp:Label>
<asp:TextBox CssClass="labelEmail" ID="txtEmailP" required="true" MaxLength="50" runat="server" type="text" TabIndex="2" AutoPostBack="true" pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$" title="ex: [email protected]" placeholder="Titular Email"></asp:TextBox>
</div>
I'm passing my email by page here (I put it in page load)
string email = Request.QueryString["email"];
txtEmailP.Text = email;