Click here to Skip to main content
15,896,063 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access asp control from c# Pin
Paulraj G1-Mar-10 1:25
Paulraj G1-Mar-10 1:25 
GeneralRe: Access asp control from c# Pin
rakeshs3121-Mar-10 1:47
rakeshs3121-Mar-10 1:47 
Questionhow to get the right symbol beside the text box when validate the user Pin
developerit1-Mar-10 0:14
developerit1-Mar-10 0:14 
AnswerRe: how to get the right symbol beside the text box when validate the user Pin
dan!sh 1-Mar-10 0:25
professional dan!sh 1-Mar-10 0:25 
Questionhow to find the total hours he spend Pin
developerit1-Mar-10 0:11
developerit1-Mar-10 0:11 
AnswerRe: how to find the total hours he spend Pin
dan!sh 1-Mar-10 0:16
professional dan!sh 1-Mar-10 0:16 
AnswerRe: how to find the total hours he spend Pin
April Fans1-Mar-10 22:30
April Fans1-Mar-10 22:30 
QuestionDataset.WriteXml doesnot release file Pin
sunit_8228-Feb-10 23:51
sunit_8228-Feb-10 23:51 
I'm using Cache file dependency in my code with CacheItemRemovedCallback function set. File dependency is on a xml file which is output of a Dataset.WriteXml. Below is the code in my CacheItemRemovedCallback method

 <br />
public void RemovedCallback(String k, Object v, CacheItemRemovedReason r)<br />
{<br />
DataSet ds = new DataSet();<br />
ds.ReadXml(filePath);<br />
Cache.Insert("KeyName", ds, new CacheDependency(filePath), DateTime.Now.AddHours(1), TimeSpan.Zero, CacheItemPriority.High, OnRemove);<br />
}<br />


filePath points to the XML file which is output of ds.WriteXml.
When there is some update to the dataset I write the dataset using
ds.WriteXml(filepath, XmlWriteMode.WriteSchema);
On execution of above line, the call back methode RemovedCallback gets called. And as ds has not released the xml file yet, I get a error "...access denied as file is in use...".

Is there a way ds.WriteXml() method can release the file immediately after writing?
Else please suggest any alternate method ??

Thanx

s.a.w.
Questioncalling panel mulitple times Pin
Ostwal Aarti28-Feb-10 23:29
Ostwal Aarti28-Feb-10 23:29 
AnswerRe: calling panel mulitple times Pin
dan!sh 28-Feb-10 23:56
professional dan!sh 28-Feb-10 23:56 
AnswerRe: calling panel mulitple times Pin
rakeshs3121-Mar-10 0:51
rakeshs3121-Mar-10 0:51 
Questionnot work in ff Pin
diyaa_0828-Feb-10 22:35
diyaa_0828-Feb-10 22:35 
AnswerRe: not work in ff Pin
Nasri871-Mar-10 21:09
Nasri871-Mar-10 21:09 
QuestionSub menu - How to write click event? Pin
Paulraj G28-Feb-10 19:46
Paulraj G28-Feb-10 19:46 
AnswerRe: Sub menu - How to write click event? Pin
sashidhar28-Feb-10 20:09
sashidhar28-Feb-10 20:09 
AnswerRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 20:13
professionalAbhijit Jana28-Feb-10 20:13 
GeneralRe: Sub menu - How to write click event? Pin
Paulraj G28-Feb-10 20:28
Paulraj G28-Feb-10 20:28 
GeneralRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 20:42
professionalAbhijit Jana28-Feb-10 20:42 
GeneralRe: Sub menu - How to write click event? Pin
Paulraj G28-Feb-10 21:42
Paulraj G28-Feb-10 21:42 
GeneralRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 21:45
professionalAbhijit Jana28-Feb-10 21:45 
QuestionPackaging a web application Pin
Priyanka15 g28-Feb-10 16:26
Priyanka15 g28-Feb-10 16:26 
AnswerRe: Packaging a web application Pin
sashidhar28-Feb-10 20:13
sashidhar28-Feb-10 20:13 
AnswerRe: Packaging a web application Pin
Abhijit Jana28-Feb-10 20:21
professionalAbhijit Jana28-Feb-10 20:21 
QuestionRefreshing a datalist in the behind code gives conflict. Pin
macupryk28-Feb-10 16:03
macupryk28-Feb-10 16:03 
AnswerRe: Refreshing a datalist in the behind code gives conflict. Pin
Abhijit Jana28-Feb-10 20:27
professionalAbhijit Jana28-Feb-10 20:27 

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.