Don't know how to view submitted values.

  • Thread starter Thread starter r3n
  • Start date Start date
R

r3n

Hello,

I have used .NET with C# in the past, but since forgotten everything
(even the basics).

I have managed to throw together a page with a text field and a submit
button. But how do I get to the values of these submitted items in my
C# source?

Cheers!
 
Ah thanks :)

What if I want to test this? I have tried the following.

private void Page_Load(object sender, System.EventArgs e)
{
String drinksList = Request.Form["drinksList"];
System.Console.WriteLine(drinksList);
}

This dosen't really seem to do anything.
 
What is it supposed to do? You are writing the value to the Console and not
the web page. Can you step through the debugger and see if drinksList is
set?
 
Hmm, OK I'll use a watch. Just so used to scripting languages where you
cant use proper debugging tools.

Thanks for your help Alex.
 

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