PC Review


Reply
Thread Tools Rate Thread

Attn: Carl Prothman [MVP]

 
 
scriptsDel
Guest
Posts: n/a
 
      13th Aug 2003
Carl, i know this is the ASP.NET newsgroup, I did a copy
paste of my exisitng ASP code to make sure the problem is
understood correctly.. i am migratng my existing ASP
applications and i need help on the migration -- i mean an
optimized approach where i will be using the new features
of ASP.NET...

Subject: Re: Script
From: "Carl Prothman [MVP]" <(E-Mail Removed)> Sent:
8/13/2003 11:40:30 AM




"ScriptDelm" <(E-Mail Removed)> wrote
> Thanks for the info,..actually what i am trying to is i
> have a ASP application


Note this is the ASP.NET newsgroup. If you are using ASP,
then please ask your questions in the ASP newsgroup.
microsoft.public.inetserver.asp.general

> which has the the code as listed
> below and i was trying to do a smiliar thing and i am
> getting an error.... CS0117
>
> <%if ucase(Request("Add"))="TRUE" then %>


If UCase(Request.Form("Add")) = "TRUE" Then

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com



 
Reply With Quote
 
 
 
 
Carl Prothman [MVP]
Guest
Posts: n/a
 
      13th Aug 2003
"scriptsDel" <(E-Mail Removed)> wrote
> Carl, i know this is the ASP.NET newsgroup, I did a copy
> paste of my exisitng ASP code to make sure the problem is
> understood correctly.. i am migratng my existing ASP
> applications and i need help on the migration -- i mean an
> optimized approach where i will be using the new features
> of ASP.NET...
> Subject: Re: Script
> From: "Carl Prothman [MVP]" <(E-Mail Removed)> Sent:
> 8/13/2003 11:40:30 AM
> "ScriptDelm" <(E-Mail Removed)> wrote
> > Thanks for the info,..actually what i am trying to is i
> > have a ASP application

> Note this is the ASP.NET newsgroup. If you are using ASP,
> then please ask your questions in the ASP newsgroup.
> microsoft.public.inetserver.asp.general
>


Ahhh, sorry! I missed the fact you were migrating to ASP.NET.
No worries... ;-)

> > which has the the code as listed
> > below and i was trying to do a smiliar thing and i am
> > getting an error.... CS0117
> >
> > <%if ucase(Request("Add"))="TRUE" then %>

>
> If UCase(Request.Form("Add")) = "TRUE" Then
>


In ASP.NET, you just use the control's ID value to get or set it's properties.
You no longer have to use the Request.Form to get the control's value.

For example, if you place a Button and a TextBox on a WinForm, then
double click on the Button, you will be taken to the button's clieck event
in the WinForm's code-behind page (assuming you are using Visual Studo
..NET).

Since the button click event fires, you know which button on the form was
click. Plus you can set or get the value of the textbox as follows:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Set the value for TextBox1
TextBox1.Text = "Hello World"

' Get the value from TextBox1
Dim s As String = TextBox1.Text
End Sub

For more info / examples, see
http://samples.gotdotnet.com/quickstart/aspplus/

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com




 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      13th Aug 2003
ScriptsDeml,

You should use user controls to replace include files.

I highly suggest running through these free tutorials from microsoft. They
are how I got started using Asp.Net after coding in vbscript for years.
They really helped me get started.

http://samples.gotdotnet.com/quickst...c/default.aspx

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"ScriptsDeml" <(E-Mail Removed)> wrote in message
news:037401c361dd$3c91a330$(E-Mail Removed)...
> Thanks Carl for the suggestion.. one more thing i want to
> clarify is i was using #include files a lot ... how can i
> replace them ?? i did try by creating a class but could
> not capture all the functionlaity...eg.. i was using a
> Head and Foot, its a table with <IMG> tag and other thing
> i have is a <iframe> where i was posting the from below
> is the HTML code
>
> <form NAME="frmSFMain" TARGET="ifrmyldb" METHOD="post"
> ACTION="SFinqry.asp" OnSubmit="return frmSFMain_OnSubmit
> ()">
> <iframe align=right height=95% name="ifrmyldb"
> src="SFinqry.asp" width="76%" scrolling=auto
> frameborder=2 allowtransparency>
> </iframe>
>
>
> i tried using the same but the POST is not the same like
> the ASP.. any suggestions ? please let me know if there is
> a better way to implement the same... thanks
> Anil
>
> >-----Original Message-----
> >"scriptsDel" <(E-Mail Removed)> wrote
> >> Carl, i know this is the ASP.NET newsgroup, I did a copy
> >> paste of my exisitng ASP code to make sure the problem

> is
> >> understood correctly.. i am migratng my existing ASP
> >> applications and i need help on the migration -- i mean

> an
> >> optimized approach where i will be using the new

> features
> >> of ASP.NET...
> >> Subject: Re: Script
> >> From: "Carl Prothman [MVP]" <(E-Mail Removed)> Sent:
> >> 8/13/2003 11:40:30 AM
> >> "ScriptDelm" <(E-Mail Removed)> wrote
> >> > Thanks for the info,..actually what i am trying to is

> i
> >> > have a ASP application
> >> Note this is the ASP.NET newsgroup. If you are using

> ASP,
> >> then please ask your questions in the ASP newsgroup.
> >> microsoft.public.inetserver.asp.general
> >>

> >
> >Ahhh, sorry! I missed the fact you were migrating to

> ASP.NET.
> >No worries... ;-)
> >
> >> > which has the the code as listed
> >> > below and i was trying to do a smiliar thing and i am
> >> > getting an error.... CS0117
> >> >
> >> > <%if ucase(Request("Add"))="TRUE" then %>
> >>
> >> If UCase(Request.Form("Add")) = "TRUE" Then
> >>

> >
> >In ASP.NET, you just use the control's ID value to get or

> set it's properties.
> >You no longer have to use the Request.Form to get the

> control's value.
> >
> >For example, if you place a Button and a TextBox on a

> WinForm, then
> >double click on the Button, you will be taken to the

> button's clieck event
> >in the WinForm's code-behind page (assuming you are using

> Visual Studo
> >..NET).
> >
> >Since the button click event fires, you know which button

> on the form was
> >click. Plus you can set or get the value of the textbox

> as follows:
> >
> >Private Sub Button1_Click(ByVal sender As System.Object,

> ByVal e As System.EventArgs) Handles Button1.Click
> > ' Set the value for TextBox1
> > TextBox1.Text = "Hello World"
> >
> > ' Get the value from TextBox1
> > Dim s As String = TextBox1.Text
> >End Sub
> >
> >For more info / examples, see
> >http://samples.gotdotnet.com/quickstart/aspplus/
> >
> >--
> >
> >Thanks,
> >Carl Prothman
> >Microsoft ASP.NET MVP
> >http://www.able-consulting.com
> >
> >
> >
> >
> >.
> >



 
Reply With Quote
 
Carl Prothman [MVP]
Guest
Posts: n/a
 
      13th Aug 2003
"ScriptsDeml" <(E-Mail Removed)> wrote
> Thanks Carl for the suggestion.. one more thing i want to
> clarify is i was using #include files a lot ... how can i
> replace them ??


You can still use include files. But the ASP.NET way is to
use User Controls
http://samples.gotdotnet.com/quickst...bpagelets.aspx
or Custom Controls
http://samples.gotdotnet.com/quickst...authoring.aspx

You might also want to take a look a one of the presentations I did:
"Migrating Existing ASP Applications to ASP.NETAn in-depth look at the
paradigm shifts and upgrade strategies". The questions are you asking are
the exact "paradigm shifts" you need to make when moving to ASP.NET
http://www.able-consulting.com/dotne...iles/frame.htm

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com




 
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
Seeking Carl Tao's P3b-F Bios (Carl's 1008TUA4 BIOS) stray77 Asus Motherboards 1 25th Jun 2005 10:45 AM
Carl Bildt blandar roller Ms Strongs man Microsoft Access 1 5th Sep 2003 02:36 PM
Attn: Carl Prothman [MVP] ScriptsDelm Microsoft ASP .NET 0 13th Aug 2003 09:59 PM
Re: To Carl Daniel and Ron Philgren Jay Moore Microsoft VC .NET 0 20th Jul 2003 12:55 AM
Russ/Carl...Please Help DRS Windows XP Print / Fax 2 16th Jul 2003 02:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:25 AM.