i have an image control in item template of a datalist and file upload control in edit item template. if i upload a picture, for first time, the image control show the new image. but from onwards if i upload a new picture, even though its uploaded to server and the path is shown with new image name, it shows the old picture untill i refresh the page. what would be the solution for this problem. If i disable cache will it work, if yes how to disable cache. The whole thing is in an .ascx (user control) page.
There is nothing like disabling cache. With so many cache tiers at IIS, Proxy, Upstream servers and Web browser level, you can not expect a perfect disabling of cache though. You can of course direct the element to expire from cache or not to be cached by a suitable (pragma) or other directive.
I have a page which adds a record to the database when I Click the submit button and it stays in the same page showing all values from the database in a datalist. My problem is that if I refresh the page, the last event fired , that is btnSubmit_Click is fired again and yet another a record is added to database. What will be the solution. Thanks in advance
I have a form with submit button as an asp image button. My problem is that if i click the button n times the event is fired n times. so how to disable button during the post back. I tried onclientclick="this.enable =false; return true", but didnt work. Is there any other solutions
hi, i need to create a application where user will select a indian languages from drop down, and after that all content of page should be displayed in selected language and he will enter the data in selected language. Please provide help.
Firstly you have to provide structure to the datatable i.e. column names and datatypes....
Once you have the structure set you can loop through your datareader and add one row at a time to your DataTable.
You can provide structure to your datatable even after you have data in your datareader!
Last Visit: 31-Dec-99 19:00 Last Update: 28-Feb-24 4:03