日期:2014-05-18 浏览次数:20781 次
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { labUser.Text = Session["userID"].ToString(); imgBtnSubmit.Attributes.Add("OnClick", "javascript:return confirm('确实要交卷吗?')"); lblPaperName.Text = Session["PaperName"].ToString(); InitData(); } } protected void Timer1_Tick(object sender, EventArgs e) { this.Label45.Text= "1"; }
<td align=center><a name="top"></a> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <table> <tr> <td> <font color=#4D2600 size="5"><asp:Label ID="Label7" runat="server" Text="考试试题:"/><asp:Label ID="Label30" runat="server" Text="<<"/><asp:Label ID="lblPaperName" runat="server"></asp:Label><asp:Label ID="Label3" runat="server" Text=">>"/></font> <asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick"> </asp:Timer> <asp:Label ID="Label45" runat="server" Text="Label"></asp:Label> </td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> </td>