Solved

Submit button and redirect

Posted on 2004-09-02
1
461 Views
Last Modified: 2011-09-20
Not sure what is wrong all I want to do is submit this page and it just reloads back this page even though my action is to jobbalance.aspx. I just read somewhere ASP ignores the action under form if that is true how can I redirect it?

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="DsJobs"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_AccessStarbuilder") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_AccessStarbuilder") %>'
CommandText='<%# "SELECT * FROM Qry_Job_Costing_Jobs ORDER BY job_no ASC" %>'
Debug="true"
> </MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Select Job</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form action="jobbalance.aspx" method="get" name="Job Number" title="Job Number" runat="server">
  <table width="75%" border="1">
    <tr>
      <td width="24%">&nbsp;</td>
      <td width="66%">&nbsp;</td>
      <td width="10%">&nbsp;</td>
    </tr>
    <tr>
      <td><font size="2">Select Job Numbe</font>r</td>
      <td><asp:dropdownlist DataMember="datamember" DataSource="<%#DsJobs.DefaultView%>" DataTextField="job_no" DataValueField="job_no" ID="JobNum" runat="server"></asp:dropdownlist></td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <p>
   
  </p>
  <asp:button ID="btnsubmit" runat="server" Text="Go" />
</form>
</body>
</html>
0
Comment
Question by:wil934
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
hendridm earned 125 total points
ID: 11966354
<script runat="server">
   Sub Page_Transfer(sender As Object, e As EventArgs)
      Server.Transfer("jobbalance.aspx")
   End sub
</script>

...

<asp:button ID="btnsubmit" runat="server" Text="Go" OnClick="Page_Transfer" />
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question