Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridview ClientSide column add and remove Pin
GaryT8018-Aug-06 10:11
GaryT8018-Aug-06 10:11 
AnswerRe: Gridview ClientSide column add and remove Pin
Mike Ellison18-Aug-06 10:47
Mike Ellison18-Aug-06 10:47 
GeneralRe: Gridview ClientSide column add and remove Pin
GaryT8021-Aug-06 12:10
GaryT8021-Aug-06 12:10 
QuestionGridview Searching and Filtering Pin
GaryT8018-Aug-06 10:09
GaryT8018-Aug-06 10:09 
AnswerRe: Gridview Searching and Filtering [modified] Pin
Brent Lamborn18-Aug-06 12:03
Brent Lamborn18-Aug-06 12:03 
GeneralRe: Gridview Searching and Filtering Pin
GaryT8021-Aug-06 4:16
GaryT8021-Aug-06 4:16 
GeneralRe: Gridview Searching and Filtering Pin
Brent Lamborn21-Aug-06 4:23
Brent Lamborn21-Aug-06 4:23 
GeneralRe: Gridview Searching and Filtering [modified] Pin
GaryT8021-Aug-06 5:56
GaryT8021-Aug-06 5:56 
I have tried everything to make it work me page minus other code is below.

By the way thank you for your help.

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.highlight {text-decoration:none; font-weight:bold; color:black; background:yellow;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="../CPC_Testing/CPCLite_Test.aspx"><b>View Images</b></a>
&nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CellPadding="1" ForeColor="#333333" GridLines="None" Height="399px" Width="716px" style="table-layout: auto; font-size: x-small; z-index: 100; left: 254px; position: absolute; top: 148px;" AutoGenerateSelectButton="True" DataKeyNames="BegDoc#" BorderStyle="Solid" EmptyDataText="NULL" HorizontalAlign="Center">
<Columns>
<asp:CommandField />
<asp:TemplateField HeaderText="P">
<ItemTemplate>
<asp:CheckBox ID="PrivCheckBox" runat=server />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="C">
<ItemTemplate>
<asp:CheckBox ID="ConfidentialCheckBox" runat=server />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="HC">
<ItemTemplate>
<asp:CheckBox ID="HCCheckBox" runat=server />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="R">
<ItemTemplate>
<asp:CheckBox ID="ResponsiveCheckBox" runat=server />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NR">
<ItemTemplate>
<asp:CheckBox ID="NonResponsiveCheckBox" runat=server />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="BegAttch" HeaderText="BegAttch" />
<asp:BoundField DataField="Folder" HeaderText="Folder" SortExpression="Folder" />
<asp:BoundField DataField="DocDate" HeaderText="DocDate" SortExpression="DocDate" />
<asp:BoundField DataField="DocTitle" HeaderText="DocTitle" SortExpression="DocTitle" />
<asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
<asp:BoundField DataField="Recip" HeaderText="Recip" SortExpression="Recip" />
<asp:BoundField DataField="Copied" HeaderText="Copied" SortExpression="Copied" />
<asp:HyperLinkField DataNavigateUrlFields="BegAttch" DataNavigateUrlFormatString="Default.aspx?BegAttch={0}"
HeaderText="Attach Group" Text="Attach Group" />
<asp:HyperLinkField DataNavigateUrlFields="Source" Text="Download / Open File" />
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="Aqua" ForeColor="#333333" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
<EditRowStyle BackColor="Aqua" BorderStyle="Solid" ForeColor="AliceBlue" />
<SelectedRowStyle BackColor="Yellow" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
<tr>
<td colspan="1" style="height: 25px; width: 230px;">
</td>
<td colspan="2" style="height: 25px; text-align: center;">
<strong><span style="font-size: 24pt; text-align: center; border-bottom-width: thick; border-bottom-color: olive; vertical-align: middle; background-color: white;">NetView Case Management</span></strong></td>
</tr>
<tr>
<td colspan="1" style="width: 230px; height: 68px">
</td>
<td colspan="2" style="height: 68px; text-align: center">
<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal"
Width="57px" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged" style="z-index: 100; left: 14px; position: absolute; top: 73px; vertical-align: middle; overflow: auto; cursor: hand; color: white; background-color: maroon;" Font-Bold="False" Font-Names="Agency FB" Font-Size="7pt">
<asp:ListItem>Folder</asp:ListItem>
<asp:ListItem>DocDate</asp:ListItem>
<asp:ListItem>DocTitle</asp:ListItem>
<asp:ListItem>Author</asp:ListItem>
<asp:ListItem>Recip</asp:ListItem>
<asp:ListItem>Copied</asp:ListItem>
</asp:CheckBoxList>
<asp:Label ID="SortFieldLabel1" runat="server" Text="DocDate" style="z-index: 101; left: 17px; position: absolute; top: 103px" Font-Size="8pt"></asp:Label>
<asp:Button ID="AscDescButton1" runat="server" OnClick="AscDescButton1_Click" Text="Sort" style="z-index: 102; left: 131px; position: absolute; top: 45px" Font-Size="8pt" />
<asp:Label ID="LabelTxt" runat="server" Text="" style="z-index: 101; left: 17px; top: 103px" Font-Size="8pt"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox id="keywords" runat="server"/>
<asp:Button id="btnSearchSubmit" Text="Submit" runat="server"/></tr>
<tr>
<td style="width: 230px; height: 398px">
&nbsp;<asp:TreeView ID="TreeView1" runat="server" ImageSet="XPFileExplorer" NodeIndent="15" style="z-index: 100; left: 28px; position: absolute; top: 145px; vertical-align: top;" Height="213px" Width="156px" ShowLines="True">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
<SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
NodeSpacing="0px" VerticalPadding="2px" />
<Nodes>
<asp:TreeNode Text="All" Value="All">
<asp:TreeNode NavigateUrl="~/CaseSelection/FolderTreeSelection/Priv.aspx" Target="~/CaseSelection/Priv.aspx"
Text="Priviledged" Value="Priviledged">
<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Confidential" Value="Confidential">
<asp:TreeNode Text="Resposnive" Value="Resposnive"></asp:TreeNode>
<asp:TreeNode Text="Non-Responsive" Value="Non-Responsive"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Highly Confidential" Value="Highly Confidential">
<asp:TreeNode Text="Responsive" Value="Responsive"></asp:TreeNode>
<asp:TreeNode Text="Non_Responsive" Value="Non_Responsive"></asp:TreeNode>
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
</td>
<td style="width: 241px; height: 398px">
&nbsp;</td>
<td style="height: 398px">
</td>
</tr>
<tr>
<td colspan="2" style="height: 145px">
&nbsp;<asp:DetailsView DataKeyNames="BegDoc#" ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataSourceID="ObjectDataSource2" Height="50px" Width="666px" style="font-size: x-small; position: relative; left: 0px; top: -13px;" CellPadding="4" ForeColor="#333333" GridLines="None">
<Fields>
<asp:BoundField DataField="BegAttch" HeaderText="BegAttch" SortExpression="BegAttch" />
<asp:BoundField DataField="EndAttch" HeaderText="EndAttch" SortExpression="EndAttch" />
<asp:BoundField DataField="BegDoc#" HeaderText="BegDoc#" SortExpression="BegDoc#" />
<asp:BoundField DataField="EndDoc#" HeaderText="EndDoc#" SortExpression="EndDoc#" />
<asp:BoundField DataField="PgAmt" HeaderText="PgAmt" SortExpression="PgAmt" />
<asp:BoundField DataField="Folder" HeaderText="Folder" SortExpression="Folder" />
<asp:BoundField DataField="DocDate" HeaderText="DocDate" SortExpression="DocDate" />
<asp:BoundField DataField="DocTitle" HeaderText="DocTitle" SortExpression="DocTitle" />
<asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
<asp:BoundField DataField="Recip" HeaderText="Recip" SortExpression="Recip" />
<asp:BoundField DataField="Copied" HeaderText="Copied" SortExpression="Copied" />
<asp:BoundField DataField="Source" HeaderText="Source" SortExpression="Source" />
<asp:BoundField DataField="Attchmt" HeaderText="Attchmt" SortExpression="Attchmt" />
<asp:BoundField DataField="OtherProps" HeaderText="OtherProps" SortExpression="OtherProps" />
<asp:BoundField DataField="ResponsiveTerms" HeaderText="ResponsiveTerms" SortExpression="ResponsiveTerms" />
<asp:HyperLinkField DataNavigateUrlFields="Source" DataNavigateUrlFormatString="CaseView2.aspx?source={0}"
DataTextField="Source" />
</Fields>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
<EditRowStyle BackColor="#2461BF" />
<RowStyle BackColor="#EFF3FB" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByBegDoc"
TypeName="DataSet1TableAdapters.Boult_DemoTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" DefaultValue="" Name="_BegDoc_" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="BegAttch" Type="String" />
<asp:Parameter Name="EndAttch" Type="String" />
<asp:Parameter Name="_BegDoc_" Type="String" />
<asp:Parameter Name="_EndDoc_" Type="String" />
<asp:Parameter Name="PgAmt" Type="String" />
<asp:Parameter Name="Folder" Type="String" />
<asp:Parameter Name="DocDate" Type="String" />
<asp:Parameter Name="DocTitle" Type="String" />
<asp:Parameter Name="Author" Type="String" />
<asp:Parameter Name="Recip" Type="String" />
<asp:Parameter Name="Copied" Type="String" />
<asp:Parameter Name="Source" Type="String" />
<asp:Parameter Name="Attchmt" Type="String" />
<asp:Parameter Name="OtherProps" Type="String" />
<asp:Parameter Name="ResponsiveTerms" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
&nbsp;&nbsp;
</td>
</tr>
</table>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetDataBy" TypeName="DataSet1TableAdapters.Boult_DemoTableAdapter" InsertMethod="Insert">
<SelectParameters>
<asp:QueryStringParameter Name="SectionName" QueryStringField="CaseName" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="BegAttch" Type="String" />
<asp:Parameter Name="EndAttch" Type="String" />
<asp:Parameter Name="_BegDoc_" Type="String" />
<asp:Parameter Name="_EndDoc_" Type="String" />
<asp:Parameter Name="PgAmt" Type="String" />
<asp:Parameter Name="Folder" Type="String" />
<asp:Parameter Name="DocDate" Type="String" />
<asp:Parameter Name="DocTitle" Type="String" />
<asp:Parameter Name="Author" Type="String" />
<asp:Parameter Name="Recip" Type="String" />
<asp:Parameter Name="Copied" Type="String" />
<asp:Parameter Name="Source" Type="String" />
<asp:Parameter Name="Attchmt" Type="String" />
<asp:Parameter Name="OtherProps" Type="String" />
<asp:Parameter Name="ResponsiveTerms" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</div>
</form>
<%=Highlight(keywords.Text, LabelTxt.Text)%>
</body>
</html>


-- modified at 11:56 Monday 21st August, 2006
GeneralRe: Gridview Searching and Filtering Pin
Brent Lamborn21-Aug-06 6:08
Brent Lamborn21-Aug-06 6:08 
QuestionSQL database in a .NET asp environment Pin
Rory Lewis18-Aug-06 8:29
Rory Lewis18-Aug-06 8:29 
AnswerRe: SQL database in a .NET asp environment Pin
seee sharp18-Aug-06 9:15
seee sharp18-Aug-06 9:15 
AnswerRe: SQL database in a .NET asp environment Pin
i.j.russell18-Aug-06 10:22
i.j.russell18-Aug-06 10:22 
QuestionASP.NET 2.0 Webservice call from ASP Pin
seee sharp18-Aug-06 8:04
seee sharp18-Aug-06 8:04 
QuestionHow to insert data into database from data set or datatable Pin
micydon18-Aug-06 5:49
micydon18-Aug-06 5:49 
AnswerRe: How to insert data into database from data set or datatable Pin
leckey18-Aug-06 6:19
leckey18-Aug-06 6:19 
AnswerRe: How to insert data into database from data set or datatable Pin
Not Active18-Aug-06 7:44
mentorNot Active18-Aug-06 7:44 
QuestionIs it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Red_Wizard_Shot_The_Food18-Aug-06 5:37
Red_Wizard_Shot_The_Food18-Aug-06 5:37 
AnswerRe: Is it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Colin Angus Mackay18-Aug-06 5:50
Colin Angus Mackay18-Aug-06 5:50 
AnswerRe: Is it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Mike Ellison18-Aug-06 7:19
Mike Ellison18-Aug-06 7:19 
QuestionGridView visibility issue Pin
Vipul Mehta18-Aug-06 5:11
Vipul Mehta18-Aug-06 5:11 
AnswerRe: GridView visibility issue Pin
Not Active18-Aug-06 5:49
mentorNot Active18-Aug-06 5:49 
QuestionGridView event fired twice Pin
Talal Sultan18-Aug-06 4:42
Talal Sultan18-Aug-06 4:42 
AnswerRe: GridView event fired twice Pin
minhpc_bk19-Aug-06 4:02
minhpc_bk19-Aug-06 4:02 
GeneralRe: GridView event fired twice Pin
Talal Sultan20-Aug-06 20:15
Talal Sultan20-Aug-06 20:15 
GeneralRe: GridView event fired twice Pin
Talal Sultan20-Aug-06 20:59
Talal Sultan20-Aug-06 20:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.