PC Review


Reply
Thread Tools Rate Thread

C# asp.net page error

 
 
=?Utf-8?B?TXVzdGFmYQ==?=
Guest
Posts: n/a
 
      4th Jan 2005
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFkaHVbQyMtTVZQXQ==?=
Guest
Posts: n/a
 
      4th Jan 2005
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

"Mustafa" wrote:

> 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

 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      4th Jan 2005
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Mustafa" <(E-Mail Removed)> wrote in message
news:AA5C8C11-CF36-4819-8979-(E-Mail Removed)...
>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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message - Page error in non page area =?Utf-8?B?RG9u?= Windows Vista Hardware 2 4th Aug 2008 04:20 PM
STOP 0x50 error...page fault non page error =?Utf-8?B?bGFkeWJ1Z2NsZw==?= Windows XP Help 2 6th Apr 2007 03:38 AM
Page Wizard: unable to create your data access page error. =?Utf-8?B?YmF0em1hcm9vbjcwNw==?= Microsoft Access 0 12th Jul 2006 02:49 AM
IE error Page Can Not Be Displayed, then page fault error Tim Windows XP Internet Explorer 2 25th Jun 2004 04:36 PM
Explorer opens part of page, then runs to DNS/Cannot Display page error Jordan Windows XP Internet Explorer 0 19th Dec 2003 03:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:24 AM.