Click here to Skip to main content
15,922,696 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: See Trace.axd for all asp.net pages Pin
m@dhu3-Feb-10 18:22
m@dhu3-Feb-10 18:22 
QuestionDownload multiple Xml file Pin
<<Tash18>>3-Feb-10 2:13
<<Tash18>>3-Feb-10 2:13 
Hi guyzz.. Im developing a web application here i get datas from the user and on a button click these datas get stored in my data base now i have another button on clicking it,it retrieves all the data from the database and gets saved in my system as an XML file... the code is as follows for the button that creates an xml file...

private void Button1_Click(object sender, System.EventArgs e)
		{
			SqlDataAdapter da = null;
			try
			{
				con = new SqlConnection();
				con.ConnectionString = ConfigurationSettings.AppSettings["DSN"];
				da = new SqlDataAdapter("select * from card_details",con);
				DataSet ds = new DataSet();
				da.Fill(ds,"card_details");
				ds.WriteXml("D:\ADIB\OutputXML.xml");
			}
			catch(SqlException ex)
			{
				throw new System.Exception ("Error -- " +ex.Message);
			}
			catch(Exception exp)
			{
				throw new System.Exception ("Error -- " +exp.Message);
			}
			finally
			{
				con.Close();
				da.Dispose();
			}
		}


Now my issue is i need my application to create the xml file,before saving it into my system it should ask me whether to open the file or save the file so that i can specify the file name (something similar to a download window in our web browser)... please advice me...
Thanx in advance..
Regards,
Tash
AnswerRe: Download multiple Xml file Pin
Not Active3-Feb-10 2:22
mentorNot Active3-Feb-10 2:22 
GeneralRe: Download multiple Xml file [modified] Pin
<<Tash18>>3-Feb-10 16:46
<<Tash18>>3-Feb-10 16:46 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 20:33
<<Tash18>>3-Feb-10 20:33 
AnswerRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 16:46
<<Tash18>>3-Feb-10 16:46 
AnswerRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 20:51
Palash Biswas3-Feb-10 20:51 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 21:21
<<Tash18>>3-Feb-10 21:21 
GeneralRe: Download multiple Xml file Pin
Ravindra Nidhonkar3-Feb-10 21:28
Ravindra Nidhonkar3-Feb-10 21:28 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 21:31
Palash Biswas3-Feb-10 21:31 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 21:59
<<Tash18>>3-Feb-10 21:59 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 22:07
Palash Biswas3-Feb-10 22:07 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 22:26
<<Tash18>>3-Feb-10 22:26 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 23:19
Palash Biswas3-Feb-10 23:19 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 23:34
<<Tash18>>3-Feb-10 23:34 
AnswerRe: Download multiple Xml file [modified] Pin
Palash Biswas3-Feb-10 23:45
Palash Biswas3-Feb-10 23:45 
GeneralRe: Download multiple Xml file(miodified Full) Pin
Palash Biswas3-Feb-10 23:52
Palash Biswas3-Feb-10 23:52 
GeneralRe: Download multiple Xml file Pin
Palash Biswas4-Feb-10 0:07
Palash Biswas4-Feb-10 0:07 
AnswerRe: Download multiple Xml file Pin
Palash Biswas4-Feb-10 0:01
Palash Biswas4-Feb-10 0:01 
QuestionMail going to Queue folder in the server Pin
Member 42602703-Feb-10 1:43
Member 42602703-Feb-10 1:43 
AnswerRe: Mail going to Queue folder in the server Pin
Abhijit Jana3-Feb-10 19:52
professionalAbhijit Jana3-Feb-10 19:52 
Questionrunning website (asp.net) on 3rd party server. Pin
jeshra2793-Feb-10 0:44
jeshra2793-Feb-10 0:44 
AnswerRe: running website (asp.net) on 3rd party server. Pin
sashidhar3-Feb-10 1:08
sashidhar3-Feb-10 1:08 
QuestionPage Loading with two update panels Pin
Hema Bairavan3-Feb-10 0:40
Hema Bairavan3-Feb-10 0:40 
AnswerRe: Page Loading with two update panels Pin
Pranay Rana3-Feb-10 0:43
professionalPranay Rana3-Feb-10 0:43 

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.