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

small question

Hi
i want to write the follwoing in vb.net in asp.net.How to write it?

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID="80" />
</DictionaryTypes>
</SXPDictionaryItemsGet>

Cuurently i m using the following code

Function GetDictionaryValues()

Dim strmread As StreamReader
Dim str_response As String
Dim sxp_getdictionaryvalues As String

Dim objInProc As Object
Dim dictionayID As String = "80"

sxp_getdictionaryvalues = "<SXPDictionaryItemsGet Revision=""7.5.0"""
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"<DictionaryTypes>"
sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID>" &
dictionayID & "</Item ID"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</DictionaryTypes"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</SXPDictionaryItemsGet"

but its giving me 50 and not "50" i.e.

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID=50 />
</DictionaryTypes>
</SXPDictionaryItemsGet>

in sxp_getdictionaryvalues variable

which is wrong.Kindly help me

Thanks,
Deepak
kr**********@hotmail.com

Jan 11 '08 #1
3 1150
1. You have 80 everywere (Dim dictionayID As String = "80"). How do you
expect to get 50?

2. do sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID""" &
dictionayID & """</Item ID"
notice 2 double qoutes after <ItemIDand before </ItemID>

George

"deepak" <de****@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
Hi
i want to write the follwoing in vb.net in asp.net.How to write it?

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID="80" />
</DictionaryTypes>
</SXPDictionaryItemsGet>

Cuurently i m using the following code

Function GetDictionaryValues()

Dim strmread As StreamReader
Dim str_response As String
Dim sxp_getdictionaryvalues As String

Dim objInProc As Object
Dim dictionayID As String = "80"

sxp_getdictionaryvalues = "<SXPDictionaryItemsGet Revision=""7.5.0"""
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"<DictionaryTypes>"
sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID>" &
dictionayID & "</Item ID"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</DictionaryTypes"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</SXPDictionaryItemsGet"

but its giving me 50 and not "50" i.e.

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID=50 />
</DictionaryTypes>
</SXPDictionaryItemsGet>

in sxp_getdictionaryvalues variable

which is wrong.Kindly help me

Thanks,
Deepak
kr**********@hotmail.com

Jan 11 '08 #2
1. You have 80 everywere (Dim dictionayID As String = "80"). How do you
expect to get 50?

2. do sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID""" &
dictionayID & """</Item ID"
notice 2 double qoutes after <ItemIDand before </ItemID>

George

"deepak" <de****@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
Hi
i want to write the follwoing in vb.net in asp.net.How to write it?

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID="80" />
</DictionaryTypes>
</SXPDictionaryItemsGet>

Cuurently i m using the following code

Function GetDictionaryValues()

Dim strmread As StreamReader
Dim str_response As String
Dim sxp_getdictionaryvalues As String

Dim objInProc As Object
Dim dictionayID As String = "80"

sxp_getdictionaryvalues = "<SXPDictionaryItemsGet Revision=""7.5.0"""
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"<DictionaryTypes>"
sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID>" &
dictionayID & "</Item ID"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</DictionaryTypes"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</SXPDictionaryItemsGet"

but its giving me 50 and not "50" i.e.

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID=50 />
</DictionaryTypes>
</SXPDictionaryItemsGet>

in sxp_getdictionaryvalues variable

which is wrong.Kindly help me

Thanks,
Deepak
kr**********@hotmail.com

Jan 11 '08 #3
ok i got it in this way

sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID= """ &
dictionayID & """></Item ID"

which gives me
<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID="80" />
</DictionaryTypes>
</SXPDictionaryItemsGet>
as what i wanted.

Thanks a lot George.My hotmail is kr**********@hotmail.com and skype:
kr**********@SKYPE.COM and i want to be my frind and to add me also for
future technical questions-discussions and help .Kindly tell me your hotmail
id...

Thanks,
Deepak
+919886735837
"George Ter-Saakov" wrote:
1. You have 80 everywere (Dim dictionayID As String = "80"). How do you
expect to get 50?

2. do sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID""" &
dictionayID & """</Item ID"
notice 2 double qoutes after <ItemIDand before </ItemID>

George

"deepak" <de****@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
Hi
i want to write the follwoing in vb.net in asp.net.How to write it?

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID="80" />
</DictionaryTypes>
</SXPDictionaryItemsGet>

Cuurently i m using the following code

Function GetDictionaryValues()

Dim strmread As StreamReader
Dim str_response As String
Dim sxp_getdictionaryvalues As String

Dim objInProc As Object
Dim dictionayID As String = "80"

sxp_getdictionaryvalues = "<SXPDictionaryItemsGet Revision=""7.5.0"""
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"<DictionaryTypes>"
sxp_getdictionaryvalues = sxp_getdictionaryvalues & " <Item ID>" &
dictionayID & "</Item ID"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</DictionaryTypes"
sxp_getdictionaryvalues = sxp_getdictionaryvalues &
"</SXPDictionaryItemsGet"

but its giving me 50 and not "50" i.e.

<SXPDictionaryItemsGet Revision="7.5.0">
<DictionaryTypes>
<Item ID=50 />
</DictionaryTypes>
</SXPDictionaryItemsGet>

in sxp_getdictionaryvalues variable

which is wrong.Kindly help me

Thanks,
Deepak
kr**********@hotmail.com


Jan 14 '08 #4

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

Similar topics

4
by: =?Utf-8?B?VzFsZDBuZTc0?= | last post by:
When one architects a new project one of the first steps in the decision is to decide on the layers. (In my opinion anyway) One architecture that I have used before is to go solid OO and create...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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: 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...

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.