المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : aspx to Html page



C# Programming
02-13-2010, 01:21 AM
Hi All,


I have to out put the result of my INputfile.aspx file in to an Html file on a browser.

The code under my Inputfile.aspx file is as follow:

DataSet ds=new DataSet();

SqlDataAdapter sda = new SqlDataAdapter("T2S_SELECT_SENDFINAL_msg", Utilities.ConnectionString);
sda.SelectCommand.CommandType = CommandType.StoredProcedure;
sda.Fill(ds);

DataTable dt=ds.Tables[0];

GVResult.DataSource = dt;
GVResult.DataBind();

The out put is just a single column from a table.

I would like the data to be seen on Inputfile.html not on Inputfile.aspx?

Is there any way i can convert my aspx file in to Html.So that the browser shows Inputfile.html not aspx?

Many thanks