Click here to Skip to main content
16,005,491 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem with validation Pin
thomas_joyee9-Oct-07 1:18
thomas_joyee9-Oct-07 1:18 
GeneralRe: Problem with validation Pin
anujose9-Oct-07 1:22
anujose9-Oct-07 1:22 
GeneralRe: Problem with validation Pin
thomas_joyee9-Oct-07 1:29
thomas_joyee9-Oct-07 1:29 
GeneralRe: Problem with validation Pin
anujose9-Oct-07 1:32
anujose9-Oct-07 1:32 
GeneralRe: Problem with validation Pin
thomas_joyee9-Oct-07 1:35
thomas_joyee9-Oct-07 1:35 
QuestionHow To Generate Excel Report with out install office on server Pin
codeproject_Tarun9-Oct-07 0:40
codeproject_Tarun9-Oct-07 0:40 
AnswerRe: How To Generate Excel Report with out install office on server Pin
pmarfleet9-Oct-07 0:48
pmarfleet9-Oct-07 0:48 
Question(hopefully) easy GridView question Pin
cbfb9-Oct-07 0:39
cbfb9-Oct-07 0:39 
Hi,

I have a GridView on my page (see code below). What I want to do is have a link (or button, doesn't matter) which, when the user clicks on it, opens up another page and passes several variables to that page. Trouble is, I can't think of a neat way of doing this without it getting a bit messy. Surely there must be an aesthetic method?

Hopefully an easy one for the experts, just baffles me...

The control I am referring to is <asp:TemplateField HeaderText="Email">

Be very grateful for any advice.

Regards
Chris


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="View.aspx.vb" Inherits="View" %>

<!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">
<title>WC BLM - Log Manager</title>
</head>

<body>
<form id="form1" runat="server">
<div>

<h1>3034kjng lm4gkl34m</h1>
<h2>Backup Log Manager</h2>
<h3>Log Manager</h3>

<p>
Status filter:
<asp:DropDownList id="SelectStatus" runat="server"
autopostback="True">
<asp:listitem Selected='true'>OK</asp:listitem>
<asp:listitem>Query</asp:listitem>
<asp:listitem>Error</asp:listitem>
<asp:ListItem>Resolved</asp:ListItem>
</asp:DropDownList>
</p>


<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="PARSERFILENAME" DataSourceID="AccessDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None" BorderColor=black BorderStyle=solid BorderWidth=1px>
<Columns>
<asp:BoundField DataField="EMAILDATETIME" HeaderText="Email Received" SortExpression="EMAILDATETIME" ReadOnly="True"/>
<asp:BoundField DataField="BACKUPDATETIME" HeaderText="Backup Started" SortExpression="BACKUPDATETIME" ReadOnly="True"/>
<asp:BoundField DataField="CLIENT" HeaderText="Client" SortExpression="CLIENT" ReadOnly="True"/>
<asp:BoundField DataField="BACKUPTYPE" HeaderText="Backup Type" SortExpression="BACKUPTYPE" ReadOnly="True"/>
<asp:BoundField DataField="APPLICATION" HeaderText="Application" SortExpression="APPLICATION" ReadOnly="True"/>
<asp:TemplateField HeaderText="Status" SortExpression="STATUS">
<ItemTemplate>
<asp:Label ID="ReadStatus" Runat="Server"
Text='<%# Eval("STATUS") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="InsertStatusDropDownList"
SelectedValue='<%# Bind("STATUS") %>'
RunAt="Server">
<asp:ListItem>OK</asp:ListItem>
<asp:ListItem>Query</asp:ListItem>
<asp:ListItem>Error</asp:ListItem>
<asp:ListItem>Resolved</asp:ListItem>
</asp:DropDownList>

</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Notes">
<ItemTemplate>
<asp:Label ID="ReadNotes" Runat="Server"
Text='<%# Eval("NOTES") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="EditNotes" runat="Server" Text='<%# Bind("NOTES") %>' TextMode="MultiLine" Columns="40" Rows="5" />
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Log File">
<ItemTemplate>
<a href="Logs/<%# Eval("PARSERFILENAME")%>" target="_blank">View</a>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email">
<ItemTemplate>

</ItemTemplate>
</asp:TemplateField>
<asp:CommandField showeditbutton="True" HeaderText="Options" ButtonType="Button" />

</Columns>
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="SpringGreen" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>

<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/BackupLogParser.mdb"
SelectCommand="SELECT * FROM [VIEW] WHERE STATUS=@SELECTEDSTATUS"
UpdateCommand="UPDATE [VIEW] SET [STATUS]=@STATUS, [NOTES]=@NOTES WHERE PARSERFILENAME=@PARSERFILENAME">
<SelectParameters>
<asp:ControlParameter Name="SELECTEDSTATUS"
ControlID="SelectStatus"
PropertyName="SelectedValue"/>
</SelectParameters>
</asp:AccessDataSource>




</div>
</form>
</body>
</html>



AnswerRe: (hopefully) easy GridView question Pin
thomas_joyee9-Oct-07 1:04
thomas_joyee9-Oct-07 1:04 
Questionweb config.....excel Pin
mmm!@#9-Oct-07 0:22
mmm!@#9-Oct-07 0:22 
Questionhow to create gif and jpeg images at run time ? Pin
King Shez9-Oct-07 0:03
King Shez9-Oct-07 0:03 
AnswerRe: how to create gif and jpeg images at run time ? Pin
pmarfleet9-Oct-07 0:38
pmarfleet9-Oct-07 0:38 
QuestionHelp me its urgent Pin
scicorp8-Oct-07 23:23
scicorp8-Oct-07 23:23 
AnswerRe: Help me its urgent Pin
Sathesh Sakthivel8-Oct-07 23:25
Sathesh Sakthivel8-Oct-07 23:25 
AnswerRe: Help me its urgent Pin
Guffa8-Oct-07 23:44
Guffa8-Oct-07 23:44 
GeneralRe: Help me its urgent Pin
scicorp9-Oct-07 0:05
scicorp9-Oct-07 0:05 
AnswerRe: Help me its urgent Pin
Guffa9-Oct-07 0:37
Guffa9-Oct-07 0:37 
QuestionAdding custom values when updating GridView? Pin
kbalias8-Oct-07 23:23
kbalias8-Oct-07 23:23 
QuestionAdrotator [modified] Pin
bhattiprolu8-Oct-07 23:23
bhattiprolu8-Oct-07 23:23 
AnswerRe: Adrotator Pin
Sathesh Sakthivel8-Oct-07 23:24
Sathesh Sakthivel8-Oct-07 23:24 
GeneralRe: Adrotator Pin
bhattiprolu8-Oct-07 23:46
bhattiprolu8-Oct-07 23:46 
QuestionHow can .aspx file see the class outside App_Code folder? [modified] Pin
bug_aonz8-Oct-07 23:17
bug_aonz8-Oct-07 23:17 
AnswerRe: How can .aspx file see the class outside App_Code folder? Pin
Sathesh Sakthivel8-Oct-07 23:21
Sathesh Sakthivel8-Oct-07 23:21 
QuestionImageButton with text Pin
Ahmad Adnan8-Oct-07 22:58
Ahmad Adnan8-Oct-07 22:58 
AnswerRe: ImageButton with text Pin
Sathesh Sakthivel8-Oct-07 23:05
Sathesh Sakthivel8-Oct-07 23:05 

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.