473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Moving Data

I am creating an ASP.NET form that users will fill data in text boxes and then I need it to out put in a seperate .aspx form labels.Text(Open new page). I have the form created and put the output labels on the same page to test and it works but I can not figur out how to collect the data from the input form and have it out put on a seperate page. If some one could show me an example just using one or two text boxes collect the input and then output to a seperate page using labels for output. In my attempt I received the error: BC30469 Reference to a non-shard member requires an object reference.

Thank You Very much, Mike

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
2 1185
Have you tried using Server.Transfer? One of the overloads of Server.Transfer
allows you to specify that the QueryString and Forum collections should be
preserved to the new page.

So on your submit button click event, you would have:

Server.Transfer("new_page.aspx", true);

The page "new_page.aspx" can now reference the Form collection from the
previous page - which will contain all of the text box values. Note that the
Server.Transfer does not round trip to the client so the url in the browser
will not change from original page. Hope this helps.

James Churchill

"Michael Mitchell via DotNetMonster.com" wrote:
I am creating an ASP.NET form that users will fill data in text boxes and then I need it to out put in a seperate .aspx form labels.Text(Open new page). I have the form created and put the output labels on the same page to test and it works but I can not figur out how to collect the data from the input form and have it out put on a seperate page. If some one could show me an example just using one or two text boxes collect the input and then output to a seperate page using labels for output. In my attempt I received the error: BC30469 Reference to a non-shard member requires an object reference.

Thank You Very much, Mike

--
Message posted via http://www.dotnetmonster.com

Nov 19 '05 #2
James, thanks for the input, i have tried server.transfer. Here is some example code, I think I didn't specify exactly what needed to be accomplished. Thanks for the quick response. If you have further input please let me know.
Thanks, mike

* I need to collect the input data on exampl1.aspx by hitting the review button.
* Out put the data in the corresponding Labels on Example2.aspx.
* Save Example2.aspx to a File of the users choice when the save button is clicked
* I USE WebMatrix

Example1.aspx:
<%@ Page Language="VB" %>
<script runat="server">

'I have tried all kinds of things:
'Server.Transfer("Example2.aspx", True)

</script>
<html>
<head>
</head>
<body>
<form runat="server" ID="frmForm1">
<p>
&nbsp;
</p>
<p>
<asp:Label id="lblFirstName" runat="server">First Name</asp:Label>
<asp:TextBox id="txtFirstName" runat="server"></asp:TextBox>
</p>
<p>
<asp:Label id="lblLastName" runat="server">Last Name</asp:Label>
<asp:TextBox id="txtLastName" runat="server"></asp:TextBox>
</p>
<p align="left">
<asp:Button id="btnReview" runat="server" Text="Review"></asp:Button>
</p>
<!-- Insert content here -->
</form>
</body>
</html>

Example2.aspx:
<%@ Page Language="VB" %>
<script runat="server">

</script>
<html>
<head>
</head>
<body>
<form runat="server" ID="frmForm2">
<p>
&nbsp;
</p>
<p>
First&nbsp;Name is:
<asp:Label id="lblFirstName" runat="server"></asp:Label>
</p>
<p>
Last Name is:<asp:Label id="lblLastName" runat="server"></asp:Label>
</p>
<p>
<asp:Button id="btnSave" runat="server" Text="Save"></asp:Button>
</p>
<!-- Insert content here -->
</form>
</body>
</html>

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: HeroOfSpielburg | last post by:
hi, I know this is a much-travelled subject, but I was wondering what people's thoughts were on the bare minimum (and conversely the grand scheme) for augmenting standard memory references to...
6
by: Stephen Miller | last post by:
Firstly, sorry for the long post, but I've included a fair bit of sample data. Im doing a comparision of 10yr Bond prices and CPI adjustments, with an 18 week moving average of the CPI. I'm...
6
by: Woody Splawn | last post by:
I have been using SQL Server 2000 on my stand-alone machine as a back-end to a VS.net application. It is time to switch environments and take the application to the customer. I need to install...
11
by: ulyses | last post by:
Let's assume I have following file: 2938929384902491233..... 923949919199191919112.... File contains INTs only. What is more they are huge. For example first row in file may contain integer...
2
by: fuzzybr80 | last post by:
I am using MySQL 5.0 with a number of innodb tables whose ibdata files are growing quite quickly and filling up the /var partition (file is /var/mysql/ibdata1). Earlier on I followed instructions...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
In a database search application (vb2005), the user wants to be able to scroll through records using the mousewheel. The data display form contains textboxes for the main data and a datagridview...
0
by: Nishanthmarathe | last post by:
Hi There!!! I am new to C# world. I am getting huge chunk of data from a 3rd party applications thru SOAP request and updating to my SQL Server. I cant implement Progress bar as there is no way...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.