.net
共 5 篇文章
Repeater中radiobutton使用
今天在编写代码时遇到Repeater控件中的Radiobutton(单选按钮)不能单选,是因为Repeater生成的Radiobutton 的Id是动态生成的,无法单选。我在网上找到一个解决办法,大家有遇到相同问题的,可以来看看。 <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript"> function selectSingleRadio(rbtn1, GroupName) { $("input[type=radio]").eac…
2013-06-27 17:41 · .net
Asp.Net动态添加文本框,并获得文本框的值
前台aspx页面 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="SurveyOnline.test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"…
2013-06-21 15:53 · .net
Asp.Net 执行定时任务
Asp.Net 执行定时任务,我们要在Global.asax.cs中添加如下代码 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.SessionState; namespace SurveyOnline { public class Global : System.Web.HttpApplication { void Application_Start(object sender, E…
2013-06-18 10:48 · .net · ASP.net
Asp.Net Repeater使用
在aspx页面引入Repeater控件,控件必须在<form runat="server" id="xxx"></form>中 <form id="userinfo1_form" runat="server"> <div> <asp:Repeater ID="userlist" runat="server" OnItemCommand="userlist_ItemCommand"> <HeaderTemplate> <table width="700" border="0" cellpadding="3" cellspacing="1" align="center" style="backg…
2013-06-18 10:33 · .net · ASP.net
Asp.Net数据库帮助类 SQLHelper.cs
[code="c#"] using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; using System.Configuration; namespace AcrossDB.Utils { /// ///微软的SqlHelper3.0 /// public sealed class SqlHelper { #region 私有方法,属性和构造函数 public static readonly string ConnectionString…
2013-06-18 10:15 · .net · ASP.net · SQL