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"];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top