10 2012 档案
GridView动态添加列
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicGridView.aspx.cs" Inherits="DynamicGridView" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"& 阅读全文
posted @ 2012-10-24 11:48 Black Bean 阅读(1122) 评论(0) 推荐(0)
在GridView中增加LinkButton,出现错误:EnableEventValidation="false"
摘要:错误信息:Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callb 阅读全文
posted @ 2012-10-22 17:28 Black Bean 阅读(478) 评论(0) 推荐(0)
获取按钮回发函数
摘要:在GridView中增加几个按钮:<asp:ButtonField Text="SingleClick" CommandName="SingleClick" Visible="False" /> LinkButton _singleClickButton = (LinkButton)e.Row.Cells[0].Controls[0]; // 返回一个字符串,表示对包含目标控件的 ID 和事件参数的回发函数的 JavaScript 调用 string _jsSingle = ClientScript.GetPostBack 阅读全文
posted @ 2012-10-17 09:58 Black Bean 阅读(161) 评论(0) 推荐(0)
jQuery的post方法使用
摘要:$.post("../URL.ashx", { Parameter1:Parameter1 Value,Parameter2:Parameter2 Value}, function(data){ $("#<%=txtFieldValue.ClientID %>").val(data);//处理返回信息});http handler URL.ashx文件中:context.Response.ContentType = "text/plain"获取传递的参数context.Request("Parameter1&qu 阅读全文
posted @ 2012-10-16 10:12 Black Bean 阅读(191) 评论(0) 推荐(0)