20071218 javacript form asp.net 控件 css
http://www.yippeesoft.com

.btn_2k3 &leftsign;
BORDER-RIGHT: #002D96 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #002D96 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#9DBCEA); BORDER-LEFT: #002D96 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #002D96 1px solid
&rightsign;

</style></head><body>
<script language="JavaScript">

function removelst(e1, e2)
&leftsign;
     Control = null;
    Control=eval("document.form1.ListBox1");
  
    var j=Control.length;
    if(j==0) return;
    for(j;j>0;j–)
    &leftsign;
     if(Control.options[j-1].selected==true)
     &leftsign;
       Control.remove(j-1);
     &rightsign;
     &rightsign;
              &rightsign;
function movelst(ControlName)
   &leftsign;
    Control = null;
    Control=eval("document.form1.ListBox1");
    Control1 = null;
    Control1=eval("document.form1.TextBox1");
    var j=Control1.length;
    if(j==0) return;
 
   Control.add(new Option(Control1.value,Control1.value));
    &rightsign;
</script>
<form id="form1" runat=server>
    <br />
    <div id="title">
        调查问卷</div>
<div class="row"><label class="col1">
    启用问卷:&nbsp;</label>
<span class="col2">
    <asp:CheckBox ID="CheckBox1" runat="server" /></span>
</div>
<div class="row"><label class="col1comment">
    问卷内容:&nbsp;</label>
<span class="col2comment"><textarea cols="20" class="textarea" rows="4" name="comment" id="comment" tabindex="4"></textarea></span>
</div>
 <div id="title">
        选择答案</div>
<div class="row"><label class="col1">
    选择答案:&nbsp;</label>
<span class="col2">
    <asp:TextBox ID="TextBox1" runat="server" Width="144px"></asp:TextBox></span>
</div>
<div class="row"><label class="col1comment">
    选择答案列表:<br />
    <!– <asp:Button ID="Button3"  Text="新增" CssClass="btn_2k3" OnClientClick="javascript:movelst(document.form1.TextBox1, document.form1.ListBox1)"  /> –>
    <input   alt="send" border="0" height="19" type="button" value="新增" width="52" class="btn_2k3" onclick="javascript:movelst(document.form1.TextBox1, document.form1.Select1)" /><br />
    <br />
    <input   alt="send" border="0" height="19" type="button" value="删除" width="52" class="btn_2k3" onclick="javascript:removelst(document.form1.TextBox1, document.form1.Select1)" /><br />
    <br /></label>
<span class="col2comment">&nbsp;<asp:ListBox ID="ListBox1" runat="server" Height="96px" Width="144px"></asp:ListBox></span></div>
<div class="submit" align="center">
    &nbsp;<asp:Button ID="Button1" runat="server" Text="提交调查问卷" CssClass="btn_2k3" /></div>
</form>

</body></html>

 使用Ajax实现DropDownList和ListBox的联动以及两个ListBox之间数据的移动  
 http://blog.csdn.net/zhanghongqiao/archive/2007/11/23/1899550.aspx

 ASP.NET ListBox刷新的问题
 http://topic.csdn.net/t/20060725/18/4904251.html

 http://singlepine.cnblogs.com/archive/2005/10/15/255353.html
 ListBox(上移,下移,左移,右移)

 js函数绑定到asp.net的控件上:
    用 控件.Attributes.Add(事件,函数) 就可以了,可我在往 CheckBox上加 OnCheckedChanged 事件的时候总是报错。

    在 asp.net 中访问 html 控件:
    一气之下,把所有控件都换成了 html 的,然后在控件上加上 runat=server 这样在 asp.net 中就可以引用了。用 (FindControl(控件id) as html控件类型).属性,如 (this.FindControl("ddlMonth") as HtmlSelect).SelectedIndex ……

    在html网页中读取asp.net的变量
    为了能够在js中读取asp.net中的数据,要保证asp.net中变量的类型js能够分辨,其实想办法变成string的就得了呗!
    其次,要把变量声明为 Public 的。
    在js中使用 变量="<%#asp.net变量名%>";  的形式即可得到变量的值,如 var id = "<%#userid%>"; (asp.net中Public string userid = "zhangsan";

    <script language="JavaScript">
function checkform()&leftsign;
if(document.form1.remark.value.length <0 &line;&line; document.form1.remark.value.length > 100)&leftsign;
alert("长度应为0-100个字符,请重新输入!");
document.form1.remark.focus();
return false;
&rightsign;
&rightsign;
</script>

<form name=form1 method="post" action="****" onSubmit="return checkform()">
</form>

JavaScript添加下拉菜单项 
          var   oOption   =   document.createElement("OPTION"); 
          oOption.value=theArr[i-2]; 
          oOption.text=theArr[i-1]; 
          thisform.kind.options.add(oOption);  

   http://www.soojs.com/d/?textfield=1049

   http://veerle.duoh.com/index.php/blog/comments/styling_forms_in_css/

   http://www.picment.com/articles/css/funwithforms/

   http://www.alistapart.com/articles/taminglists/

   http://blog.d8in.com/posts/92.html
   以下是http://veerle.duoh.com收藏的css相关文章以及站点,分门别类非常的全,如果能把下面的所有链接里面的内容都精通的话,绝对就已经是顶级css高手了。

   http://hi.baidu.com/seowatch/blog/item/98eac919e68f6b79dbb4bd32.html
   Form styling with CSS

   Styling even more form controls
   http://www.456bereastreet.com/archive/200410/styling_even_more_form_controls/

   http://www.456bereastreet.com/lab/form_controls/select/
   Styled select boxes

   Styling form controls
   http://www.456bereastreet.com/archive/200409/styling_form_controls/

   http://www.soojs.com/t/?p=1049&wd=form+%C3%C0%BB%AF&cl=7
   表单form的美化(一系列的美化,都有了)

   Accessible CSS Forms: Using CSS to Create a Two-Column Layout
   http://www.websiteoptimization.com/speed/tweak/forms/

   Styling multiple selection menu controls (select elements) with CSS
   http://www.456bereastreet.com/lab/styling-form-controls-revisited/select-multiple/

   CSS Examples  Tableless forms using CSS

   Applying CSS to forms
   http://www.webcredible.co.uk/user-friendly-resources/css/css-forms.shtml

   HTML里select的CSS样式的改变
   http://www.ui163.com/w3c/second_1499.html

   用CSS设置下拉列表(select)的样式
   http://www.dayjs.com/html/net/css/20070712/6537.html

   用ASP.NET 2.0设计网络在线投票系统
   http://www.knowsky.com/339824.html

   表单制作-用CSS来美化表单
   http://hi.baidu.com/7833532/blog/item/d985721eda8d47f41bd576b9.html

   ASP.NET 2.0中的数据操作:使用两个DropDownList过滤的主/从报表
   http://hi.baidu.com/myaspdotnet/blog/item/44dea5313f7a78a95fdf0e73.html

   利用GridView显示主细表并添加删除、打开、关闭功能(续)

  
 GridView模版列嵌套GirdView显示主从表数据
 http://blog.csdn.net/jianzi1943/archive/2006/12/07/1434194.aspx

 http://eddie005.cnblogs.com/archive/2006/07/04/442845.html

 GridView的主从表编辑和新增
 http://www.cnitblog.com/hj627/archive/2007/04/30/26459.html#26460

 http://blog.csdn.net/lqscoke/archive/2007/06/02/1634974.aspx
 asp.net 2.0 所谓的吐血收藏

 GridView的主从表编辑和新增
 http://www.cnitblog.com/hj627/archive/2007/10/25/26459.html

 http://dotnet.aspx.cc/SearchDoc.aspx?k=gridview

利用GridView显示主细表并一次编辑明细表所有数据的例子
利用GridView显示主细表并添加删除、打开、关闭功能(续)
利用GridView显示主细表并添加打开、关闭功能
一次编辑   GridView   的所有行

private UInt32 UnixStamp()
 &leftsign;
         TimeSpan ts = DateTime.Now – TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
         return Convert.ToUInt32(ts.TotalSeconds);
 &rightsign;
写成函数了.

使用 GUID 值来作为数据库行标识
http://www.fish888.com/GUID-t166178

在.net中创建使用全球唯一标识符

利用GridView显示主细表并一次编辑明细表所有数据的例子

.net 2.0中GridView无限级嵌套的实现
http://overred.cnblogs.com/archive/2006/04/23/382992.html

演练:创建嵌套的 GridView 控件
http://msdn2.microsoft.com/zh-cn/aa992038(vs.80).aspx

Nested GridViews with Skins in ASP.NET
ExtGridView
Drag and drop gridview item for ordering in ASP.Net 2.0
Refresh a GridView control on the parent page, from a pop up window

GridView inline Master/Detail record display

Gridview Inside a GridView in ASP.NET 2.0

ASP.NET 2.0中的数据操作 :: 跨页面的主/从报表
Repeater嵌套使用 (正确)

HOW TO:使用嵌套 Repeater 控件和 Visual C# .Net 显示分层数据

使用嵌套的Repeater控件显示分级数据

使用PagedDataSource类实现DataList和Repeater控件的分页显示功能

在ASP.NET中利用皮肤对GridView控件进行嵌套
ASP.NET2.0利用Gridview实现主从关系

CONVERT(varchar(10),   @BeginDate,120)
CURDATE( )1
GETDATE( ) 或 DATE( )  以日期时间的格式返回当前日期。对于许多其它日期函数,该函数作为输入函数很有用,如计算距当天之前或之后的时间间隔。  

SELECT order_id
FROM orders
WHERE order_date = GETDATE()

Displays orders placed today.

           
      gridview固定列宽,超过内容让其显示省略号… 
      ridView控件——隐藏和显示列

历史博文

标签:, , , , , , , ,
十月 4, 2008 at 9:20 下午 by yippee 1,020 次
Category: Dev
Tags: , , , , , , , ,