How do I control or pass data from a webForm object and an html object?

  • Thread starter Thread starter Steve Westwood
  • Start date Start date
S

Steve Westwood

Using the VS dotNet C# environment how do I control or pass data from a
webForm object and an html object?

Thank you

Steve
 
Depends where you are passing them too. Typically you'd store it in Session
objects .

So if you wanted someVariable to = "Hello" and you wanted to see it
everywhere.....

Session.Add("someVariable", "Hello");

Then you can just extract it with

WhateverString =
l.IPAddress = (string) Session["someVariable"];
 
Back
Top