|
My aspx page always display the old data , so i need to manually refresh the page only the page display the latest data, how to diable browser save the cache ?
Best regards,
Chee ken
|
|
|
|
|
i have not done it but you can get help from this
Response.AddHeader("Cache-Control", "no-cache");
Response.AddHeader("Cache-Control", "no-store");
Response.AddHeader("Pragma", "no-cache");
Google it i think you will definatly get it
Enjoy coding
|
|
|
|
|
still can not disable the cache.
Best regards,
Chee ken
|
|
|
|
|
Hi All,
i m using c#,asp.net with 1.1 framework. i m trying that user must be able to
navigate only in forward direction, i.e. clicking on back button must display
an error page like "Page Expire". how can i implement this fuctionality...
Thanks in advance...
Regards...
Amit
|
|
|
|
|
Hi there,
Write the following header settings in Page Load event, Page will always rendered from the server rather than from cache... and displays a message stating that page is expired.
Response.AddHeader ("Pragma", "no-cache");
Response.Cache.SetCacheability (HttpCacheability.NoCache);
Response.Cache.SetExpires (DateTime.Now.AddHours (-1));
Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..
|
|
|
|
|
how can i trap the back button in Internet Exploer using asp.net2005.i want to stop back button or disabl back button at a particular page.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I am not sure of disabling the back button but using javascript you can keep the user on the same page i.e. forwarding again to the same page after clicking on the back button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Also you can remove all this buttons from the browser if you don't need them
|
|
|
|
|
how can i do tht?
may u help me more?
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
You can put this script in your webpage:
<script>
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
Best Regards,
Apurva Kaushal
|
|
|
|
|
If the user closes the browser without pressing the log out button, their session will remain open until the timeout period expires.
How to maintain the session for the same?
Regards,
Ram
|
|
|
|
|
Could you rephrase your question? I don't think anybody can understand what you are trying to ask.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
rahul89 wrote: their session will remain open until the timeout period expires.
I think you answered your question. It is already maintained !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You can kill the session at the Application_End event within your Global.asax
Nila
|
|
|
|
|
Hi all,
I want to display thumbnails of 5 images in a row in datatgrid..
In the usual way only, 1 image per row can be displayed in datagrid.
Is there any way out?
Pls help...
thanking you,
sdaniel_cst
|
|
|
|
|
You can use datalist for this purpose they you can show the images exactly like you want.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
i hav made controls and all these controls r in an single folder name my_control. My_webform.aspx in myfolder001 and dis folder created dynamically my_webform.aspx includes dis control and when i execute <http://loaclhost/mySite/myfolder001/my_webform.aspx>
mycontrol contains a simple form inserting data into tables.
dis webform does not postin in internet explorer and working fine in mozila.
thanx
rahul saini
|
|
|
|
|
Some columns of a gridview are dynamically bound.
The gridview has a header checkbox used for Select All function.
During dynamic binding the header checkbox is not rendering.
There is some server code also in its Checked event.
So how to make that header checkbox visible during dynamic binding of “columns” in the gridview.
sooraj
|
|
|
|
|
Hi,
I have done it in the datagrid. You can add the checkbox control to the header on the itemdatabound() event, there itself add an event to the checkbox (check event). There you can make all the item checkboxes as selected.
Ram
|
|
|
|
|
how to insert treeview in to a datagrid or gridview.
Priyanka
|
|
|
|
|
You can add a Templated field to your GridView. Then edit the templated field and add the TreeView to its ItemTemplate.
Nila
|
|
|
|
|
by doing this process i am getting treeview for all the itemtemplates.but here i want single treeview for a datagrid.
prasanna
|
|
|
|
|
Would you mind if I ask what exactly you are expecting from this treeview? If you want just one treeview, then you will have to place it outside your GridView. If you want to tie events, then you will have to handle it either through one of GridView’s event handlers or one of the TreeView’s event handler… again, what exactly do you expect from this?
On another note, if you want to illuminate postbacks with your treeview, you can use this third party control:
http://www.obout.com/t2/edraganddrop.aspx
Nila
|
|
|
|
|
Hai,
I want to create Xml based Text Report. How can i implement it .Please provide the steps...If you have sample code or alternative solutions Please give me......
Thanks in Advance
|
|
|
|
|
One obvious way would be XSLT. That's probably the best way to turn XML into a text report. Just google for XSLT, and you'll find heaps of info.
|
|
|
|