Solved

Submit button and redirect

Posted on 2004-09-02
1
445 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now