Click here to Skip to main content
15,886,786 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Document elements have no IDs Pin
Lonnie Raffray4-Sep-09 9:37
Lonnie Raffray4-Sep-09 9:37 
GeneralRe: Document elements have no IDs Pin
Abhishek Sur4-Sep-09 9:39
professionalAbhishek Sur4-Sep-09 9:39 
QuestionLink button inside the Gridview Pin
Vimalsoft(Pty) Ltd4-Sep-09 4:13
professionalVimalsoft(Pty) Ltd4-Sep-09 4:13 
AnswerRe: Link button inside the Gridview Pin
Blue_Boy4-Sep-09 5:45
Blue_Boy4-Sep-09 5:45 
GeneralRe: Link button inside the Gridview Pin
Vimalsoft(Pty) Ltd6-Sep-09 20:12
professionalVimalsoft(Pty) Ltd6-Sep-09 20:12 
AnswerRe: Link button inside the Gridview Pin
Abhijit Jana4-Sep-09 6:59
professionalAbhijit Jana4-Sep-09 6:59 
GeneralRe: Link button inside the Gridview Pin
Vimalsoft(Pty) Ltd6-Sep-09 20:13
professionalVimalsoft(Pty) Ltd6-Sep-09 20:13 
AnswerRe: Link button inside the Gridview Pin
Abhishek Sur4-Sep-09 8:02
professionalAbhishek Sur4-Sep-09 8:02 
You are using server tag for Server Side LinkButton... this is weird.
Always remember, the server side properties doesnt render to the client, so if you see your browser, the anchor tag will not hold the NavigateUrl Property..

So either you use <a > tag directly here and place href='<%# Eval("Link")%>'... or use RowDataBound Event of the GridView.

Inside RowDataBound Event use:
LinkButton lnk = e.item.FindControl("lnkUserID") as LinkButton;
lnk.NavigateUrl = DataBinder.Eval(e.item.DataItem, "Link") as string;


Hope you got what you need. ...

Cheers. Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Link button inside the Gridview Pin
Vimalsoft(Pty) Ltd6-Sep-09 20:13
professionalVimalsoft(Pty) Ltd6-Sep-09 20:13 
AnswerRe: Link button inside the Gridview Pin
CrazyCoder265-Sep-09 0:31
CrazyCoder265-Sep-09 0:31 
GeneralRe: Link button inside the Gridview Pin
Vimalsoft(Pty) Ltd6-Sep-09 20:14
professionalVimalsoft(Pty) Ltd6-Sep-09 20:14 
QuestionUser visit stats... Pin
Abbas_here4-Sep-09 3:20
Abbas_here4-Sep-09 3:20 
AnswerRe: User visit stats... Pin
Blue_Boy4-Sep-09 5:55
Blue_Boy4-Sep-09 5:55 
AnswerRe: User visit stats... Pin
Jay Royall4-Sep-09 6:26
Jay Royall4-Sep-09 6:26 
AnswerRe: User visit stats... Pin
Abhijit Jana4-Sep-09 7:01
professionalAbhijit Jana4-Sep-09 7:01 
GeneralRe: User visit stats... Pin
Manas Bhardwaj4-Sep-09 10:04
professionalManas Bhardwaj4-Sep-09 10:04 
Questioncompiler error Pin
d_smit4-Sep-09 2:52
d_smit4-Sep-09 2:52 
AnswerRe: compiler error Pin
Abhijit Jana4-Sep-09 7:03
professionalAbhijit Jana4-Sep-09 7:03 
AnswerRe: compiler error Pin
Abhishek Sur4-Sep-09 8:11
professionalAbhishek Sur4-Sep-09 8:11 
Questiondatatype problem Pin
ankitjain11104-Sep-09 2:01
ankitjain11104-Sep-09 2:01 
AnswerRe: datatype problem Pin
Vimalsoft(Pty) Ltd4-Sep-09 2:38
professionalVimalsoft(Pty) Ltd4-Sep-09 2:38 
AnswerRe: datatype problem Pin
Greg Chelstowski4-Sep-09 4:20
Greg Chelstowski4-Sep-09 4:20 
GeneralRe: datatype problem Pin
Robert_Pan4-Sep-09 20:08
Robert_Pan4-Sep-09 20:08 
QuestionGridview Button problem Pin
RajpootRohan4-Sep-09 1:51
professionalRajpootRohan4-Sep-09 1:51 
AnswerRe: Gridview Button problem [modified] Pin
sashidhar4-Sep-09 2:17
sashidhar4-Sep-09 2:17 

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.