trivial ? build error

C

Carlos

Hi all,

II am getting a build error for the folowing statement:

String sGetVarVal = Request.QueryString("myvar");

error:

System.Web.HttpRequest.QueryString' denotes a 'property' where a 'method'
was expected

I though that the statement is correct!! have seen it a lot of times. Can
anyone help on this? Thanks



Carlos.
 
E

Eliyahu Goldin

Carlos,

Have you just moved from vb to vc#?

String sGetVarVal = Request.QueryString["myvar"];

Eliyahu
 
J

Juan T. Llibre

Try String sGetVarVal = Request.QueryString["myvar"];

You're using VB syntax in C# code.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top