Search for the file setup.sdb on your cd or dvd.
There, normally on the last line, you will find an entry with the headline "[Product Key]".
This is the case for e.g. Visual Studio Team Foundation Server 2005 or for Visual Studio Team Suite 2005.
...Page page = new Page();Control c = page.LoadControl("YourControl.ascx");// do Something with your control, DataBind, ...string html = RenderControl(c);
public
You can save your data during a HttpRequest by passing it to System.Web.HttpContext.Current.Items[itemKey]. Objects stored in this Collection will be available during the whole lifecycle of the HttpRequest.
Example of usage:
System.Web.HttpContext.Current.Items["reloadCount"] = 5;
int reloadCount = (int) System.Web.HttpContext.Current.Items["reloadCount"];
private
public DataSet GetCSVFile( string fileName){ string pathName = System.IO. Path .GetDirectoryName(fileName); string file = System.IO. Path .GetFileName(fileName); OleDbConnection excelConnection = new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ pathName + ";Extended Properties=Text;"); OleDbCommandexcelCommand = newOleDbCommand(@"SELECT * FROM "+ file, excelConnection); OleDbDataAdapterexcelAdapter = newOleDbDataAdapter(excelCommand); excelConnection.Open(); DataSetds = newDataSet(); excelAdapter.Fill(ds); excelConnection.Close(); return ds;}
Powered by: www.ie-soft.de
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2010, Manuel Trunk
E-mail