u cannot assign different text values to different rows using Text property of HyperLinkColumn if u wanna assign so then use DataTextField property and bind it to any field in ur datasource as : <asp:HyperLinkColumn ItemStyle-Width="50px" DataNavigateUrlField="URL" Target="_blank" DataTextField="Text" ></asp:HyperLinkColumn>
here URL and Text are ur table fields with which u r binding the datagrid......now different texts will be displayed in different rows of ur grid depending upon the values of Text field in ur table.... and on clicking these texts, different URLs will be opened depending upon the values of corresponding URL field. i think now u must've got my point.....in case of any problem plz revert back n tell what exacty u want.... -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of sinan demir Sent: Thursday, December 22, 2005 9:23 AM To: [email protected] Subject: RE: [AspNetAnyQuestionIsOk] problem about hyperlinksss... Helllppp!! first thank you for replying. i tried to do what you said. but i think i have problem with assingning the property to the UrlField and TextField. may you give an example about assingning dynamic varialble to these fields. renunegi <[EMAIL PROTECTED]> wrote: i think u can read data frm database and add hyperlink according to these data.....i've tried n it is working!!!!!!! u can use: <asp:HyperLinkColumn ItemStyle-Width="50px" DataNavigateUrlField="URL" Target="_blank" Text="Screen Location"></asp:HyperLinkColumn> here "URL" is the name of the field having required URLs(as u mentioned that u r having this field i ur table). "Screen Location" is the the text u want to be displayed in hyperlink column(change it accordingly). ItemStyle-Width and Target also u can set........ reply back whether its working or not............. bye -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of sayinsinan Sent: Wednesday, December 21, 2005 6:05 AM To: [email protected] Subject: [AspNetAnyQuestionIsOk] problem about hyperlinksss... Helllppp!! hi i am trying to add hyperlinks to my page dynamicly. i wanna read the data from my database table and i wanna add a hyperlink accordying to these datas. my table columns are LinkId, Url, Text, and Target. i tried to use datagrid hyperlink column. but i couldnt add different hyperlinks to the datagrid column. can i add different hyperlinks to the same column.(if i can, how can i?) if not, how can i these hyperlinks to my page. i am waiting for answers. thank you for helping. SPONSORED LINKS Basic programming language Computer programming languages Programming languages Java programming language -------------------------------------------------------------------------- -- -- YAHOO! GROUPS LINKS a.. Visit your group "AspNetAnyQuestionIsOk" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -------------------------------------------------------------------------- -- -- [Non-text portions of this message have been removed] SPONSORED LINKS Basic programming language Computer programming languages Programming languages Java programming language --------------------------------- YAHOO! GROUPS LINKS Visit your group "AspNetAnyQuestionIsOk" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] SPONSORED LINKS Basic programming language Computer programming languages Programming languages Java programming language ---------------------------------------------------------------------------- -- YAHOO! GROUPS LINKS a.. Visit your group "AspNetAnyQuestionIsOk" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ---------------------------------------------------------------------------- -- [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
