Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2005, 07:29 AM
Registered User
 
Join Date: Feb 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default very very urgent doubt spec in c#.net

Dear sir/mam,

   I have spec in c#.det.My spec concept is to retrive the data from the databse.After retrive that data from the database,to save that datas as xml file,before to save that .Database manager query You,If You save or open or cancel.that database manager display the file name,size of the file,thats all.

After You choose to save it is stored as xml file.
I specify my code.But that need some modifications


i=DropDownList1.SelectedItem.Value.ToString();
            j=DropDownList2.SelectedItem.Value.ToString();
            k=DropDownList3.SelectedItem.Value.ToString();
            d=i+"/"+j+"/"+k;

            i1=DropDownList4.SelectedItem.Value.ToString();
            j1=DropDownList5.SelectedItem.Value.ToString();
            k1=DropDownList6.SelectedItem.Value.ToString();
            d1=i1+"/"+j1+"/"+k1;


            fy=DateTime.Now.Year.ToString();
            fm=DateTime.Now.Month.ToString();
            fd=DateTime.Now.Day.ToString();
            fh=DateTime.Now.Hour.ToString();
            fmin=DateTime.Now.Minute.ToString();
            fsec=DateTime.Now.Second.ToString();

            used=fy+fm+fd+fh+fmin+fsec+".xml";


            string c;
            c="User ID=sa;password=tiger;Initial Catalog=tohoweb;Data Source=HEMA";
            try
            {
                c1=new SqlConnection(c);
                string cd="select * from uv_c_sakuhin_lst where release_date >='"+ d +"' and release_date <='"+ d1 +"'";
                SqlDataAdapter ad=new SqlDataAdapter (cd,c1);
                ad.Fill(ds,"uv_c_sakuhin_lst");
                XmlDataDocument xd=new XmlDataDocument(ds);

                xd.Save(".\\"+used);




                                Response.AddHeader( "Content-Disposition", "attachment; filename=" +used );


    string [email protected](".\\"+used);
}






Similar Threads
Thread Thread Starter Forum Replies Last Post
doubt in XSLT -- very urgent subbukns XSLT 1 May 21st, 2007 05:10 PM
Very urgent, Doubt in ASP ssramvinay Classic ASP Databases 1 April 17th, 2007 01:21 PM
urgent doubt to run calc.exe from asp.net page geetha ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 07:35 AM
Pro ASP.NET Spec. Ed. 1.0 smitsc Wrox Book Feedback 0 June 18th, 2003 06:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.