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

ASP.NET

 
AnswerRe: creating a polling system Pin
uglyeyes8-Jul-09 16:49
uglyeyes8-Jul-09 16:49 
QuestionProblem displaying different pdf documents one at a time on an Iframe Pin
LucBite7-Jul-09 23:11
LucBite7-Jul-09 23:11 
Questionremote shutdown Pin
nani66667-Jul-09 23:11
nani66667-Jul-09 23:11 
AnswerRe: remote shutdown Pin
SeMartens7-Jul-09 23:55
SeMartens7-Jul-09 23:55 
AnswerRe: remote shutdown Pin
Manas Bhardwaj7-Jul-09 23:57
professionalManas Bhardwaj7-Jul-09 23:57 
Questionhyperlink in gridview Pin
vikas shukla7-Jul-09 22:58
vikas shukla7-Jul-09 22:58 
AnswerRe: hyperlink in gridview Pin
Manas Bhardwaj7-Jul-09 23:06
professionalManas Bhardwaj7-Jul-09 23:06 
AnswerRe: hyperlink in gridview Pin
Zafar A khan 7-Jul-09 23:34
professionalZafar A khan 7-Jul-09 23:34 
add GridView to your page. add TemplateField to the GridView and add hyperlink control to the item template

<asp:GridView ID="grdUsers" Width="100%" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="15" AutoGenerateEditButton="True" OnRowDataBound="grd_RowDataBound" >

<Columns>

<asp:TemplateField HeaderText="hyperlink">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>

</Columns>
</asp:GridView>


In row databound you can initialize NavigateUrl Property. as below

protected void grd_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HyperLink Hlink =(HyperLink) e.Row.FindControl("HyperLink1");

if (Hlink != null)
{
Hlink.NavigateUrl = "http://www.google.com";
Hlink.Target = "_blank";
Hlink.Text = "Google";
}

}
}
QuestionDisplay PopUp on schedule time and date. Pin
Ajeet mittal7-Jul-09 22:54
Ajeet mittal7-Jul-09 22:54 
AnswerRe: Display PopUp on schedule time and date. Pin
Zafar A khan 7-Jul-09 22:58
professionalZafar A khan 7-Jul-09 22:58 
GeneralRe: Display PopUp on schedule time and date. Pin
janakiraman_T26-Jul-09 20:59
janakiraman_T26-Jul-09 20:59 
QuestionExcel to MySQL Pin
astrovirgin7-Jul-09 22:27
astrovirgin7-Jul-09 22:27 
AnswerRe: Excel to MySQL Pin
Zafar A khan 8-Jul-09 0:12
professionalZafar A khan 8-Jul-09 0:12 
QuestionPreserving Checkbox values on changeevent of dynamically created textbox Pin
meeram3957-Jul-09 22:19
meeram3957-Jul-09 22:19 
QuestionDynamic controls Pin
KhandelwalA7-Jul-09 20:29
KhandelwalA7-Jul-09 20:29 
AnswerRe: Dynamic controls Pin
padmanabhan N7-Jul-09 20:36
padmanabhan N7-Jul-09 20:36 
GeneralRe: Dynamic controls Pin
KhandelwalA7-Jul-09 20:49
KhandelwalA7-Jul-09 20:49 
AnswerRe: Dynamic controls Pin
Zafar A khan 7-Jul-09 20:45
professionalZafar A khan 7-Jul-09 20:45 
GeneralRe: Dynamic controls Pin
KhandelwalA7-Jul-09 20:47
KhandelwalA7-Jul-09 20:47 
GeneralRe: Dynamic controls Pin
Zafar A khan 8-Jul-09 18:28
professionalZafar A khan 8-Jul-09 18:28 
Question[Message Deleted] Pin
Bataineh7-Jul-09 20:28
Bataineh7-Jul-09 20:28 
AnswerRe: web.config error Pin
Abhijit Jana7-Jul-09 20:47
professionalAbhijit Jana7-Jul-09 20:47 
GeneralRe: web.config error [modified] Pin
Bataineh7-Jul-09 20:49
Bataineh7-Jul-09 20:49 
QuestionHow to Create Excel File and Adding multiple Tabs in ASP.net2.0 without Adding Reference Pin
vandanaconedify7-Jul-09 20:07
vandanaconedify7-Jul-09 20:07 
QuestionReading word document in asp.net 1.1 Pin
Spurple7-Jul-09 19:01
Spurple7-Jul-09 19:01 

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.