Click here to Skip to main content
15,886,110 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion' Pin
ahawari0928-Nov-08 1:25
ahawari0928-Nov-08 1:25 
GeneralRe: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion' Pin
Abhijit Jana28-Nov-08 1:51
professionalAbhijit Jana28-Nov-08 1:51 
GeneralRe: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion' Pin
ahawari0928-Nov-08 2:01
ahawari0928-Nov-08 2:01 
QuestionVirtual directory not set?? or it's something else Pin
dakinibilyana28-Nov-08 0:30
dakinibilyana28-Nov-08 0:30 
AnswerRe: Virtual directory not set?? or it's something else Pin
Abhijit Jana28-Nov-08 0:48
professionalAbhijit Jana28-Nov-08 0:48 
GeneralRe: Virtual directory not set?? or it's something else Pin
dakinibilyana28-Nov-08 6:03
dakinibilyana28-Nov-08 6:03 
QuestionGenerate report to Microsoft Word document Pin
stormydaniels28-Nov-08 0:21
stormydaniels28-Nov-08 0:21 
QuestionDelete record from XML File Pin
codingrocks27-Nov-08 23:10
codingrocks27-Nov-08 23:10 
I am doing a .NET web application in which i am using data from XML file to bind to grid.
I have an Add and Delete button also near the GridView. Each row in grid has a check box also. On Checking and Click Delete button, it has to delete the record from XML file.


I am new to XML so, any help will be appreciated..


The piece of code i used was as follows

On click on Delete Button

try
{
string strFileName = HttpContext.Current.Request.PhysicalApplicationPath + "XMLFiles\\UserList.xml";
XmlDocument doc = new XmlDocument();

doc.Load(strFileName);


doc.Save(strFileName);

string strScript = "<script language=\"JavaScript\"> window.dialogArguments.window.location=window.dialogArguments.window.location; window.close();</script>";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Close", strScript);
}
catch (Exception ex)
{
string strException = ex.Message.ToString();
string strError = "User.aspx" + "~" + "btnDelete_Click" + "~" + strException;
Session.Add("ExceptionError", strError);
Response.Redirect("Errorpage.aspx", false);
}

SAJAN A PILLAI

ASP.NET,C#.NET Programmer
BANGALORE

"Winners don't do different things. They do things differently. ...

Questionwhich one will make performance good Pin
Member 387988127-Nov-08 22:44
Member 387988127-Nov-08 22:44 
AnswerRe: which one will make performance good Pin
N a v a n e e t h27-Nov-08 23:55
N a v a n e e t h27-Nov-08 23:55 
AnswerRe: which one will make performance good Pin
Abhijit Jana28-Nov-08 0:03
professionalAbhijit Jana28-Nov-08 0:03 
QuestionValidation Pin
shanthi jothi27-Nov-08 22:05
shanthi jothi27-Nov-08 22:05 
AnswerRe: Validation Pin
Brij27-Nov-08 23:54
mentorBrij27-Nov-08 23:54 
Questioncurrenet viewrs count Pin
ratnakar_ravi27-Nov-08 21:30
ratnakar_ravi27-Nov-08 21:30 
AnswerRe: currenet viewrs count Pin
Abhijit Jana27-Nov-08 22:02
professionalAbhijit Jana27-Nov-08 22:02 
GeneralRe: currenet viewrs count Pin
mr_muskurahat27-Nov-08 22:36
mr_muskurahat27-Nov-08 22:36 
Questionc++ Pin
harsh thaker27-Nov-08 21:21
harsh thaker27-Nov-08 21:21 
AnswerRe: c++ Pin
Abhijit Jana27-Nov-08 22:00
professionalAbhijit Jana27-Nov-08 22:00 
QuestionProblem in uploading mp3 or large file. Pin
Rohit16db27-Nov-08 20:42
Rohit16db27-Nov-08 20:42 
AnswerRe: Problem in uploading mp3 or large file. Pin
Abhijit Jana27-Nov-08 20:55
professionalAbhijit Jana27-Nov-08 20:55 
GeneralRe: Problem in uploading mp3 or large file. Pin
Rohit16db27-Nov-08 21:02
Rohit16db27-Nov-08 21:02 
QuestionValidation Controls not working in Update Panel in rowedit command Pin
Girish Sharma27-Nov-08 19:56
Girish Sharma27-Nov-08 19:56 
AnswerRe: Validation Controls not working in Update Panel in rowedit command Pin
Abhijit Jana27-Nov-08 20:32
professionalAbhijit Jana27-Nov-08 20:32 
GeneralRe: Validation Controls not working in Update Panel in rowedit command Pin
Girish Sharma27-Nov-08 21:49
Girish Sharma27-Nov-08 21:49 
GeneralRe: Validation Controls not working in Update Panel in rowedit command Pin
Abhijit Jana27-Nov-08 22:10
professionalAbhijit Jana27-Nov-08 22:10 

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.