Click here to Skip to main content
16,004,406 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read until "- -" ??? Pin
Scott Serl16-Oct-05 15:00
Scott Serl16-Oct-05 15:00 
Questionvideo streaming, Is it possible Pin
serguey_haftrige15-Oct-05 12:23
serguey_haftrige15-Oct-05 12:23 
AnswerRe: video streaming, Is it possible Pin
leppie15-Oct-05 23:24
leppie15-Oct-05 23:24 
QuestionPersistence Pin
Sled Dog15-Oct-05 11:27
Sled Dog15-Oct-05 11:27 
AnswerRe: Persistence Pin
Rob Philpott16-Oct-05 1:14
Rob Philpott16-Oct-05 1:14 
GeneralRe: Persistence Pin
Sled Dog16-Oct-05 3:54
Sled Dog16-Oct-05 3:54 
GeneralRe: Persistence Pin
Rob Philpott16-Oct-05 4:19
Rob Philpott16-Oct-05 4:19 
GeneralRe: Persistence Pin
Sled Dog16-Oct-05 4:37
Sled Dog16-Oct-05 4:37 
Rob,

first, let me really thank you for assisting so much. Problem solved because of your additional questions...

Your right, line 102 wasn't useful...I was just grabbing at straws.

The answer was, I did not realize that you had to add the dataset to the session dictionary with an "alias" name in order to access it: Session.Contents.Add("Myds", ds);

Thank you again...the code below works fine!

William

private void Page_Load(object sender, System.EventArgs e)
{
DataSet localDS = (DataSet)Session.Contents["Myds"];
dd1.DataSource = localDS;
dd1.DataTextField = "Name";
dd1.DataValueField = "ID";
dd1.DataBind();
...

protected void Session_Start(Object sender, EventArgs e)
{
DataSet ds = new DataSet();
DataRow dr;

ds.Tables.Add("Test");
ds.Tables[0].Columns.Add();
ds.Tables[0].Columns[0].ColumnName = "Name";
ds.Tables[0].Columns.Add();
ds.Tables[0].Columns[1].ColumnName = "ID";

dr = ds.Tables[0].NewRow();
dr[0] = "Test1";
dr[1] = 1;
ds.Tables[0].Rows.Add(dr);

dr = ds.Tables[0].NewRow();
dr[0] = "Test2";
dr[1] = 2;
ds.Tables[0].Rows.Add(dr);

Session.Contents.Add("Myds", ds);
...

GeneralRe: Persistence Pin
Rob Philpott16-Oct-05 4:54
Rob Philpott16-Oct-05 4:54 
Question"Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 9:52
Sled Dog15-Oct-05 9:52 
AnswerRe: "Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 9:59
Sled Dog15-Oct-05 9:59 
AnswerRe: "Public Shared" equivalent in VB & Global Pin
Sled Dog15-Oct-05 11:08
Sled Dog15-Oct-05 11:08 
QuestionDetermining DNS servers with C# Pin
Rob Philpott15-Oct-05 7:45
Rob Philpott15-Oct-05 7:45 
AnswerRe: Determining DNS servers with C# Pin
leppie15-Oct-05 21:24
leppie15-Oct-05 21:24 
GeneralRe: Determining DNS servers with C# Pin
Rob Philpott15-Oct-05 23:54
Rob Philpott15-Oct-05 23:54 
QuestionStill locked in first TextBox Pin
Anonymous15-Oct-05 6:16
Anonymous15-Oct-05 6:16 
JokeRe: Still locked in first TextBox Pin
leppie15-Oct-05 7:10
leppie15-Oct-05 7:10 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 9:16
Anonymous15-Oct-05 9:16 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 11:33
Anonymous15-Oct-05 11:33 
AnswerRe: Still locked in first TextBox Pin
leppie15-Oct-05 21:30
leppie15-Oct-05 21:30 
GeneralRe: Still locked in first TextBox Pin
Guffa15-Oct-05 12:07
Guffa15-Oct-05 12:07 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 12:20
Anonymous15-Oct-05 12:20 
GeneralRe: Still locked in first TextBox Pin
Guffa15-Oct-05 13:52
Guffa15-Oct-05 13:52 
GeneralRe: Still locked in first TextBox Pin
S. Senthil Kumar15-Oct-05 21:04
S. Senthil Kumar15-Oct-05 21:04 
QuestionThis problem again Pin
snouto15-Oct-05 5:16
snouto15-Oct-05 5:16 

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.