473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Using Asp.net web form and controls .vs html form and inputs

I am just starting to develop in asp.net and I have somewhat of a
familiarity with asp 3.0. I am comfortable with asp 3.0 for my server side
processing and javascript for client side. I also like the regular form,
inputs, etc., in html. I seem to be having trouble with finding how to
change the action for the asp.net form control to a different url and the
action defaults to the same page that the form is on. It seems very
confusing since I can't see where this is being set or how I can change it.
Is there any problem with just using the regular html tags interspersed with
asp code and javascript in an asp.net application? I'm sure that Microsoft
wants us to use the newer method but what advantage is there to doing this?
Any insight into this will be helpful. Thanks

Oct 27 '08 #1
2 1878
asp.net use a postback to self model. you can not set the action on a form
(with a runat="server"). you can set the postbackurl on a submit button basis.

there are two types of controls, webcontrols, the .net abstract, or
HtmlControls, which is a subset of the html controls. any markup between
server controls is placed in a generic control.
-- bruce (sqlwork.com)
"Ellie" wrote:
I am just starting to develop in asp.net and I have somewhat of a
familiarity with asp 3.0. I am comfortable with asp 3.0 for my server side
processing and javascript for client side. I also like the regular form,
inputs, etc., in html. I seem to be having trouble with finding how to
change the action for the asp.net form control to a different url and the
action defaults to the same page that the form is on. It seems very
confusing since I can't see where this is being set or how I can change it.
Is there any problem with just using the regular html tags interspersed with
asp code and javascript in an asp.net application? I'm sure that Microsoft
wants us to use the newer method but what advantage is there to doing this?
Any insight into this will be helpful. Thanks

Oct 27 '08 #2
Well now that I'm working with this more there are things that I like about
the asp.net new way and things that I like about the old way. I like using
the html controls better and I like using the old submit/action better but I
do really like having classes and linking them into my project. So for now
I'm going to mix it up since html is the standard I can't see the html
controls going away any time soon. I did two very nice websites in vb6
webclasses, after much head banging, and now look where that got me...
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:89**********************************@microsof t.com...
asp.net use a postback to self model. you can not set the action on a form
(with a runat="server"). you can set the postbackurl on a submit button
basis.

there are two types of controls, webcontrols, the .net abstract, or
HtmlControls, which is a subset of the html controls. any markup between
server controls is placed in a generic control.
-- bruce (sqlwork.com)
"Ellie" wrote:
>I am just starting to develop in asp.net and I have somewhat of a
familiarity with asp 3.0. I am comfortable with asp 3.0 for my server
side
processing and javascript for client side. I also like the regular form,
inputs, etc., in html. I seem to be having trouble with finding how to
change the action for the asp.net form control to a different url and the
action defaults to the same page that the form is on. It seems very
confusing since I can't see where this is being set or how I can change
it.
Is there any problem with just using the regular html tags interspersed
with
asp code and javascript in an asp.net application? I'm sure that
Microsoft
wants us to use the newer method but what advantage is there to doing
this?
Any insight into this will be helpful. Thanks

Oct 30 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see...
5
by: pizzy | last post by:
I am having a problem with the last results. I can't seem to be able to get the input2A and input3A to appear. I don't seem to have a problem with the show and hide after a number is entered and...
10
by: GP | last post by:
Is it possible to iterate through all the controls collection and make the textboxes alone as read only.I don't see a readonly property for the Control.Can some one help me in this context? I...
1
by: CS Wong | last post by:
Hi, I have a page form where form elements are created dynamically using Javascript instead of programatically at the code-behind level. I have problems accessing the dynamically-created...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
19
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: ...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get the value of a form control? -----------------------------------------------------------------------...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.