small question

  • Thread starter Thread starter deepak
  • Start date Start date
D

deepak

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
(e-mail address removed)
 
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 <ItemID> and before </ItemID>

George
 
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 <ItemID> and before </ItemID>

George
 
ok i got it in this way

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

which gives me

as what i wanted.

Thanks a lot George.My hotmail is (e-mail address removed) and skype:
(e-mail address removed) 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
 
Back
Top