- 爱易网页
-
ASP.NET教程
- asp.net 按钮有关联到事件,点击时却不执行解决办法
日期:2014-05-18 浏览次数:20456 次
asp.net 按钮有关联到事件,点击时却不执行
前台: <%@ Control Language= "c# " AutoEventWireup= "false " Codebehind= "user_left.ascx.cs " Inherits= "online_live.user.user_left " TargetSchema= "http://schemas.microsoft.com/intellisense/ie5 "%>
<table width= "208 " height= "335 " cellspacing= "0 " bgcolor= "#efefe7 " border= "1 ">
<TBODY>
<tr height= "40% ">
<td valign= "top ">
<table width= "100% " height= "160 " border= "1 ">
<tr>
<td height= "31 " colspan= "2 " align= "center " background= "img/gaobei_shardh.gif "> 站内搜索 </td>
</tr>
<tr>
<td colspan= "2 " align= "center "> 请输入你要搜索的内容 </td>
</tr>
<tr>
<td align= "right " width= "83 " valign= "top " style= "WIDTH: 83px; HEIGHT: 37px ">
关键字:
</td>
<td style= "HEIGHT: 37px "> <form name= "form6 " method= "post " action= " ">
<asp:TextBox id= "gjz " runat= "server " Width= "96px "> </asp:TextBox>
</form>
</td>
</tr>
<tr>
<td align= "center " colspan= "2 ">
<asp:Button id= "search " runat= "server " Text= "搜索 "> </asp:Button>
</td>
</tr>
</table>
<table width= "100% " height= "160 " border= "1 ">
<tr>
<td colspan= "2 " align= "center "> 个人资料 </td>
</tr>
<tr>
<td align= "right "> 用户名: </td>
<td>
<asp:Label id= "yhm " runat= "server " Width= "59px "> </asp:Label> </td>
</tr>
<tr>
<td align= "right "> 年龄: </td>
<td>
<asp:Label id= "age " runat= "server " Width= "56px "> </asp:Label> </td>
</tr>
<tr>
<td colspan= "2 " align= "center "> <a href= "user_info.aspx "> 更改我的资料 </a> </td>
</tr>
<tr>
<td colspan= "2 " align= "center "> 上传我的视频 </td>
</tr>
<tr>
<td colspan= "2 " align= "center "> 查看我的视频 </td>
</tr>
</table>
</td>
</tr>
</TBODY>
</table>
后台代码:
namespace online_live.user
{
using System;
using System.Data;
using System.Drawing;