Click here to Skip to main content
15,921,989 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Using itextShart.dll in server throws some error. Pin
Christian Graus23-Jun-08 20:24
protectorChristian Graus23-Jun-08 20:24 
GeneralRe: Using itextShart.dll in server throws some error. Pin
Kodeeswaran23-Jun-08 20:52
Kodeeswaran23-Jun-08 20:52 
Questiona simple error Pin
ptvce23-Jun-08 20:20
ptvce23-Jun-08 20:20 
AnswerRe: a simple error Pin
Christian Graus23-Jun-08 20:22
protectorChristian Graus23-Jun-08 20:22 
GeneralRe: a simple error Pin
ptvce23-Jun-08 20:40
ptvce23-Jun-08 20:40 
Questionhyperlinkculumn in the grid Pin
rameshdontagani23-Jun-08 20:13
rameshdontagani23-Jun-08 20:13 
AnswerRe: hyperlinkculumn in the grid Pin
Christian Graus23-Jun-08 20:23
protectorChristian Graus23-Jun-08 20:23 
AnswerRe: hyperlinkculumn in the grid Pin
Kodeeswaran23-Jun-08 20:47
Kodeeswaran23-Jun-08 20:47 
Hi,

instead of using hyperlink column, use linkbutton. find attached the code below.

aspx file code:
---------------


<asp:DataGrid DataKeyField="event_id" ID="eventsGrid" runat="server" CssClass="textbld"
AllowSorting="True" AutoGenerateColumns="False" Width="518px" OnItemDataBound="eventsGrid_ItemDataBound"
AlternatingItemStyle-CssClass="alternativeTxt" BorderColor="White" BorderStyle="Solid"
BorderWidth="1px" CellPadding="0" HorizontalAlign="Left" >
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<EditItemStyle BackColor="#2461BF" />
<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<AlternatingItemStyle CssClass="alternativeTxt" />
<ItemStyle HorizontalAlign="Left" CssClass="itemTxt" />

<Columns>

<!-- Use the below variable event_id as hidden variables from the database-->

<asp:BoundColumn DataField="event_id" Visible="False"></asp:BoundColumn>

<!-- bind the hidden variable (event_id) value to the link button using "Eval" function-->

<asp:TemplateColumn HeaderText="Ort" HeaderStyle-CssClass="padlist">
<ItemTemplate>
<asp:LinkButton ID="lnkCity" runat="server" CommandArgument='<%# Eval("event_id") %>'
OnCommand="lnkCity_Command" CssClass="Blacklink"></asp:LinkButton>

</ItemTemplate>
<ItemStyle CssClass="eventsTxt" />
</asp:TemplateColumn>

</Columns>
<HeaderStyle CssClass="head_txt Head_R1" />
</asp:DataGrid>

.cs file code:
---------------


In the onclick event of the linkbutton in the datagrid, give the link url as below.

protected void lnkCity_Command(object sender, CommandEventArgs e)
{
Response.Redirect("Popup.aspx");
}


Kodee

QuestionCross-Page Posting Pin
.NET- India 23-Jun-08 19:56
.NET- India 23-Jun-08 19:56 
AnswerRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 20:04
protectorChristian Graus23-Jun-08 20:04 
GeneralRe: Cross-Page Posting Pin
.NET- India 23-Jun-08 20:22
.NET- India 23-Jun-08 20:22 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 20:25
protectorChristian Graus23-Jun-08 20:25 
GeneralRe: Cross-Page Posting Pin
.NET- India 23-Jun-08 20:34
.NET- India 23-Jun-08 20:34 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 21:06
protectorChristian Graus23-Jun-08 21:06 
AnswerRe: Cross-Page Posting Pin
Imran Khan Pathan23-Jun-08 20:08
Imran Khan Pathan23-Jun-08 20:08 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 20:19
protectorChristian Graus23-Jun-08 20:19 
GeneralRe: Cross-Page Posting Pin
.NET- India 23-Jun-08 20:23
.NET- India 23-Jun-08 20:23 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 20:32
protectorChristian Graus23-Jun-08 20:32 
GeneralRe: Cross-Page Posting Pin
.NET- India 23-Jun-08 20:44
.NET- India 23-Jun-08 20:44 
GeneralRe: Cross-Page Posting Pin
Imran Khan Pathan23-Jun-08 20:53
Imran Khan Pathan23-Jun-08 20:53 
GeneralRe: Cross-Page Posting Pin
.NET- India 23-Jun-08 20:59
.NET- India 23-Jun-08 20:59 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 21:09
protectorChristian Graus23-Jun-08 21:09 
GeneralRe: Cross-Page Posting Pin
Christian Graus23-Jun-08 21:07
protectorChristian Graus23-Jun-08 21:07 
Questiongathering data from sqldatabase and fill in datagrid in asp.net 2.0 Pin
vijaylumar23-Jun-08 19:49
vijaylumar23-Jun-08 19:49 
AnswerRe: gathering data from sqldatabase and fill in datagrid in asp.net 2.0 Pin
Christian Graus23-Jun-08 20:06
protectorChristian Graus23-Jun-08 20:06 

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.