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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 1, 2010, 11:52 PM EDT
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.
sam147 reputationPosted Sep 1, 2010, 11:54 PM EDT
where do i apply/modify the code?
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 2, 2010, 12:00 AM EDT
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.
sam147 reputationPosted Sep 2, 2010, 12:16 AM EDT
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.
sam147 reputationPosted Sep 2, 2010, 5:37 PM EDT