|
You might want to read the tutorial in MSDN to see how to use the ObjectDataSource[^].
|
|
|
|
|
Hi,
I think my problem is related to caching so here goes...
I have a web page in 'Application A' that retrieves data in the form of xml from a webservice exposed by 'Application B' - let's call it a list of tasks. The list of tasks is devided into two groups (outstanding and completed). Each task in the 'outstanding' list has a hyperlink. When the user clicks this hyperlink they are redirected to 'Application B' where they complete the task . 'Application B' sets the status of the completed task to 'completed'.
When the user returns to the list of tasks in 'Application A', the completed task needs to drop into the 'completed' list. This is however NOT happening, even if the page is refreshed (not even ctrl+F5 refreshes the lists). Upon testing I found that the data returned by 'Application B's webservice does refresh so the webservice is not the problem.
I have found if I reset IIS the page DOES refresh, so something is being cached somewhere.
I have tried the following so far...
In the code behind page I have included the following statements in the Page_Load() event handler
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetAllowResponseInBrowserHistory(false);
This didn't make a difference.
I have also tried a page directive:
<%@ OutputCache NoStore="true" Location="None" %>
This didn't work either.
Any ideas?
Regards,
Morné
Morné
|
|
|
|
|
Make sure if you are displaying data in data grid EnableViewState should not be true (if data grid is the case this can be one problem).
before updating data (after refresh)
Cache.Remove("myTasks" )
then add new cache data
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
Hi Chinna,
Thank you for answering my question so quickly.
I'm displaying the data using a <asp:DataList> control with an <asp:XmlDataSource> as the datasource.
Setting the EnableViewState property of the DataList control to 'false' did not make a difference, but your suggestion made me also check the properties of the XmlDataSource control. It turns out that the XmlDataSource control has a property called EnableCaching which I then also set to 'false'... PROBLEM SOLVED!
Thank you for pointing me in the right direction.
Morné
|
|
|
|
|
Hi to all,
how to change port 25 to 80 for smtp mail server?
thanks,
Bhasker
|
|
|
|
|
Go to "Default SMTP Virtual Server" properties in IIS
Click on Advanced button
and Edit the default port
Hope this helps.
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
Also make sure
You cannot have two applications listening on the same port. So you need to
either configure the other application to listen on another port, or close
the application
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
Hi all
I installed WSE 3.0 and watched the Labs to learn how to apply security in my project. The problem is that in the Labs they use a Windows apllication and not a Web site. In the Labs u can see they got in the reference a file called Reference.cs .. what i don t have in my web site project (client side). I saw they change the "Policy" and use a method : proxy.SetPolicy(Policy); . So my question is : do i have to make a method for my Web Service and if yes .. how i can change the policy.
Thx a lot
|
|
|
|
|
Hi I want to create Directories and Files in my project. But I don't want to use static methods of System.IO.Directory and System.IO.File because they are causing exceptions for some methods that this file is being used by some other process. How can I do this with classes from which we can make instance objects. I don't want to predefine the path or the file while creating new instance of the object.
Thanks,
Sandy
|
|
|
|
|
If you are trying to write to a file that is in use, then it wont make a difference how you try, you wont get to write to that file.
Using the static File and Directory methods is no different to using FileInfo and DirectoryInfo - which respectivly are the "instance" versions that you refer to.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
In my application , I am uploading the images from the client. Then I am creating Directories to save those files. I have also functions to delete those files if the user want to do so. But after deleting the file and again uploading the new file to the same location give me the exception that this path or file is being used by another process. Now I am using FileInfo static methods to delete and save file but when I want to save file using FileControl by FileControlName.PostedFile.SaveAs(FilePath) method, it raises the above said exception.
Thanks,
Sandy
|
|
|
|
|
Are you sure you are properly closing your filestreams upon completion?
|
|
|
|
|
Please tell me the method to save a user uploaded file with the help of filestream . I had seen all the overload methods for declaring an object of FileStream object but all the methods demand the predefined FileName in the constructor. That is why I am using FileInfo class objects to perform those functions. But I couldn't find any function to close the FileInfo object.
Thanks,
Sandy
|
|
|
|
|
|
Now i have an Xml like this
11<Root>
11 <Element>
11 <Table1 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table2 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table3 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table1 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table2 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table3 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table1 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table2 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table3 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table1 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table2 Value as XML attributes/>
11 </Element>
11 <Element>
11 <Table3 Value as XML attributes/>
11 </Element>
11</Root>
The above xml having 3 different table values in 4 set of nodes to update 3 tables by using open XML
How will u achieve this target
The above XML nodes are stable in all times as 3 elements
//////
Is it possible to change as 4 elements and update to 4 tables at run time
This second scenario how will the stored procedure will update the 4th table
The stored procedure is created for first scenario to update 3 tables
Can i possible to achieve my second target by the same procedure
Tell me the suggestions
thanx
-
|
|
|
|
|
Hi, I have several listboxes in my application and the border is standard set to 'inset'. Is there any way to get rid of the border and just have a flat border?
Thanks in advance.
|
|
|
|
|
Just set the "BorderStyle" property of your textbox to "Groove"
Hope this help you
|
|
|
|
|
No, it doesn't work. I've tryed all different types of borderstyles and not one works.
|
|
|
|
|
That depends on what browser is used. Some browsers allow you to change the border style, others doesn't. Firefox does. Internet Explorer doesn't.
---
b { font-weight: normal; }
|
|
|
|
|
weird, cause it doesn't seem to work in firefox either.
But thanks anyway
|
|
|
|
|
Yes, it does.
Example:
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
How a datalist has an edge over datagrid in terms of functionality?
Thank you!
Deepa!
Be the Change you want to see!
|
|
|
|
|
How can I show the data from database on screen without using datagrid? Is there any other way? I don't want to have all the datas from one record in the same row.
KatarinaYU
|
|
|
|
|
Datalist? Repeater? Just a bunch of textboxes. It really depends on what you want to show and how you want to show it... You can bind your data to just about anything.
|
|
|
|
|
hi,
I am working on asp.net appluication and i want pass value frm one
page to anotheter.
pl's help for the same;)
|
|
|
|