Hello,
I'm working with a classic asp page that calls another classic asp
page. The html in my calling page looks like:
<form method="post"
action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 ">
....Do some stuff
<input type="submit" name="btnSubmit" value="MyType">
<input type="hidden" name="PageName" value="/includes/mypage1.asp">
<input type="hidden" name="UrlParms"
value="ID1=97702&ID2=2235"></td>
</form>
Now debugging in Interdev inside the mypage2.asp
I see:
Request.Form("UrlParms") = "ID1=97702&ID2=2235"
Is there any way to easily separate out the ID2? If it was in the
Querystring I could simply do a:
Request.QueryString("ID2")
Thanks,
Eric 7 1897
what you mean you want to seperate them? if you want them seprate, then
combined try this............
ID1 = Request.QueryString("ID1")
ID2 = Request.QueryString("ID2")
UrlParms = ID1 & "&" & ID2
that separates them so you can use each indvidually, then recombine them
after defning.............im not 100% sure what ur asking, so hope this
helps.
Jay
<er**********@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com... Hello,
I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like:
<form method="post" action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 ">
...Do some stuff
<input type="submit" name="btnSubmit" value="MyType"> <input type="hidden" name="PageName" value="/includes/mypage1.asp"> <input type="hidden" name="UrlParms" value="ID1=97702&ID2=2235"></td>
</form>
Now debugging in Interdev inside the mypage2.asp
I see:
Request.Form("UrlParms") = "ID1=97702&ID2=2235"
Is there any way to easily separate out the ID2? If it was in the Querystring I could simply do a:
Request.QueryString("ID2")
Thanks, Eric
James,
In mypage2.asp I'd like to get the value of ID2, but ID2 isn't in my
query string. It's a hidden control on mypage1.asp that's storing a
concatenated string "ID1=97702&ID2=2235"
In mypage2.asp, I see: Request.Form("UrlParms") = "ID1=97702&ID2=2235"
I can use string manipulation functions to split them, like a Mid() or
Split() (I'd need to double check what I can do in classic asp), but I
wondered if there was a built-in way to do this.
For instance, if "ID1=97702&ID2=2235" was in my query string I could do
Request.QueryString("ID2").
Thanks,
Eric
James Jones wrote: what you mean you want to seperate them? if you want them seprate, then combined try this............
ID1 = Request.QueryString("ID1") ID2 = Request.QueryString("ID2") UrlParms = ID1 & "&" & ID2
that separates them so you can use each indvidually, then recombine them after defning.............im not 100% sure what ur asking, so hope this helps. Jay <er**********@gmail.com> wrote in message news:11*********************@g10g2000cwb.googlegro ups.com... Hello,
I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like:
<form method="post" action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 ">
...Do some stuff
<input type="submit" name="btnSubmit" value="MyType"> <input type="hidden" name="PageName" value="/includes/mypage1.asp"> <input type="hidden" name="UrlParms" value="ID1=97702&ID2=2235"></td>
</form>
Now debugging in Interdev inside the mypage2.asp
I see:
Request.Form("UrlParms") = "ID1=97702&ID2=2235"
Is there any way to easily separate out the ID2? If it was in the Querystring I could simply do a:
Request.QueryString("ID2")
Thanks, Eric er**********@gmail.com wrote: Hello,
I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like:
<form method="post" action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 ">
...Do some stuff
<input type="submit" name="btnSubmit" value="MyType"> <input type="hidden" name="PageName" value="/includes/mypage1.asp"> <input type="hidden" name="UrlParms" value="ID1=97702&ID2=2235"></td>
If you think you are providing some sort of security by doing this, then
think again. </form>
Now debugging in Interdev inside the mypage2.asp
I see:
Request.Form("UrlParms") = "ID1=97702&ID2=2235"
Is there any way to easily separate out the ID2? If it was in the Querystring I could simply do a:
Request.QueryString("ID2")
dim ar,arid2,id2
ar=split(Request.Form("UrlParms"),"&")
arid2=Split(ar(1),"=")
id2=arid2(1)
You'll need to supply some error-handling as well as some checks that
the arrays that result from the split method contain the expected number
of elements.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
you cant split the string in mypage1.asp?
<er**********@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com... James,
In mypage2.asp I'd like to get the value of ID2, but ID2 isn't in my query string. It's a hidden control on mypage1.asp that's storing a concatenated string "ID1=97702&ID2=2235"
In mypage2.asp, I see: Request.Form("UrlParms") = "ID1=97702&ID2=2235"
I can use string manipulation functions to split them, like a Mid() or Split() (I'd need to double check what I can do in classic asp), but I wondered if there was a built-in way to do this.
For instance, if "ID1=97702&ID2=2235" was in my query string I could do Request.QueryString("ID2").
Thanks, Eric
James Jones wrote: what you mean you want to seperate them? if you want them seprate, then combined try this............
ID1 = Request.QueryString("ID1") ID2 = Request.QueryString("ID2") UrlParms = ID1 & "&" & ID2
that separates them so you can use each indvidually, then recombine them after defning.............im not 100% sure what ur asking, so hope this helps. Jay <er**********@gmail.com> wrote in message news:11*********************@g10g2000cwb.googlegro ups.com... > Hello, > > I'm working with a classic asp page that calls another classic asp > page. The html in my calling page looks like: > > > <form method="post" > action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 "> > > ...Do some stuff > > <input type="submit" name="btnSubmit" value="MyType"> > <input type="hidden" name="PageName" value="/includes/mypage1.asp"> > <input type="hidden" name="UrlParms" > value="ID1=97702&ID2=2235"></td> > > </form> > > Now debugging in Interdev inside the mypage2.asp > > I see: > > Request.Form("UrlParms") = "ID1=97702&ID2=2235" > > Is there any way to easily separate out the ID2? If it was in the > Querystring I could simply do a: > > Request.QueryString("ID2") > > Thanks, > Eric >
lol listen to bob..........hes a pro, not me, lol
"James Jones" <ja**************@insightbb.com> wrote in message
news:OP**************@TK2MSFTNGP03.phx.gbl... you cant split the string in mypage1.asp?
<er**********@gmail.com> wrote in message news:11**********************@u72g2000cwu.googlegr oups.com... James,
In mypage2.asp I'd like to get the value of ID2, but ID2 isn't in my query string. It's a hidden control on mypage1.asp that's storing a concatenated string "ID1=97702&ID2=2235"
In mypage2.asp, I see: Request.Form("UrlParms") = "ID1=97702&ID2=2235"
I can use string manipulation functions to split them, like a Mid() or Split() (I'd need to double check what I can do in classic asp), but I wondered if there was a built-in way to do this.
For instance, if "ID1=97702&ID2=2235" was in my query string I could do Request.QueryString("ID2").
Thanks, Eric
James Jones wrote: what you mean you want to seperate them? if you want them seprate, then combined try this............
ID1 = Request.QueryString("ID1") ID2 = Request.QueryString("ID2") UrlParms = ID1 & "&" & ID2
that separates them so you can use each indvidually, then recombine them after defning.............im not 100% sure what ur asking, so hope this helps. Jay <er**********@gmail.com> wrote in message news:11*********************@g10g2000cwb.googlegro ups.com... > Hello, > > I'm working with a classic asp page that calls another classic asp > page. The html in my calling page looks like: > > > <form method="post" > action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 "> > > ...Do some stuff > > <input type="submit" name="btnSubmit" value="MyType"> > <input type="hidden" name="PageName" value="/includes/mypage1.asp"> > <input type="hidden" name="UrlParms" > value="ID1=97702&ID2=2235"></td> > > </form> > > Now debugging in Interdev inside the mypage2.asp > > I see: > > Request.Form("UrlParms") = "ID1=97702&ID2=2235" > > Is there any way to easily separate out the ID2? If it was in the > Querystring I could simply do a: > > Request.QueryString("ID2") > > Thanks, > Eric >
Hello,
I guess that I'll have to do a split then. I'm working in a pretty big
classic asp application. For some new functionality, I need to get the
value of ID2 in mypage2.asp. The code concatenating ID1 and ID2 in the
URLparams hidden variable in mypage1.asp was already there. I'd rather
not change it, since I don't want to risk breaking something else.
-Eric
Bob Barrows [MVP] wrote: er**********@gmail.com wrote: Hello,
I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like:
<form method="post" action="/includes/mypage2.asp?subtype=MyType&ecd=1&eid=97702 ">
...Do some stuff
<input type="submit" name="btnSubmit" value="MyType"> <input type="hidden" name="PageName" value="/includes/mypage1.asp"> <input type="hidden" name="UrlParms" value="ID1=97702&ID2=2235"></td>
If you think you are providing some sort of security by doing this, then think again.
</form>
Now debugging in Interdev inside the mypage2.asp
I see:
Request.Form("UrlParms") = "ID1=97702&ID2=2235"
Is there any way to easily separate out the ID2? If it was in the Querystring I could simply do a:
Request.QueryString("ID2")
dim ar,arid2,id2 ar=split(Request.Form("UrlParms"),"&") arid2=Split(ar(1),"=") id2=arid2(1)
You'll need to supply some error-handling as well as some checks that the arrays that result from the split method contain the expected number of elements.
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
wrote on 22 jun 2006 in microsoft.public.inetserver.asp.general: James Jones wrote: what you mean you want to seperate them? if you want them seprate, then combined try this............
ID1 = Request.QueryString("ID1") ID2 = Request.QueryString("ID2") UrlParms = ID1 & "&" & ID2
that separates them so you can use each indvidually, then recombine them after defning.............im not 100% sure what ur asking, so hope this helps.
[please do not toppost on usenet]
In mypage2.asp I'd like to get the value of ID2, but ID2 isn't in my query string. It's a hidden control on mypage1.asp that's storing a concatenated string "ID1=97702&ID2=2235"
In mypage2.asp, I see: Request.Form("UrlParms") = "ID1=97702&ID2=2235"
I can use string manipulation functions to split them, like a Mid() or Split() (I'd need to double check what I can do in classic asp), but I wondered if there was a built-in way to do this.
For instance, if "ID1=97702&ID2=2235" was in my query string I could do Request.QueryString("ID2").
try:
result = myRequestform("UrlParms","ID2")
function myRequestform(a,b)
temp = "&" & Request.Form(a) & "&"
n = instr(temp,"&"&b&"=")
if n=0 then myRequestform ="":exit function
n = n + len("&"&b&"=")
temp = mid(temp,n)
n = instr(temp,"&")-1
myRequestform = left(temp,n)
end function
partly tested
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Karmens |
last post by:
If I have say 10 fixed variables, how can I set their values = to that
of a form that is built dynamically?
column1 column2
email = formvalue(0)
fname = formvalue(1)
lname = formvalue(2)...
|
by: M Wells |
last post by:
Hi All,
I have what seems to me to be a difficult query request for a database
I've inherited.
I have a table that has a varchar(2000) column that is used to store
system and user messages...
|
by: B Love |
last post by:
Hello Group,
I have 2 text fields that I would like to concatenate for use in a table.
One field is an ordinary text box. The other is a simple combo box which I
use to select one of about ten...
|
by: mca |
last post by:
Hi everyone,
I'm new to asp.net and i have a question about separating the html
code from the programming code.
i have an unknown numbers of entries in my table. I want to make a
hyperlink...
|
by: Janaka |
last post by:
Help! I have two ListBox controls on my web form. The first one gets
populated on entry with values from the DB. I then use JavaScript to copy
options from this ListBox to my second one. (I...
|
by: cyberdawg999 |
last post by:
Greetings all in ASP land
I have overcome one obstacle that took me 2 weeks to overcome and I
did it!!!!!
I am so elated!! thank you to all who invested their time and energy towards helping me...
|
by: David |
last post by:
Hi,
I have an asp page which lists records.
Each record has an ID appended to it.
On the following edit page, I am trying to test against a certain
field value, if it is >0 then run the update,...
|
by: jmartmem |
last post by:
Greetings,
I have built an Update Record Form in an ASP page. This form contains a number of fields, such as text boxes and menus, to name a few.
Upon clicking the 'submit' button, I want the...
|
by: sindhudixit |
last post by:
Hey,
I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen:
1. The...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
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...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
| |