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

Simple navigation problem

I have the following code that was created automatically by dropping a
button onto a web form and setting the action property of the form

The form is called WebForm2.aspx

<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action="WebForm1.aspx">
<asp:Button id="submit" style="Z-INDEX: 101; LEFT: 296px; POSITION:
absolute; TOP: 104px" runat="server"
Text="Button"></asp:Button>
</form>
</body>

When I click the button the page navigates to itself(Webform2.aspx) whereas
I would expect webform1.aspx to be displayed.

I am new to this stuff but I believe that this worked in simple asp

Can anybody help please

Thanks in advance

Ross
Nov 18 '05 #1
3 956
Hi,

Put a onClick event on the button and write a subroutine for that event on the same page only.
Like

<Script Language="VB" runat="server">
Sub Submit_Click(sender As Object, e As System.EventArgs)
.......Do anything here
End Sub
</script>
<html>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action="WebForm1.aspx">
<asp:Button id="submit" style="Z-INDEX: 101; LEFT: 296px; POSITION:absolute; TOP: 104px" runat="server" Text="Button" onClick="Submit_Click"></asp:Button>
</form>
</body>

Hope this helps...

Regards,
Bhaskardeep Khaund
Nov 18 '05 #2
Thanks

The effect of my problem is that I cannot send a form to the next aspx page.

How can I send form data without using "?" parameters which show in the title bar

Ross
"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:ea**************@TK2MSFTNGP10.phx.gbl...
Hi,

Put a onClick event on the button and write a subroutine for that event on the same page only.
Like

<Script Language="VB" runat="server">
Sub Submit_Click(sender As Object, e As System.EventArgs)
.......Do anything here
End Sub
</script>
<html>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action="WebForm1.aspx">
<asp:Button id="submit" style="Z-INDEX: 101; LEFT: 296px; POSITION:absolute; TOP: 104px" runat="server" Text="Button" onClick="Submit_Click"></asp:Button>
</form>
</body>

Hope this helps...

Regards,
Bhaskardeep Khaund
Nov 18 '05 #3
I've worked it out

Server.Transfer("Confirm.aspx", True)



"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:ea**************@TK2MSFTNGP10.phx.gbl...
Hi,

Put a onClick event on the button and write a subroutine for that event on the same page only.
Like

<Script Language="VB" runat="server">
Sub Submit_Click(sender As Object, e As System.EventArgs)
.......Do anything here
End Sub
</script>
<html>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action="WebForm1.aspx">
<asp:Button id="submit" style="Z-INDEX: 101; LEFT: 296px; POSITION:absolute; TOP: 104px" runat="server" Text="Button" onClick="Submit_Click"></asp:Button>
</form>
</body>

Hope this helps...

Regards,
Bhaskardeep Khaund
Nov 18 '05 #4

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

Similar topics

1
by: Michael Champagne | last post by:
Does anyone have any examples or links to examples of generating a simple unordered list menu with multiple levels from an XML file? We are redesigning the navigation on our website and I was...
0
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
1
by: thomson | last post by:
Hi all, i have enabled Smart Navigation in the Page attribute, My Webform has several Webform controls, all applied with style sheets from an external file. Problem --------- When a postback...
14
by: Melanie Avids | last post by:
Hi, I'm tired of banging my head on the computer. I'm hoping someone can help? I have a very small simple page that looks perfect in Firefox, Safari, and Netscape. It's clean. The HTML and CSS both...
1
by: KShapiro | last post by:
Hi All, I am trying to assist my wife, by making a simple menu system for the website. The web page is a .php4 file and does an include of the navigation file. Before it includes that file at...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
10
by: EA | last post by:
I am sure I must be missing something about building navigation bars with CSS. Yes it is a very clever and efficient way to format navigation structures on simple one navigation level webs, i.e....
4
by: tburger | last post by:
Hey everyone- This is my first post at The Scripts, but I've used the forums before for other programming issues. Hopefully, someone has some solid styling advice for me. I've now been dealing...
2
by: 1kky | last post by:
Hi all, i have a big problem with my navigation bar.. the thing is i can get all of the work apart from when you click a department name you go inside that department you can see the tabs but...
0
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.