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

Alternative component for Commerce server's page object

Hi,

I am seeking an alternative component for MS Commerce Servers page object.
Mostly used for creating and retrieving URLs

Exemple,
Dim strVar
strVar = mscspage.requeststring("strVar", null)
Dim intVar
intVar = mscspage.requestnumber("intVar", 0)

and

<a href="<%="default.asp?" & mscspage.URLargs("strVar", strVar, "intVar",
intVar)%>">example</a>

Does anyone know if any similar components that can do something like above.

Thanks in advance
Christian
Jun 12 '06 #1
2 2286
I loved the MSCSPage object... it never came out anywhere else despite it's
awesome capabilities. The Page.URL method was good also and I have
developed my own version of it. Those of you that have never come across
this ASP component from Microsoft have missed out.

Function PageOption(vValue, vSelected, vText)
Dim strTemp
strTemp = "<option value=""" & vValue & """"
If vValue = vSelected Then
strTemp = strTemp & " selected"
End If
PageOption = strTemp & ">" & Server.HTMLEncode(vText) & "</option>"
End Function

Function PageCheck(vTest)
If vTest Then
PageCheck = " checked"
Else
PageCheck = vbNullString
End If
End Function

Function PageURL(pageName, arrURLArgs)
Dim i, stURL
stURL = Application("HostURL") & Application("VDir") & pageName
If IsArray(arrURLArgs) Then
For i = 0 To UBound(arrURLArgs, 1)
If i Mod 2 = 0 Then
If i = 0 Then
stURL = stURL & "?" & arrURLArgs(i)
Else
stURL = stURL & "&" & arrURLArgs(i)
End If
Else
stURL = stURL & "=" & Server.URLEncode(arrURLArgs(i))
End If
Next
End If
PageURL = stURL
End Function

Function PageMoney(ByVal vMonetaryAmount)
If Not IsNumeric(vMonetaryAmount) Then
vMonetaryAmount = 0
End If
vMonetaryAmount = CCur(vMonetaryAmount)
vMonetaryAmount = vMonetaryAmount / 100
PageMoney = FormatCurrency(vMonetaryAmount, 2, True, False, True)
End Function

"Christian Perthen" <ab**********@dontreplytothisaddress.com> wrote in
message news:O1**************@TK2MSFTNGP03.phx.gbl...
Hi,

I am seeking an alternative component for MS Commerce Servers page object.
Mostly used for creating and retrieving URLs

Exemple,
Dim strVar
strVar = mscspage.requeststring("strVar", null)
Dim intVar
intVar = mscspage.requestnumber("intVar", 0)

and

<a href="<%="default.asp?" & mscspage.URLargs("strVar", strVar, "intVar",
intVar)%>">example</a>

Does anyone know if any similar components that can do something like above.
Thanks in advance
Christian

Jun 13 '06 #2
David,

A big thanks!

Christian
"David Morgan" <mi******************@nospam-davidmorgan.me.ukwrote in
message news:O$**************@TK2MSFTNGP04.phx.gbl...
I loved the MSCSPage object... it never came out anywhere else despite
it's
awesome capabilities. The Page.URL method was good also and I have
developed my own version of it. Those of you that have never come across
this ASP component from Microsoft have missed out.

Function PageOption(vValue, vSelected, vText)
Dim strTemp
strTemp = "<option value=""" & vValue & """"
If vValue = vSelected Then
strTemp = strTemp & " selected"
End If
PageOption = strTemp & ">" & Server.HTMLEncode(vText) & "</option>"
End Function

Function PageCheck(vTest)
If vTest Then
PageCheck = " checked"
Else
PageCheck = vbNullString
End If
End Function

Function PageURL(pageName, arrURLArgs)
Dim i, stURL
stURL = Application("HostURL") & Application("VDir") & pageName
If IsArray(arrURLArgs) Then
For i = 0 To UBound(arrURLArgs, 1)
If i Mod 2 = 0 Then
If i = 0 Then
stURL = stURL & "?" & arrURLArgs(i)
Else
stURL = stURL & "&" & arrURLArgs(i)
End If
Else
stURL = stURL & "=" & Server.URLEncode(arrURLArgs(i))
End If
Next
End If
PageURL = stURL
End Function

Function PageMoney(ByVal vMonetaryAmount)
If Not IsNumeric(vMonetaryAmount) Then
vMonetaryAmount = 0
End If
vMonetaryAmount = CCur(vMonetaryAmount)
vMonetaryAmount = vMonetaryAmount / 100
PageMoney = FormatCurrency(vMonetaryAmount, 2, True, False, True)
End Function

"Christian Perthen" <ab**********@dontreplytothisaddress.comwrote in
message news:O1**************@TK2MSFTNGP03.phx.gbl...
Hi,

I am seeking an alternative component for MS Commerce Servers page
object.
Mostly used for creating and retrieving URLs

Exemple,
Dim strVar
strVar = mscspage.requeststring("strVar", null)
Dim intVar
intVar = mscspage.requestnumber("intVar", 0)

and

<a href="<%="default.asp?" & mscspage.URLargs("strVar", strVar,
"intVar",
intVar)%>">example</a>

Does anyone know if any similar components that can do something like
above.

Thanks in advance
Christian


Jul 11 '06 #3

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

Similar topics

0
by: David Morgan | last post by:
Hello All Back in the day, when I was up to my elbows in Site Server 3 Commerce Edition, there was a SMTP Component that supported transactions. If the mail could not be delivered the...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
3
by: C | last post by:
Re: Microsoft Knowledge Base Article - 870669 How to disable the ADODB.Stream object from Internet Explorer You may recently have heard of the vulnarability exposed by Internet Explorer as...
0
by: acharyaks | last post by:
Hi life saver, I am using excel component for the development. The purpose is to connect to excel through the odbc connection string. Then through the connection extract data into a dataset and...
0
by: Geoff | last post by:
Does anyone have a "fleshed out" example of Pipeline Component in C#. The example in MSDN doesn't really show much. I am interested in the parameters coming in and the return values. They are...
1
by: Jim H | last post by:
I coded my first asp form and attempted to display a text message from a component. The static text "Our component says:" shows on the aspx page, but the text line from the component does not show....
0
by: Microsoft | last post by:
Hi All. We currently use the Microsoft Commerce Server pipeline component to run the workflow for our application, however this is very limited when it comes to ASP.NET and has no programmable...
4
by: =?Utf-8?B?RGFtaWFuIEMuIFN0YWxscw==?= | last post by:
I have never worked on Commerce server and I am not a web guru either. My client had someone modify their home page of their commerce site. Howerver when then did they removed the include for...
1
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component...
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...
0
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...
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
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
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.