|
You can't remove cookie. But you can set the expiry time of the cokie to a date which is less than today's date, and add that cookie again. Browser will think it's an expired cookie and will be removed.
|
|
|
|
|
Hi,
u can check and modify as per yr wish.
string[] cookies = Request.Cookies.AllKeys;<br />
foreach (string cookie in cookies)<br />
{<br />
Response.Cookies[cookie].Expires = DateTime.Now.AddDays(-1);<br />
}<br />
Thanks,
Sun Rays
Rate this post if you like answer.
|
|
|
|
|
Bangashan wrote: I hv a cookie in which different items are stored
How did you store those different items in a cookie? As a cookies can store only one the name and value pair, you can't create the multiple name/value pairs in a cookie. but if you are storing the comma seperated values (e.g. 1,2,3,..,i) then you can change the value ..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hey guys, I'm developing a website for which I want to create a control which holds two containers. The control must be placed in the toolbox, and dragged onto a webpage (or user control) from the toolbox. I was thinking to inherit from System.Web.UI.WebControls.CompositeControl.
I want the control to hold two containers (panels) which can be filled with the controls the developer wants. Is it possible to create a control which holds multiple controls? What's the correct approach?
I have declared two panels and exposed them via public read-only properties.
Thanks, Eduard
|
|
|
|
|
Hi..
Use Custom Control s and develop your won logic for the control u want
Aswini
|
|
|
|
|
Did you even read my question??
|
|
|
|
|
Hello frnd
I displayed my mark list table in data grid.if i click the roll number cell i want to display the corresponding value (like name ,class) in text box,i am using asp.net 1.1.i am MCA student,beginner in asp.net,so please any one give some code or link or idea plz urgent this.
|
|
|
|
|
use grid rowevent to get the value of that cell and display your desire result.
Devjit Das.
|
|
|
|
|
Put a button column in your DataGrid and write code in Itemcommand of DataGrid. Use the parameter e in that event to find the cell value and assign it to textbox.
|
|
|
|
|
hello....
this code 4 dispalying..
SqlConnection sqlConnection = new SqlConnection("server=....;User Id=sa; Password=...;Initial Catalog=.....");
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter("select * from emp", sqlConnection);
DataSet dataSet = new DataSet();
sqlDataAdapter.Fill(dataSet);
GridView1.DataSource = dataSet;
GridView1.DataBind();
and u can dispaly in the text box 4 perticular nuber...details...
u can wrote with in clivk event.........
int id = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
GridViewRow r = GridView1.Rows[e.RowIndex];
TextBox t1, t2;
t1 = (TextBox)r.FindControl("TextBox1");
t2 = (TextBox)r.FindControl("TextBox2");
SqlConnection sqlConnection = new SqlConnection("server=....;User Id=sa; Password=...;Initial Catalog=.....");
sqlConnection.Open();
cmd.ExecuteNonQuery();
sqlConnection.Close();
GridView1.EditIndex = -1;
Bind();
Naik M
|
|
|
|
|
Hello All!!
i am saving the logos of the companies in the a directory. the file name of the logo is kept as the id of the company in the db. my problem is that when i change the image(logo) the change is not reflected after the postback. i have to click refresh to see the change. I have clearing the cache at the same time redirecting to the same page also but it of no use.
any help
Regards
|
|
|
|
|
sabby2006 wrote: the change is not reflected after the postback. i have to click refresh to see the change
Cache?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Response.CacheControl = "no-cache";
Regards
|
|
|
|
|
sabby2006 wrote: any help
You can fool browser by adding some querystring to image URL, and browser thinks it's a new image and it will reload it. So your image URL will look like
companylogo.jpg?foolBrowser=fooled Change this querystring value each time with a random generated value. So browser will think it's a new image and will be forced to reload.
|
|
|
|
|
Thanks a lot it did the trick
Regards
|
|
|
|
|
Hi all,
Could you please let me know where to get an IIS log file from a server?
Thanks
|
|
|
|
|
Your Windows Folder/System32/Logfiles/W3Svc1?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Thanks for you reply.
The log file doesnot mention anything about the events that happen on the webserver.I am just trying to track down some errors generated on the webserver.
Is there any other log file i have to look?
Please advice
thanks
|
|
|
|
|
kibromg wrote: generated on the webserver.
Try Control Panel - > Administrative Tools - > Event Viewer
|
|
|
|
|
Its currect..
Go to Controle panel->AdminstratorTools->IIS
Naik M
|
|
|
|
|
Thank once again.
Under IIS where will you go to see the log file or any error related to a web Server.
Please advice.
Thanks
|
|
|
|
|
You may check the same by going to Properties and then clicking the Server Extensions Tab
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hello,
I am a ASP.NET developer.
I want the concept of how I can see the results of the table from different databases of different domains.
for eg:
I have three domains:
www.abc.com
www.xyz.com
www.pqr.com
I want to see the values of databases of abc.com and xyz.com at pqr.com
please tell me How can I write the code for it in ASP.NET to display results in 3rd website in GRIDVIEW.
Bharath
|
|
|
|
|
I have to display text present in the webpage in the language that the user selects from a dropdown list. This doesnot mean that i have u convert all the GUI text. I would require that the text that is picked from the database be displayed in the grid in a particular language its intended for.
|
|
|
|
|
hi..
Refer to this.. u can get an idea...
http://people.w3.org/rishida/scripts/uniview/conversion.php
Aswini
|
|
|
|