Click here to Skip to main content
15,921,467 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionextending GridView control Pin
248912818-Apr-07 20:32
248912818-Apr-07 20:32 
AnswerRe: extending GridView control Pin
N a v a n e e t h18-Apr-07 21:31
N a v a n e e t h18-Apr-07 21:31 
QuestionCaching Pin
NICE TO MEET18-Apr-07 20:07
NICE TO MEET18-Apr-07 20:07 
AnswerRe: Caching Pin
Sathesh Sakthivel18-Apr-07 20:56
Sathesh Sakthivel18-Apr-07 20:56 
AnswerRe: Caching Pin
Atif Ali Bhatti18-Apr-07 22:40
Atif Ali Bhatti18-Apr-07 22:40 
AnswerRe: Caching Pin
RichardGrimmer20-Apr-07 5:18
RichardGrimmer20-Apr-07 5:18 
QuestionCache Pin
NICE TO MEET18-Apr-07 20:05
NICE TO MEET18-Apr-07 20:05 
AnswerRe: Cache Pin
Sathesh Sakthivel18-Apr-07 21:00
Sathesh Sakthivel18-Apr-07 21:00 
This Example will help you.

In the following sample a file is read in Application_Start (defined in the Global.asax file) and the content is stored in a DataView object in the application state.
C#

void Application_Start()
{
DataSet ds = new DataSet();

FileStream fs = new FileStream(Server.MapPath("schemadata.xml"),FileMode.Open,FileAccess.Read);
StreamReader reader = new StreamReader(fs);
ds.ReadXml(reader);
fs.Close();

DataView view = new DataView(ds.Tables[0]);
Application["Source"] = view;
}



function Application_Start() : void
{
var ds:DataSet = new DataSet();

var fs:FileStream = new FileStream(Server.MapPath("schemadata.xml"),FileMode.Open,FileAccess.Read);
var reader:StreamReader = new StreamReader(fs);
ds.ReadXml(reader);
fs.Close();

var view:DataView = new DataView(ds.Tables[0]);
Application("Source") = view;
}





Regards,

Satips.

QuestionFrameset problem its very urgent........ [modified] Pin
Member 387988118-Apr-07 18:13
Member 387988118-Apr-07 18:13 
AnswerRe: Frameset problem its very urgent........ Pin
Venk25919-Apr-07 3:42
Venk25919-Apr-07 3:42 
QuestionASP.Net Message Box Pin
J Liang18-Apr-07 18:10
J Liang18-Apr-07 18:10 
AnswerRe: ASP.Net Message Box Pin
Shajeel18-Apr-07 19:16
Shajeel18-Apr-07 19:16 
GeneralRe: ASP.Net Message Box Pin
J Liang18-Apr-07 21:16
J Liang18-Apr-07 21:16 
GeneralRe: ASP.Net Message Box Pin
Shajeel18-Apr-07 21:23
Shajeel18-Apr-07 21:23 
GeneralRe: ASP.Net Message Box Pin
J Liang18-Apr-07 22:04
J Liang18-Apr-07 22:04 
GeneralRe: ASP.Net Message Box Pin
Shuaib wasif khan18-Apr-07 23:57
Shuaib wasif khan18-Apr-07 23:57 
GeneralRe: ASP.Net Message Box Pin
J Liang19-Apr-07 16:33
J Liang19-Apr-07 16:33 
GeneralRe: ASP.Net Message Box Pin
J Liang22-Apr-07 17:33
J Liang22-Apr-07 17:33 
AnswerRe: ASP.Net Message Box Pin
ritu432118-Apr-07 19:29
ritu432118-Apr-07 19:29 
GeneralRe: ASP.Net Message Box Pin
J Liang19-Apr-07 16:20
J Liang19-Apr-07 16:20 
QuestionCan we use ASP files in ASP.Net Solution Pin
Rahithi18-Apr-07 17:25
Rahithi18-Apr-07 17:25 
AnswerRe: Can we use ASP files in ASP.Net Solution Pin
Elizma18-Apr-07 18:05
Elizma18-Apr-07 18:05 
QuestionAccessing a List<object[]> from a repeater control Pin
eggie518-Apr-07 12:07
eggie518-Apr-07 12:07 
QuestionHow to get Server control to access parent container's controls collection? Pin
Dominic Pettifer18-Apr-07 12:04
Dominic Pettifer18-Apr-07 12:04 
AnswerRe: How to get Server control to access parent container's controls collection? Pin
koleraba18-Apr-07 15:41
koleraba18-Apr-07 15:41 

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.