最新评论

共6页: 1 2 3 4 5 6 下一页 
(张超) 2012-02-25 21:56
业务模块 不能独立,打补丁很蛋疼 对bs类程序来说
Apollo222 2011-03-31 08:49
页面中怎么获取返回值呢?
雄健 2010-02-11 15:09
关注BPMS,请问能看到完整示例吗?
中尉 2009-09-06 20:10
@masterfy 文件夹,项目名同,程序集,命名空间不同.以解决方案文件夹主导区分.
masterfy 2009-09-05 14:39
请问楼主你的Core下面的common和DE下面的common这两个项目:文件夹名、.csproj名称、程序集名称、命名空间都相同么?文件夹名称肯定是不同的吧?
lrj 2009-08-13 10:51
我只是这样:cnblogs 中尉
luvan 2009-05-31 15:06
你好,看到你的一些留言,知道你对Sharepoint很厉害,过来请教问题,你可以加我的msn吗?liaotf_soft68@hotmail.com,向你请教哦,先在此谢过了!我的工作邮箱是jihua@linjin.com.cn,请记得回复哦!
预备役中尉 2009-04-26 20:20
@私家侦探
数据访问层可以提供带事务处理的重载,业务层看具体需要有选择调用.就我们目前实际情况,是这样的.

请多指教.
私家侦探 2009-04-26 18:38
事务在哪一层实现?很多人都在数据访问层实现.但是我发现这样做数据访问层的方法重用度都不高啊,还是业务层实现事务控制比较合理
OR 2009-02-17 12:05
这不是用了一个反射就OK了吗?说得这样子,好想很难懂,干嘛不是直接说用反射呢?
丁学 2008-10-18 11:57
老问题,无法解决
jiangzc 2008-10-08 01:18
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
.aspx 文件

<script language="javascript" type="text/javascript">
function SetAllChed(parItem)
{
var item=document.getElementsByTagName("input");
for(i=0;i<item.length;i++)
{
if(parItem.checked)
{
if(item[i].type=="checkbox")
{
item[i].checked=true;
}
}else
{
if(item[i].type=="checkbox")
{
item[i].checked=false;
}
}
}
}

</script>

<strong><span style="color: #ff0000">更改类别:</span></strong><asp:DropDownList runat="server"
ID="ddlSelect" AutoPostBack="True" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged"
Width="143px">
</asp:DropDownList>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>

书籍查询:</strong>
<span style="color: #ff0033">按</span>
<asp:DropDownList runat="server" ID="ddlSearch" Width="64px" Font-Bold="True" ForeColor="Red">
<asp:ListItem>书名</asp:ListItem>
<asp:ListItem>作者</asp:ListItem>
<asp:ListItem>类别</asp:ListItem>
</asp:DropDownList>
<asp:TextBox runat="server" ID="txtSearchStr"></asp:TextBox>
<asp:Button ID="btnSearCh" runat="server" Text="查询" OnClick="btnSearCh_Click" Width="75px" />

<asp:GridView ID="gvmBooks" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
BorderWidth="1px" CellPadding="3" Font-Size="13px" OnPageIndexChanging="gvmBooks_PageIndexChanging"
OnRowDataBound="gvmBooks_RowDataBound" Width="752px" DataKeyNames="Id" PageSize="18" OnPageIndexChanged="gvmBooks_PageIndexChanged">
<FooterStyle BackColor="White" ForeColor="#000066" />
<Columns>
<asp:TemplateField HeaderText="选择">
<ItemTemplate>
<asp:CheckBox ID="cbxSelectState" runat="server" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="60px" />
<HeaderTemplate>
<asp:CheckBox runat="server" ID="ckeAll" onclick="SetAllChed(this)" />全选

</HeaderTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="书名">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# SubStr(Eval("Title"),30) %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="作者">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# SubStr(Eval("author"),10) %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="类别">
<ItemTemplate>
<asp:Label ID="Label3s" runat="server" Text='<%# Eval("Category.Name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<input type="hidden" runat="server" id="hid" style="width: 7px"/>
jiangzc 2008-10-08 01:17
aspx.cs 文件
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
private void BindGridView()//手动绑定gridView
{
this.gvmBooks.DataSource = Book_Info.GetAllbooks();
this.gvmBooks.DataBind();
}

/// <summary>
/// GridView翻页事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void gvmBooks_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
//session 方法
CheckBox che= this.gvmBooks.HeaderRow.FindControl("ckeAll") as CheckBox;
Session["chekState"] = che.Checked.ToString();//把checkBox 选中状态放进Session;


// <input type="hidden" value=""> 记录选中状态
//if (che.Checked)
//{
// this.hid.Value = "true";//把状态结果给 input hidden 标签
//}
//else
//{
// this.hid.Value = "false";
//}


this.gvmBooks.PageIndex = e.NewPageIndex;
BindGridView();
}
/// <summary>
/// GridView 数据绑定后 激发
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void gvmBooks_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType==DataControlRowType.DataRow)
{
//if (this.hid.Value.Equals("true"))//判断 input hidden 的值
//{
// (this.gvmBooks.HeaderRow.FindControl("ckeAll") as CheckBox).Checked = true;
// (e.Row.FindControl("cbxSelectState") as CheckBox).Checked = true;
//}
zxj 2008-09-28 17:40
ok,非常感谢!
Leon916 2008-08-28 17:31
好文章,学习了!!!
聂铭泉 2008-08-18 09:18
加油!
预备役中尉 2008-08-02 12:06
@海风1998
谢谢,向园里曾经军装过的同志致节日问候.
海风1998 2008-08-02 11:24
向军人致敬!八一节快乐!
poop 2008-08-01 11:27
呵呵,收藏!
海风1998 2008-07-30 10:11
相信只要努力就会有收获,祝好运.
共6页: 1 2 3 4 5 6 下一页