问题描述
解决方案
把你的Form的Designer.cs全文贴出来看
解决方案二:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Login" %>
<!DOCTYPE html>
<br>
.*<br>
{ <br>
margin:0 aoto; <br>
}</p>
<pre><code>.hd
{
font-weight :600;
font-size:inherit ;
}
table
{
margin:0 aoto;
}
td
{
text-align:right;
}
.style1
{
width: 80px;
}
.style2
{
font-size: medium;
}
.style3
{
color: #FF0000;
}
</style>
</code></pre>
<p></head><br>
<body></p>
<div></div>
<pre><code><form id="form1" runat="server"; height="80px">
<div style="height: 180px; width: 1829px"></div>
<div id="head" class="hd" align="center" >
<span class="style2"><span class="style3">连接客服要验证码,QQ:896351151
</span>
</code></pre>
<p><br class="style3" /><br>
</span><br>
<br hright="30px" />淘宝运营技术交流QQ群:129577203<br>
</div></p>
<pre><code><div style="height: 30px; width: 1829px"></div>
<div id="id">
<table align="center" >
<tr>
<td>电影1验证码</td>
<td class="style2"><asp:TextBox ID="TextBox1" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button2" runat="server" Height="25px" OnClick="Button1_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影2-卖家自己拍后再付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox2" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button1" runat="server" Height="25px" OnClick="Button2_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影3-从淘助手进入付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox3" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button3" runat="server" Height="25px" OnClick="Button3_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影4-窗口变小再付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox4" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button4" runat="server" Height="25px" OnClick="Button4_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影5-付款后却显示失败》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox5" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button5" runat="server" Height="25px" OnClick="Button5_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影6-付款成功扣款却大于扣款额》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox6" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button6" runat="server" Height="25px" OnClick="Button6_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影7-付款成功退款却退至支付宝》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox7" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button7" runat="server" Height="25px" OnClick="Button7_Click" Text="提 交" Width="80px" /></td>
</tr>
</table>
</div>
</form>
</code></pre>
<p></body><br>
</html></p>
<pre><code>
</code></pre>
解决方案三:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Login" %>
<!DOCTYPE html>
<br>
.*<br>
{ <br>
margin:0 aoto; <br>
}</p>
<pre><code>.hd
{
font-weight :600;
font-size:inherit ;
}
table
{
margin:0 aoto;
}
td
{
text-align:right;
}
.style1
{
width: 80px;
}
.style2
{
font-size: medium;
}
.style3
{
color: #FF0000;
}
</style>
</code></pre>
<p></head><br>
<body></p>
<div></div>
<pre><code><form id="form1" runat="server"; height="80px">
<div style="height: 180px; width: 1829px"></div>
<div id="head" class="hd" align="center" >
<span class="style2"><span class="style3">连接客服要验证码,QQ:896351151
</span>
</code></pre>
<p><br class="style3" /><br>
</span><br>
<br hright="30px" />淘宝运营技术交流QQ群:129577203<br>
</div></p>
<pre><code><div style="height: 30px; width: 1829px"></div>
<div id="id">
<table align="center" >
<tr>
<td>电影1验证码</td>
<td class="style2"><asp:TextBox ID="TextBox1" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button2" runat="server" Height="25px" OnClick="Button1_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影2-卖家自己拍后再付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox2" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button1" runat="server" Height="25px" OnClick="Button2_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影3-从淘助手进入付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox3" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button3" runat="server" Height="25px" OnClick="Button3_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影4-窗口变小再付款》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox4" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button4" runat="server" Height="25px" OnClick="Button4_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影5-付款后却显示失败》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox5" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button5" runat="server" Height="25px" OnClick="Button5_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影6-付款成功扣款却大于扣款额》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox6" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button6" runat="server" Height="25px" OnClick="Button6_Click" Text="提 交" Width="80px" /></td>
</tr>
<tr>
<td>《电影7-付款成功退款却退至支付宝》验证码</td>
<td class="style2"><asp:TextBox ID="TextBox7" runat="server" Width="206px" ></asp:TextBox></td>
<td class="style1"> <asp:Button ID="Button7" runat="server" Height="25px" OnClick="Button7_Click" Text="提 交" Width="80px" /></td>
</tr>
</table>
</div>
</form>
</code></pre>
<p></body><br>
</html></p>
解决方案四:
解决方案五:
我没看到哪里有tb2这个TextBox服务端控件。
解决方案六:
id值绑定错了,换一下就就可以了
解决方案七:
控件名字要一致,tb2,teb1....
找不到控件的原因,除了后置代码头部设置不准确外,还一个常见的就是控件名字(Id)不一致。
解决方案八:
你的代码里,那个控件的变量名
改了
解决方案九:
看下aspx文件的Inherits,确定下是不是多个aspx文件引用的同一个Inherits。