473,395 Members | 1,972 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,395 software developers and data experts.

Passing email in string from one page to another.

Hi,

I have a page that pulls data from a database, one of the fields is Notetext
which frequently contains an email. I then want to pass this onto another
page, that updates the email field in another database, so in page 1:

strNote = rsnotes("NOTETEXT")

And to pass to the next page:

<a
href="createemail.asp?strIssueNo=<%=zero(rsnotes.f ields(0))%>&strNote=<%=str
Note%>"><img src="Images/createemail.gif" width="75" height="25"></a>

It all works fine except that only about half the email gets copied into the
other database. It's not an issue with the database as it can take that
length of characters.

So my question, Is there a limit to the number of charachters you can pass
from one page to another in a string? and if so is there any way of
increasing this or getting around it?

Thanks.

Jul 19 '05 #1
2 2726
a) If you want to pass data in the querystring you need to use
Server.URLEncode() on the data, ie:

<a href="newpage.asp?var=<%=Server.URLEncode(strVar)% >">click</a>

because some of the characters are not legal in querystrings, and need to
encoded

b) Why don't you just pass the Primary Key value of the record in question,
and then use that to do a lookup on the record on the next page?

<a href="newpage.asp?recordID=5">click here</a>

Cheers
Ken

"Miguel Orrego" <mi****@stressedmonkey.net-nospam> wrote in message
news:3f*********************@news.dial.pipex.com.. .
: Hi,
:
: I have a page that pulls data from a database, one of the fields is
Notetext
: which frequently contains an email. I then want to pass this onto another
: page, that updates the email field in another database, so in page 1:
:
: strNote = rsnotes("NOTETEXT")
:
: And to pass to the next page:
:
: <a
:
href="createemail.asp?strIssueNo=<%=zero(rsnotes.f ields(0))%>&strNote=<%=str
: Note%>"><img src="Images/createemail.gif" width="75" height="25"></a>
:
: It all works fine except that only about half the email gets copied into
the
: other database. It's not an issue with the database as it can take that
: length of characters.
:
: So my question, Is there a limit to the number of charachters you can pass
: from one page to another in a string? and if so is there any way of
: increasing this or getting around it?
:
: Thanks.
:
:
:
:
:
Jul 19 '05 #2
Hi Ken,

Thanks for the answer, that solved it.

Cheers.

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:#m**************@tk2msftngp13.phx.gbl...
a) If you want to pass data in the querystring you need to use
Server.URLEncode() on the data, ie:

<a href="newpage.asp?var=<%=Server.URLEncode(strVar)% >">click</a>

because some of the characters are not legal in querystrings, and need to
encoded

b) Why don't you just pass the Primary Key value of the record in question, and then use that to do a lookup on the record on the next page?

<a href="newpage.asp?recordID=5">click here</a>

Cheers
Ken

"Miguel Orrego" <mi****@stressedmonkey.net-nospam> wrote in message
news:3f*********************@news.dial.pipex.com.. .
: Hi,
:
: I have a page that pulls data from a database, one of the fields is
Notetext
: which frequently contains an email. I then want to pass this onto another : page, that updates the email field in another database, so in page 1:
:
: strNote = rsnotes("NOTETEXT")
:
: And to pass to the next page:
:
: <a
:
href="createemail.asp?strIssueNo=<%=zero(rsnotes.f ields(0))%>&strNote=<%=str : Note%>"><img src="Images/createemail.gif" width="75" height="25"></a>
:
: It all works fine except that only about half the email gets copied into
the
: other database. It's not an issue with the database as it can take that
: length of characters.
:
: So my question, Is there a limit to the number of charachters you can pass : from one page to another in a string? and if so is there any way of
: increasing this or getting around it?
:
: Thanks.
:
:
:
:
:

Jul 19 '05 #3

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

Similar topics

4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
12
by: Patrick | last post by:
I have two ASP pages payment.asp: For customers to fill in payment/card details (pre-populating details if details submitted were invalid and user had to re-fill in details) confirmorder.asp:...
5
by: Andy | last post by:
Hi Could someone clarify for me the method parameter passing concept? As I understand it, if you pass a variable without the "ref" syntax then it gets passed as a copy. If you pass a...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
3
by: James Robertson | last post by:
I am new to the ASP and VB thing so be kind. Question I have is that I have created an ASPX web site to use as an E-Mail page. But I want to use this for a lot of users. Can I create the link on...
7
by: Kun | last post by:
I have a python-cgi form whose sole purpose is to email. It has the fields 'to', 'from', 'subject', 'body', etc. and if the user fills them out and clicks submit, it will invoke another file...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.