|
| |
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
Filter data to an ASPX page - 5/31/2007 9:59:56
I’m not quite sure how do go about asking for this information so I will give it my best shot. I want to create a page where customers can view there invoices online via pdf. My aim is to create a page (page1) where all clients will go to look for there outstanding invoices. This page will contain a single box where they will enter their account number (123456) They will then click the GO button and they are then taken to a second page where they can see the outstanding invoices. If they have no invoices then they will see the text “You currently have no outstanding invoices with us” I know how to create the filtered page such as Domain.com/invoices/results?=123456 Where I am having the problem is passing this information from the first page to the second so they get the correct results. I have done this before in many ways but never using a text box that the info can change in. I hope I have explained it correctly.
_____________________________
Alan http://www.newebirl.net
|
|
|
|
rdouglass
Posts: 9202 From: Biddeford, ME USA Status: offline
|
RE: Filter data to an ASPX page - 5/31/2007 10:25:25
quote:
Where I am having the problem is passing this information from the first page to the second so they get the correct results. Are you using a request.querystring("name") on the second page? If so, try just using Request("name") on that page instead. Or are you using some other method?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 5/31/2007 11:51:05
There are a couple different ways you can do this. If you are using ASP.NET 2.0, you can use the new PostBackUrl property. This property can be set on a button and it will post the results to the url. For example, on page1.aspx, you would have the following server controls:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Go" PostBackUrl="~/Page2.aspx" />
The above code displays a text box and a go button. Notice the PostBackURL property of the button. When a user enters their account number and clicks go, the page would be redirected to page2.aspx. To retrieve the value in page2.aspx, you would use something like the following in the page load event of page2.aspx:
Dim txt As TextBox = PreviousPage.FindControl("TextBox1")
Dim accountNumber As string = txt.Text
Another way is to insert the value entered by the user into a querystring and send it to page2.aspx. To do that, you would add the following code to the go button's click event in page1.aspx:
Response.Redirect("~/page2.aspx?accountNumber=" & TextBox1.Text)
The above code takes the value entered by the user in the text box, inserts it into the querystring, and redirects to page2.aspx. Then to retrieve the value in page2.aspx, add the following code to page2.aspx page load event:
Dim accountNumber As string = Request.QueryString("accountNumber")
I hope that makes sense. Is this what you are looking for?
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 5/31/2007 17:12:57
Thanks Chaps WantToLearn I can't find the page load event. In the events list their is no page load event. The aspx pages I am using takes the page layout from a .master page. The section I am working on has no page load event.
_____________________________
Alan http://www.newebirl.net
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 5/31/2007 17:47:19
You have to add the page load event handler code to the page. Are you using Expression Web or Visual Web Developer (visual studio)? If you are using Visual Web Developer, you can double-click a blank space on the page in design view and it will create the page load event handler code. If you are using Expression Web, you'll have to insert the page load event handler code yourself. In either case, the page load event code looks this:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
'...your code here...
End Sub
So, to use the querystring method in the page load event of a page that is a child of a master page, you would do something like this:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim accountNumber As Integer = Request.QueryString("accountNumber")
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
or, using the PostBackUrl method:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim txt As TextBox = PreviousPage.FindControl("TextBox1")
Dim accountNumber As Integer = txt.Text
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
Hope that helps.
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 5/31/2007 18:54:33
That error means it can't find the page. Is invoices.aspx in the root of the website? Try changing the PostBackURL from "/invoices.aspx" to "~/invoices.aspx" In asp.net 2, the tilde (~) is a shortcut for the root of the website.
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 6/1/2007 5:09:02
Tried that and still the same message. I then tried entering the full address but it gives a runtime error when I open the second page (invoices.aspx) If I take the following script code out
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim txt As TextBox = PreviousPage.FindControl("TextBox1")
Dim accountNumber As Integer = txt.Text
End Sub
</script>
The page is found by the first page and is displaying correctly but the data is not showing. This is the code on the second page that works on the second page without the code in it:
<%@ Page language="VB" masterpagefile="../masteraspx.master" title="HomeProfileContact usSite Map" %>
I'm putting the script in here
<asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="innerLeft">
<ul>
<li class="itemTitle">Control Panel Login</li>
<li>
<form action="http://r805.res.hosting365.ie:8080/psoft/servlet/psoft.hsphere.CP" method="POST">
<input type="hidden" name="action" value="login">
<input type="hidden" name="ftemplate" value="design/login.html">
Login<br>
</br><input type="text" name="login" >
<br>
</br>Password<br>
</br><input type="password" name="password" ><br>
<input type="submit" class="button" border="0" name="button" value="Log in">
</form>
</li>
<li class="itemTitle">Web Mail Access</li>
<li>
<form action="http://82.195.128.132/horde/imp/redirect.php" method="post" name="implogin">
<input type="hidden" name="realm" value="" />
<input type="hidden" name="protocol" value="imap" />
<input type="hidden" name="maildomain" value="" />
<input type="hidden" name="namespace" value="INBOX." />
<input type="hidden" name="port" value="143" />
<input type="hidden" name="server" value="localhost" />
<input type="hidden" name="actionID" value="105" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="mailbox" value="INBOX" />
<!-- http://82.195.128.192/horde/imp/redirect.php -->
Email<br>
</br><input type="text" tabindex="1" name="imapuser" value="">
<br>
</br>Password<br>
</br>
<input type="password" tabindex="2" name="pass">
<input type="submit" class="button" name="button" tabindex="4" value="Log in" onclick="return submit_login();">
<input type="hidden" name="folders" value="" />
</form>
</li>
</ul>
</div>
<div id="innerRight">Right Container</div>
<div id="innerContent">
<p>Documents linked to on this page are created in PDF format. To read
these documents will require you to have the free Adobe Reader installed
on your system.</p>
<p>If you do not have the free Adobe Reader you can download it here</p>
<p>
<asp:GridView runat="server" id="GridView1" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" ShowHeader="False" GridLines="None" CellPadding="3" DataKeyNames="record_id">
<Columns>
<asp:boundfield DataField="client_id" SortExpression="client_id" HeaderText="client_id">
<ItemStyle BackColor="#E0E0E0" BorderStyle="Solid" Width="50px" Height="20px" ForeColor="#404040" BorderWidth="1px" BorderColor="Gray" HorizontalAlign="Center" Font-Size="90%" Font-Bold="True" VerticalAlign="Middle" />
</asp:boundfield>
<asp:boundfield DataField="client" SortExpression="client" HeaderText="client">
<ItemStyle BorderStyle="Solid" Width="400px" Height="20px" BorderWidth="1px" BorderColor="Gray" HorizontalAlign="Left" VerticalAlign="Middle" />
</asp:boundfield>
</Columns>
</asp:GridView>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:newebir_genDBConnectionString1 %>" SelectCommand="SELECT * FROM [payments] WHERE ([client_id] = @client_id)">
<SelectParameters>
<asp:querystringparameter Type="String" Name="client_id" QueryStringField="client_id" />
</SelectParameters>
</asp:SqlDataSource>
</p>
<p>
<asp:GridView runat="server" id="GridView2" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="record_id" GridLines="None" CellPadding="5">
<Columns>
<asp:boundfield DataField="invoice_no" SortExpression="invoice_no" HeaderText="Invoice">
<ItemStyle Width="30px" />
</asp:boundfield>
<asp:boundfield DataField="date" SortExpression="date" HeaderText="Date">
</asp:boundfield>
<asp:boundfield DataField="amount" SortExpression="amount" HeaderText="Amount">
</asp:boundfield>
<asp:hyperlinkfield HeaderText="PayPal" Text="Pay Now" DataNavigateUrlFields="paypal_link">
</asp:hyperlinkfield>
<asp:hyperlinkfield Text="View Invoice" DataNavigateUrlFields="invoice_copy">
</asp:hyperlinkfield>
</Columns>
</asp:GridView>
</p>
</div>
</asp:Content>
_____________________________
Alan http://www.newebirl.net
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 6/1/2007 14:47:42
It looks like you need to use the querystring method instead to send the client id because the gridview and sqlDataSource in your invoices page are looking for a querystring value for the select statement. Try something like the following in page 1 (index.aspx).
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<script runat="server">
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Redirect("~/invoices.aspx?client_id=" & TextBox1.Text)
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Go" />
</asp:Content>
This will send the client id as a querystring to invoices.aspx. The sqlDataSource that you have setup in invoices.aspx will then automatically pull in the query string so you don't need any page load code in invoices.aspx. Give that a try.
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 4:46:56
Hi WantToLearn I was running the new pages in different browsers to have a look at it and discovered a little problem. Everything works in FireFox but with the other browsers it just stays on the first page and won't take you to the second page where the information is displayed. I tried it in IE7, Netscape, Opera and it fails to work in any of them. I then opened it again in FireFox and it runs perfect. I'm sure its just a simple little issue but I just can't fine it!!
_____________________________
Alan http://www.newebirl.net
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 11:52:12
First thing to try: In index.aspx, is the textbox and go button within a form tag which has a runat="server" attribute? All asp.net controls must be within a <form runat="server"> tag in order to work properly (see example below):
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Go" OnClick="Button1_Click" />
</form>
I looked at the source code of index.aspx and it appears that the text box and go button are not within any form. If this is in fact true, try surrounding them in a form tag with a runat="server" attribute as shown above. Note also that there can only be one form with a runat="server" attribute per page so if there are other asp.net controls on the page, you'll need to enlarge the form so that all asp.net controls are included. Let us know if that solves the problem.
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 15:43:34
Hi Tried that, I get an error if I try use that. The run at server is already in the master page. Using it again causes an error. If I change the name of the formID it still wont work. I then took the run at server out of the .master page and tried to run it on the first page but again I got an error. I then tried to put a standard form holder around the fields but still no luck.
_____________________________
Alan http://www.newebirl.net
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 16:44:37
My bad. I keep forgetting it is linked to a master page and already has a form runat server. hhmm... I've never had a problem like this; it has always worked for me in all the different browsers. If you want to post or send me the entire code for the page, I'll take a closer look at it.
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 17:54:16
Ok Here we go: Master Page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Master Language="VB" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<link rel="stylesheet" type="text/css" href="style/sceenStyle.css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" id="container">
<tr>
<td id="leftside" valign="top"> </td>
<td valign="top" id="mainArea">
<div id="mastHead">
<div class="smallMenu">
<ul id="topNav">
<li class="divider"><a href="http://www.newebirl.eu/invoices/index.aspx">Home</a></li>
<li class="divider">Profile</li>
<li class="divider"><a href="contact.aspx">Contact us</a></li>
<li>Site Map</li>
</ul>
</div>
<div class="logo"><img src="http://www.newebirl.eu/images/neweblogo.gif" /></div>
</div>
<div id="mainNavBox">
<ul id="nav">
<li class="divider"><a href="services/index.htm">Services</a></li>
<li class="divider">Clients</li>
<li class="divider">Portfolio</li>
</ul>
</div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<div id="innerLeft">
<ul>
<li class="itemTitle">Control Panel Login</li>
<li>
<form action="http://r805.res.hosting365.ie:8080/psoft/servlet/psoft.hsphere.CP" method="POST">
<input type="hidden" name="action" value="login">
<input type="hidden" name="ftemplate" value="design/login.html">
Login<br>
</br><input type="text" name="login" >
<br>
</br>Password<br>
</br><input type="password" name="password" ><br>
<input type="submit" class="button" border="0" name="button" value="Log in">
</form>
</li>
<li class="itemTitle">Web Mail Access</li>
<li>
<form action="http://82.195.128.132/horde/imp/redirect.php" method="post" name="implogin">
<input type="hidden" name="realm" value="" />
<input type="hidden" name="protocol" value="imap" />
<input type="hidden" name="maildomain" value="" />
<input type="hidden" name="namespace" value="INBOX." />
<input type="hidden" name="port" value="143" />
<input type="hidden" name="server" value="localhost" />
<input type="hidden" name="actionID" value="105" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="mailbox" value="INBOX" />
<!-- http://82.195.128.192/horde/imp/redirect.php -->
Email<br>
</br><input type="text" tabindex="1" name="imapuser" value="">
<br>
</br>Password<br>
</br>
<input type="password" tabindex="2" name="pass">
<input type="submit" class="button" name="button" tabindex="4" value="Log in" onclick="return submit_login();">
<input type="hidden" name="folders" value="" />
</form>
</li>
</ul>
</div>
<div id="innerRight">Right Container</div>
<div id="innerContent">Master content</div>
</asp:ContentPlaceHolder>
</td>
<td id="rightside"> </td>
</tr>
</table>
</form>
</body>
</html>
invoices/ndex.aspx
<%@ Page masterpagefile="../masteraspx.master" language="VB" title="Enter Account Number" %>
<script runat="server">
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Redirect("~/invoices/invoices.aspx?client_id=" & TextBox1.Text)
End Sub
</script>
<asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="innerLeft">
<ul>
<li class="itemTitle">Control Panel Login</li>
<li>
<form action="http://r805.res.hosting365.ie:8080/psoft/servlet/psoft.hsphere.CP" method="POST">
<input type="hidden" name="action" value="login"><input type="hidden" name="ftemplate" value="design/login.html">
Login<br>
</br><input type="text" name="login" ><br>
</br>Password<br>
</br><input type="password" name="password" ><br>
<input type="submit" class="button" border="0" name="button" value="Log in"></form>
</li>
<li class="itemTitle">Web Mail Access</li>
<li>
<form action="http://82.195.128.132/horde/imp/redirect.php" method="post" name="implogin">
<input type="hidden" name="realm" value="" /><input type="hidden" name="protocol" value="imap" /><input type="hidden" name="maildomain" value="" /><input type="hidden" name="namespace" value="INBOX." /><input type="hidden" name="port" value="143" /><input type="hidden" name="server" value="localhost" /><input type="hidden" name="actionID" value="105" /><input type="hidden" name="url" value="" /><input type="hidden" name="mailbox" value="INBOX" /><!-- http://82.195.128.192/horde/imp/redirect.php -->
Email<br>
</br><input type="text" tabindex="1" name="imapuser" value=""><br>
</br>Password<br>
</br>
<input type="password" tabindex="2" name="pass"><input type="submit" class="button" name="button" tabindex="4" value="Log in" onclick="return submit_login();"><input type="hidden" name="folders" value="" /></form>
</li>
</ul>
</div>
<div id="innerRight">Right Container</div>
<div id="innerContent">
<p>To access your current outstanding invoices, enter your account
number and press go</p>
<p><b>Account No:</b><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Go" />
<asp:RequiredFieldValidator runat="server" ErrorMessage="Enter Account No" id="RequiredFieldValidator1" ControlToValidate="TextBox1">
</asp:RequiredFieldValidator></p>
</div>
</asp:Content>
The results page is working fiine but what the hell invoices/invoices.aspx
<%@ Page language="VB" masterpagefile="../masteraspx.master" title="HomeProfileContact usSite Map" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="innerLeft">
<ul>
<li class="itemTitle">Control Panel Login</li>
<li>
<form action="http://r805.res.hosting365.ie:8080/psoft/servlet/psoft.hsphere.CP" method="POST">
<input type="hidden" name="action" value="login">
<input type="hidden" name="ftemplate" value="design/login.html">
Login<br>
<input type="text" name="login" >
<br>
</br>Password<br>
<input type="password" name="password" ><br>
<input type="submit" class="button" border="0" name="button" value="Log in">
</form>
</li>
<li class="itemTitle">Web Mail Access</li>
<li>
<form action="http://82.195.128.132/horde/imp/redirect.php" method="post" name="implogin">
<input type="hidden" name="realm" value="" />
<input type="hidden" name="protocol" value="imap" />
<input type="hidden" name="maildomain" value="" />
<input type="hidden" name="namespace" value="INBOX." />
<input type="hidden" name="port" value="143" />
<input type="hidden" name="server" value="localhost" />
<input type="hidden" name="actionID" value="105" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="mailbox" value="INBOX" />
<!-- http://82.195.128.192/horde/imp/redirect.php -->
Email<br>
<input type="text" tabindex="1" name="imapuser" value="">
<br>
</br>Password<br>
<input type="password" tabindex="2" name="pass">
<input type="submit" class="button" name="button" tabindex="4" value="Log in" onclick="return submit_login();">
<input type="hidden" name="folders" value="" />
</form>
</li>
</ul>
</div>
<div id="innerRight">
<p style="text-align: center"><br />
<a target="_blank" href="http://www.adobe.com/products/acrobat/readstep2.html">
<img alt="Adober Reader" src="../images/get_adobe_reader.gif" width="112" height="33" style="border-width: 0px" /></a></p>
<p style="text-align: center">Secure Payments with<br />
<a target="_blank" href="http://www.paypal.ie">
<img alt="PayPal" src="../images/paypalBtn.gif" width="115" height="45" style="border-width: 0px" /></a></p>
<h1 class="itemTitle">Information</h1>
<p>The invoice information page is designs by Neweb Ireland to offer
clients better access to current outstanding invoices. </p>
<p>This section is currently on trials but might become a regular
feature in the near future. </p>
</div>
<div id="innerContent">
<p>Documents linked to on this page are created in PDF format. To read
these documents will require you to have the free Adobe Reader installed
on your system.</p>
<p>If you do not have the free Adobe Reader you can download it here</p>
<p>
<asp:GridView runat="server" id="GridView1" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" ShowHeader="False" GridLines="None" CellPadding="3" DataKeyNames="record_id">
<Columns>
<asp:boundfield DataField="client_id" SortExpression="client_id" HeaderText="client_id">
<ItemStyle BackColor="#E0E0E0" BorderStyle="Solid" Width="50px" Height="20px" ForeColor="#404040" BorderWidth="1px" BorderColor="Gray" HorizontalAlign="Center" Font-Size="90%" Font-Bold="True" VerticalAlign="Middle" />
</asp:boundfield>
<asp:boundfield DataField="client" SortExpression="client" HeaderText="client">
<ItemStyle BorderStyle="Solid" Width="400px" Height="20px" BorderWidth="1px" BorderColor="Gray" HorizontalAlign="Left" VerticalAlign="Middle" />
</asp:boundfield>
</Columns>
</asp:GridView>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:newebir_genDBConnectionString1 %>" SelectCommand="SELECT * FROM [payments] WHERE ([client_id] = @client_id)">
<SelectParameters>
<asp:querystringparameter Type="String" Name="client_id" QueryStringField="client_id" />
</SelectParameters>
</asp:SqlDataSource>
</p>
<p>
<asp:GridView runat="server" id="GridView2" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="record_id" GridLines="None" CellPadding="5">
<Columns>
<asp:boundfield DataField="invoice_no" SortExpression="invoice_no" HeaderText="Invoice">
<ItemStyle Width="30px" />
</asp:boundfield>
<asp:boundfield DataField="date" SortExpression="date" HeaderText="Date">
</asp:boundfield>
<asp:boundfield DataField="amount" SortExpression="amount" HeaderText="Amount">
<ItemStyle Width="60px" HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:boundfield>
<asp:hyperlinkfield HeaderText="PayPal" Text="Pay Now" DataNavigateUrlFields="paypal_link">
</asp:hyperlinkfield>
<asp:hyperlinkfield Target="_blank" Text="View Invoice" DataNavigateUrlFields="invoice_copy">
<ItemStyle Width="80px" HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:hyperlinkfield>
</Columns>
</asp:GridView>
</p>
<h1>Please Note: <br />Domain names that exceed their renewal period
will be suspended without notice.</h1>
</div>
</asp:Content>
Hope this helps you figure it out.
_____________________________
Alan http://www.newebirl.net
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Filter data to an ASPX page - 6/2/2007 20:38:18
It seems to be a problem with nested forms. I re-created a sample of your site using the code you supplied and experienced the same behavior as you described; in IE, it would not submit. I then removed the control panel form and the login form and it then worked fine (at least in IE7. I don't have opera). I did a test with a plain html page (no aspx) with nested forms and IE reacted the same way; it would not submit. So, I'm not sure what a solution would be, but at least you have some idea now what the problem is. Here is a discussion that seems somewhat related to the problem: http://www.velocityreviews.com/forums/t92646-nested-forms-in-aspnet.html
|
|
|
|
Avick
Posts: 181 From: Ireland Status: offline
|
RE: Filter data to an ASPX page - 6/3/2007 6:18:52
You got it! I have removed the forms on the left of the site and it works in all browsers. You must have put a lot of effort into this. Thanks again for all your help.
_____________________________
Alan http://www.newebirl.net
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|