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

Separating form elements on aspx page

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
Nov 18 '05 #1
1 1095
iframes?

Eliyahu

"Chumley the Walrus" <sp*******@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
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

Nov 18 '05 #2

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

Similar topics

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...
10
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc....
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
3
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink...
4
by: Venus | last post by:
Hello, Thanks for your reply. I understand that a control can be created dynamically in several ways: 1) using StringBuilder 2) using Controls.Add 3) using ASP PlaceHolder But this is just...
13
by: Michelle | last post by:
Hi all... I could use a little TLC here for understanding and not for solving a specific problem... sorry if I've got the wrong group, but I'm using VB so I figured this was the most appropriate...
8
by: Jeff S | last post by:
Please note that this question is NOT about any particular pattern - but about the general objective of separating out presentation logic from everything else. I'm trying to "get a grip" on some...
4
by: Alex Maghen | last post by:
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I...
6
by: Aussie Rules | last post by:
Hi, I have an asp.net 2.0 page that has two sections. Each section allows the user to enter a value into a text box, click a button and then perform some function. Each text boxes function is...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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:
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,...

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.