?
Solved

Submit button and redirect

Posted on 2004-09-02
1
Medium Priority
?
471 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 500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

764 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