Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. How to show list of url like google seach page in my application

How to show list of url like google seach page in my application

Scheduled Pinned Locked Moved Web Development
helpcsharpasp-netcomtutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vishnu Narayan Mishra
    wrote on last edited by
    #1

    Hello sir Thanks to reply me, my problem is slightly different... I have to store informations in a cookie. The information come from a text box, when the user input any thing in text box, then value of a text box saved in a cookies. Suppose user input any Url Name like yahoomail.com, then information will store in a cookie also check the condition in cookie that the recent ten Url's are only stored in cookies, means that if Url exceeds the limit of ten, then oldest will delete from the cookkie and new one will added into the cookie.. All the values stored in the cookies I have to display below in the text box in a list(just like website of goggle, when the user start typing in goggle search page the a list shows the all the typed text by the user.. Which controls is better to display the cookies values in list..? I am tried it by Asp.Net list box control but looks are not good I want to show like a list show goggle search page. I am stuck to store multiples values into cookies because it overwrites the previous value into the cookie. Following is my code of cs file protected void btnAddCokkie_Click(object sender, EventArgs e) { CreateAndAddCookiesValue(); } private void CreateAndAddCookiesValue() { //Response.Cookies.Remove("ShowHistoryCookie"); if (Request.Browser.Cookies == true) { // Check the cookie Mycookie exist or not if (Request.Cookies["ShowHistoryCookie"] == null) { // If does Mycookie does not exist then // create the cookie HttpCookie ShowHistoryCookie = new HttpCookie("ShowHistoryCookie"); Response.Cookies.Add(ShowHistoryCookie); //Setting cookies values //The below ten line return value //ShowHistoryCookie=Url1=http://www.yahoo.com&Url2=&Url3=&Url4=&Url5=&Url6=&Url7=&Url8=&Url9=&Url10= Response.Cookies["ShowHistoryCookie"]["Url1"] = ""; Response.Cookies["ShowHistoryCookie"]["Url2"] = ""; Response.Cookies["ShowHistoryCookie"]["Url3"] = ""; Response.Cookies["ShowHistoryCookie"]["Url4"] = ""; Response.Cookies["ShowHistoryCookie"]["Url5"] = ""; Response.Cookies["ShowHistoryCookie"]["Url6"] = ""; Response.Cookies["ShowHistoryCookie"]["Url7"] = ""; Response.Cookies["ShowHistoryCookie"]["Url8"] = ""; Response.Cookies["Show

    C 1 Reply Last reply
    0
    • V Vishnu Narayan Mishra

      Hello sir Thanks to reply me, my problem is slightly different... I have to store informations in a cookie. The information come from a text box, when the user input any thing in text box, then value of a text box saved in a cookies. Suppose user input any Url Name like yahoomail.com, then information will store in a cookie also check the condition in cookie that the recent ten Url's are only stored in cookies, means that if Url exceeds the limit of ten, then oldest will delete from the cookkie and new one will added into the cookie.. All the values stored in the cookies I have to display below in the text box in a list(just like website of goggle, when the user start typing in goggle search page the a list shows the all the typed text by the user.. Which controls is better to display the cookies values in list..? I am tried it by Asp.Net list box control but looks are not good I want to show like a list show goggle search page. I am stuck to store multiples values into cookies because it overwrites the previous value into the cookie. Following is my code of cs file protected void btnAddCokkie_Click(object sender, EventArgs e) { CreateAndAddCookiesValue(); } private void CreateAndAddCookiesValue() { //Response.Cookies.Remove("ShowHistoryCookie"); if (Request.Browser.Cookies == true) { // Check the cookie Mycookie exist or not if (Request.Cookies["ShowHistoryCookie"] == null) { // If does Mycookie does not exist then // create the cookie HttpCookie ShowHistoryCookie = new HttpCookie("ShowHistoryCookie"); Response.Cookies.Add(ShowHistoryCookie); //Setting cookies values //The below ten line return value //ShowHistoryCookie=Url1=http://www.yahoo.com&Url2=&Url3=&Url4=&Url5=&Url6=&Url7=&Url8=&Url9=&Url10= Response.Cookies["ShowHistoryCookie"]["Url1"] = ""; Response.Cookies["ShowHistoryCookie"]["Url2"] = ""; Response.Cookies["ShowHistoryCookie"]["Url3"] = ""; Response.Cookies["ShowHistoryCookie"]["Url4"] = ""; Response.Cookies["ShowHistoryCookie"]["Url5"] = ""; Response.Cookies["ShowHistoryCookie"]["Url6"] = ""; Response.Cookies["ShowHistoryCookie"]["Url7"] = ""; Response.Cookies["ShowHistoryCookie"]["Url8"] = ""; Response.Cookies["Show

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      First of all, why did you not ask in the right forum ? We have an ASP.NET forum. There's an ASP.NET AJAX control that does this. The google control is driven by javascript.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups