C# asp.net page error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having the .aspx page with c# as a coding language in the HTML side i am
requesting the variable if its true the seelct loop will execute else not.
But i am getting the error message . what is the proper way different from
ASP page i will code this.

<%if(Request(err)=='true')%>
<select name="vsspath">
<OPTION value="75" selected>Sales </OPTION>
<OPTION value="62" selected>Manage</OPTION>
<OPTION value="72">Service Delivery</OPTION>
</select>
<%end if%>

Thnaks
 
Hi Mustafa,

For doing those kind of activites in ASP.NET, it is better you do in page
load event. Please note there are lot of structural differences between ASP
and ASP.NET. The below url shows the structural differences in code blocks
between ASP and ASP.NET.

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcodeblocks.asp>

The below url lists the various information regarding migrating from ASP to
ASP.NET.

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcodeblocks.asp>

HTH

Regards,
Madhu

MVP - C# | MCSD.NET
 
Hi,

It seems you are moving from ASP to asp.net , they are very different and
the construction below should not be used, instead you use something like
this in the code behind

vsspath.Visible = Request(err) ;

you have to define vsspath as a DropDownList webcontrol.

It would be good idea if you read some articles about moving from asp to
asp.net in the MSDN site

Hope this help,
 
Back
Top