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
Solved

Submit button and redirect

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…

789 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