Solved

Submit button and redirect

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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