473,395 Members | 1,443 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,395 software developers and data experts.

Separating form elements

I have a series of controls (a few buttons that clears content,
inserts data into dbase, logs out a user session) that need to work
independently of each other, but I cannot put all these controls into
more than one form tag, as asp.net pages are not allowed to have more
than one < form runat: server> tag. . If i try to logout of a session
on the page with this:
'''
<script language="VB" runat="server">
Sub logout(Sender As Object, e As EventArgs)
Session.Clear()
Response.Redirect("admin-login.aspx")
End Sub
</script>
<asp:Button id="button4" onClick="logout" Text="Logout"
class="inputSubmit" runat="server" />
'''

...it tries to post my info again from the insert textbox objects
before the logout button.

??
chumley
Jul 21 '05 #1
1 1108
Hi Chumley,

Did you know that there is a newsgroup
microsoft.public.dotnet.framework.aspnet

In my opinion the place for this question.

Cor
I have a series of controls (a few buttons that clears content,
inserts data into dbase, logs out a user session) that need to work
independently of each other, but I cannot put all these controls into
more than one form tag, as asp.net pages are not allowed to have more
than one < form runat: server> tag. . If i try to logout of a session
on the page with this:
'''
<script language="VB" runat="server">
Sub logout(Sender As Object, e As EventArgs)
Session.Clear()
Response.Redirect("admin-login.aspx")
End Sub
</script>
<asp:Button id="button4" onClick="logout" Text="Logout"
class="inputSubmit" runat="server" />
'''

..it tries to post my info again from the insert textbox objects
before the logout button.

??
chumley

Jul 21 '05 #2

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
1
by: Howard Jess | last post by:
Apparently, form elements of type <input type="image" src="...> are not included in the form's elements collection. I don't understand why not; according to DOM2, all form control elements...
4
by: WindAndWaves | last post by:
Hi Gurus I have the following statement in my code: var e = form.elements; Is it possible to put any conditions on this statement. What I actually want to say is: var e = form.elements...
12
by: Pudlik, Szymon | last post by:
Hi, I've written some code: function onSubmit(form){ for (var i = 0; i < form.elements.lenght; i++){ if (form.elements.disabled == 1) form.elements.disabled = 0; }
1
by: Chumley the Walrus | last post by:
I have a series of controls (a few buttons that clears content, inserts data into dbase, logs out a user session) that need to work independently of each other, but I cannot put all these controls...
1
by: Chumley the Walrus | last post by:
I have a series of controls (a few buttons that clears content, inserts data into dbase, logs out a user session) that need to work independently of each other, but I cannot put all these controls...
25
by: Dave | last post by:
Hello. In trying to get an anchor element to stylistically match an input or button element, I find that the button and input cannot be styled according to the 2.1 CSS spec. For example, I...
2
by: mars123 | last post by:
hi, I am facing a js error in my code, below is the prob. statement I have a radio2 javascript function as below, it works like this.. When a parent radio button is selected only one of its...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.