Click here to Skip to main content
15,899,754 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to detect changes from Lowercase to Uppercase? Pin
newc14-Mar-08 0:28
newc14-Mar-08 0:28 
Generalgetting focused control and setting different message in text box. Pin
thuyaaung73-Mar-08 0:12
thuyaaung73-Mar-08 0:12 
GeneralRe: getting focused control and setting different message in text box. Pin
newc13-Mar-08 1:57
newc13-Mar-08 1:57 
GeneralRe: getting focused control and setting different message in text box. Pin
thuyaaung73-Mar-08 6:03
thuyaaung73-Mar-08 6:03 
Questionneed help for transaction Pin
amit_sahu2-Mar-08 22:57
amit_sahu2-Mar-08 22:57 
QuestionTree view select all Pin
007Tyagi2-Mar-08 21:11
007Tyagi2-Mar-08 21:11 
GeneralRe: Tree view select all Pin
Vasudevan Deepak Kumar2-Mar-08 23:52
Vasudevan Deepak Kumar2-Mar-08 23:52 
QuestionHow to show list of url like google seach page in my application Pin
Vishnu Narayan Mishra2-Mar-08 20:18
Vishnu Narayan Mishra2-Mar-08 20:18 
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["ShowHistoryCookie"]["Url9"] = "";
Response.Cookies["ShowHistoryCookie"]["Url10"] = "";


//Add to cookie collection
Response.AppendCookie(ShowHistoryCookie);
// set expires to the datetime maxvalue
Response.Cookies["ShowHistoryCookie"].Expires = DateTime.MaxValue; //DateTime.Now.AddMonths(1)
}
if (Request.Cookies["ShowHistoryCookie"]["Url1"].ToString() == "")
{
Response.Cookies["ShowHistoryCookie"]["Url1"] = txtUrlLink.Text;
}
else if (Request.Cookies["ShowHistoryCookie"]["Url2"] == "")
{
Response.Cookies["ShowHistoryCookie"]["Url2"] = txtUrlLink.Text;
//When executes above line it over write the previous value of the cookie it return the value
//ShowHistoryCookie=Url2=rediffmail.com

}

}
else
{
// Else display message that
// the browser does not accept cookies
Response.Write("This Browser does not accept cookies");
}
}

Please suggest me , I m very thankful to you

Vishnu Narayan Mishra
Software Engineer

AnswerRe: How to show list of url like google seach page in my application Pin
Christian Graus2-Mar-08 22:49
protectorChristian Graus2-Mar-08 22:49 
GeneralJavascript Pin
padz2-Mar-08 16:20
padz2-Mar-08 16:20 
GeneralRe: Javascript Pin
Christian Graus2-Mar-08 22:51
protectorChristian Graus2-Mar-08 22:51 
General Javascript in Firefox to create a text file [modified] Pin
zombie_storm2-Mar-08 9:59
zombie_storm2-Mar-08 9:59 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
RCoate2-Mar-08 11:37
RCoate2-Mar-08 11:37 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 12:45
zombie_storm2-Mar-08 12:45 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
Shog92-Mar-08 13:41
sitebuilderShog92-Mar-08 13:41 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 17:24
zombie_storm2-Mar-08 17:24 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
Shog92-Mar-08 17:40
sitebuilderShog92-Mar-08 17:40 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 18:08
zombie_storm2-Mar-08 18:08 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
Shog92-Mar-08 18:13
sitebuilderShog92-Mar-08 18:13 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 18:59
zombie_storm2-Mar-08 18:59 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 19:09
zombie_storm2-Mar-08 19:09 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
Shog92-Mar-08 19:15
sitebuilderShog92-Mar-08 19:15 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 19:21
zombie_storm2-Mar-08 19:21 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
Shog92-Mar-08 19:26
sitebuilderShog92-Mar-08 19:26 
GeneralRe: Urgent !!! Javascript in Firefox to create a text file Pin
zombie_storm2-Mar-08 19:30
zombie_storm2-Mar-08 19:30 

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.