On the foreground page, put a few textbox, with Readonly=true set not editable, with visible= "False" setting is not visible
When you assign a value to a textbox in jquery, you don't get the value that is filled in the textbox in the background page
Here's how to fix it:
Hide with style= "Display:none" settings
There are several ways to solve a read-only problem:
1, do not set ReadOnly, set Onfocus=this.blur ()
<asp:textbox id="TextBox1" runat="server" onfocus= this. blur () ></asp:TextBox> <asp:textbox id="TextBox1" runat= " server" onfocus=this. blur () ></asp:TextBox>
The text box is not dimmed, but you cannot modify the content manually, and you can use the Text property to assign values in the background
2. After setting the ReadOnly property, the value can be obtained by request:
<asp:textbox id= textbox1 Span style= "color: #800000;" > " Runat=" server " Readonly=" true " ></asp:TextBox> <asp:textbox id=" textbox1 runat=" server readonly=" true ></asp:textbox>
string Text = request.form["TextBox1"string text = request.form[" TextBox1 "]. Trim ();
3. Set the read-only property of the text box at Page_Load ()
protected void Page_Load (object sender, EventArgs e) { if (! Page.IsPostBack) { TextBox1.Attributes.Add ("readonly"," true"); } }
Solve. NET setting is read-only, hidden after background get no value problem