My question is,when a value from textbox is added in the gridview,how to make that value in gridview as a link where it can search the value in google.
Any ideas guys?
[code]
[/code]
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
samPosted Sep 2, 2010, 9:37 PM
samPosted Sep 2, 2010, 4:16 AM
I have a code here :
[code]
[/code]
when i enter value in the textbox,it will temporarily display the value at the bottom.
lets say i enter company 1 in first textbox,company 1 will be displayed as a label at bottom.
i want the name company 1 word is linked to google search when when we click the company 1,it will automatically display google search results as company 1.
Manikavelu VelayuthamPosted Sep 2, 2010, 4:00 AM
string str = "http://www.google.co.in/search?hl=en&source=hp&q=XXXX&aq=f&aqi=g2g-s1g1g-s1g1g-s4&aql=&oq=&gs_rfai=";
str.replace("XXXX",textbox1.text);
finally store this string in the URL property of hyperlink button of the gridview.
First try with the label itself, if its doesnt work, put the hyperlink button and test it.
Surely it should work
dont forget to mark this post as answered or mark it as good post.
samPosted Sep 2, 2010, 3:54 AM
where do i apply/modify the code?
Manikavelu VelayuthamPosted Sep 2, 2010, 3:52 AM
so just concatenate the textbox.text in the above link, so that it will directly search the google wiht the appropriate text.
dont forget to mark this post as answered or mark it as good post.