|
|
Hi all
I have the following situation a XML text is send over a
URL too a webservice. The XML is URLencoded on the other side.
But when I read that into a xmlDom object it wont work, because of the & ; characters, i want to 'decode' this,
Please help me for that
<br />
<br />
dim strtext: strtext = "< streetname > Baron van Hövelllaan < / streetname > " <br />
response.write ParseXML(strtext)<br />
<br />
function ParseXML(strXML)<br />
dim oXMLDom, i <br />
Set oXMLDom = Server.CreateObject("MSXML2.DOMDocument") <br />
call oXMLDom.loadXML (strXML)<br />
<br />
if trim(oXMLDom.xml) = "" then<br />
err.Raise 1004, "ParseXML", "XMLDOM content empty"<br />
end if <br />
ParseXML = true <br />
end function<br />
<br />
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
|
Thanks
but i m not getting proper out put
m working with ASP 3.0
i tried this one but the view sorce still display ö
function URLDecode(sText)<br />
sDecoded = sText<br />
Set oRegExpr = Server.CreateObject("VBScript.RegExp")<br />
oRegExpr.Pattern = "%[0-9,A-F]{2}"<br />
oRegExpr.Global = True<br />
Set oMatchCollection = oRegExpr.Execute(sText)<br />
For Each oMatch In oMatchCollection<br />
sDecoded = Replace(sDecoded,oMatch.value,Chr(CInt("&H" & Right(oMatch.Value,2))))<br />
Next<br />
URLDecode = sDecoded<br />
End function<br />
<br />
' XML string <br />
dim strtext: strtext = "<streetname>Baron van Hövelllaan</streetname><br />
<br />
response.write URLDecode(URLDecode(Server.HTMLEncode(Server.URLEncode(strtext))))<br />
<br />
function ParseXML(strXML)<br />
dim oXMLDom, i<br />
<br />
Set oXMLDom = Server.CreateObject("MSXML2.DOMDocument")<br />
<br />
call oXMLDom.loadXML (strXML)<br />
<br />
if trim(oXMLDom.xml) = "" then<br />
err.Raise 1004, "ParseXML", "XMLDOM content empty"<br />
end if <br />
<br />
ParseXML = true <br />
<br />
end function
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
You know I didn't even spot that you are using Ladies ASP
Mmm: dredging memory for antiquated code...
Try escape(strText)
I think that might do it.
|
|
|
|
|
Hi thanks
as i want to send that XML to ParseXML function
Response.Write ParseXML (strText)
Response.Write ParseXML(URLDecode(Server.URLEncode(URLDecode(Server.HTMLEncode(Server.URLEncode(strtext))))))
it gives error message as XMLDOM content empty
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Have you tried:
strText = ParseXML(escape(strText))
Response.Write(strText)
Sorry, it's been quite a while since I used asp classic so might not be exact but should be close enough for you to work it out on your own.
Perhaps someone else with more recent experience can step in here?
|
|
|
|
|
I installed Extension Developer's Extension to the firefox to create my own extension to it.I got a sample code for building an extension and i tried on it.It got installed but the button and the menubar that are to be displayed are not displayed. I folloewd the same instructions given in the following website:
http://www.webmonkey.com/webmonkey/06/25/index3a_page2.html?tw=programming
But I did not get the mistake what I did!!!Please help me...
|
|
|
|
|
Hi All,
I'm working for an organisation which has lot of eforms on his web site; those are integrated with different systems or databases.
Because we have got some problem when we need to make update and redeploy them (because of the quantity of the forms split within sub folder)
I'm looking for the best intermediate solution between using the same BIN for all of them or create 200 virtual directories on IIS
Any ideas are welcomed
Franck Merlin
|
|
|
|
|
Here's a situation:
* I have a SQL Server 2005 database,
* I have a table with a field of type XML,
* I, via Visual Studio 2005, created a TableAdapter to make my life easier,
* I go to save a web service WSDL into the database (my work is in web services and I need to keep copies of WSDL documents),
* I run the code,
* I get exception errors stating that the encoding cannot be changed.
Is there anyway I can fix this? At the moment, I'm turning the WSDL to a string and I'm replacing utf-8 with utf-16 to keep SQL Server 2005 happy.
My thanks in advance.
modified on Wednesday, April 30, 2008 2:25 AM
|
|
|
|
|
Hi All,
My web application is taking too much time to release the page after it loads completly.
Scenario:
I have 9 views in a single page and some views have link with controls in other views. There is no problem with the page load/refresh, afetr it loads the progress bar stays still for some time ie., it doesnt release the page to the user.
Maximum users in the system would be 2600, but as per my perception it doesnt really hurt the application, since it loads quick but takes time to release the page(Struck). Today only 102 users logged into the system at peek time.
Please someone suggest how to tackle this issue.
Im using framework 2.0, SQL Server 2005 and IIS 6 in Windows 2003.
Thanks,
Bala
|
|
|
|
|
|
Hi all
We are facing an issue with Web service calls to a linux server from Windows 2000 server .
A web service call succeeds if the web service client API is run from a Win XP PC .
The same API call is failing from a Windows 2000 server . What could possibly block a web service call in W2k server ? Is it firewall or something else ?
This problem is reported in a customer's PC . We tried to reproduce this issue locally by enabling firewall and stopping IIS etc . But we are unable to reproduce the problem . Any ideas please on what could block a web service call ?
redindian
|
|
|
|
|
basic rule of web service development is that they are meant to bypass any firewall as they use to get tranferred via port 80....
this is not the exact issue...my be some conflic is occuring on ur client's machine
Ashish Sehajpal
|
|
|
|
|
It's not a proxy connection issue by any chance?
|
|
|
|
|
hi all experts,
as i'm new to this, can someone plz advice me?
my project requirements:
1. images upload with adding texts/descriptions attached to it (save it in notepad/html??) using microformats (not too sure also as need details from lecturer)
2. search images via information in the notepad/html saved to the images
3. display searched results images
should i use C#, VB, C++ for this project? as i want to start on the right path... can someone plz refer to any guide?
i've found this:
http://www.codeproject.com/KB/aspnet/netimageupload.aspx
is this the right on to start on? so i can add on later...
please help thanks a million.. waiting on your reply!!
my email/MSN : narmon@gmail.com
plz help
|
|
|
|
|
I think there may be one or two forums you have not spammed with this. Perhaps you should try harder. OR you could try asking in just the right forum and waiting for an answer.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes.
upload images like that in article
save the title, description, address of image just saved inot a data base
provide the feature to search for any image based on searching from title of image or description matching to that
fetch all the result from database
show the results in a gridview.....with select button to show image...
cool !
Ashish Sehajpal
|
|
|
|
|
Hi
Please let me know that how to fill 3 D array in ASP from recordset.
& how to read each index of array in ASP.
Please provide me code if possible.
Thanks
|
|
|
|
|
I have a question. WHy are you using ASP ? I hope you tried google, but the reason there's not much help on it, is that no-one uses it for new projects, because it's nasty as hell.
Or do you mean ASP.NET and you're getting your terminology wrong AND asking in the wrong forum ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
GroCareer wrote: Please let me know that how to fill 3 D array in ASP from recordset.
Use the GetRows method.
GroCareer wrote: how to read each index of array in ASP.
I'm not clear on what you mean by that.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
Please help me in below logic.
I have made one table in asp.
Like:
SNO Id name DOJ APD amt
1 101 a 22/04/2008 22/04/2008
2 102 b 22/04/2008 23/04/2008
3 103 c 22/04/2008 23/04/2088
4 104 d 22/04/2008 24/04/2008
5 102 b 22/04/2008 24/04/2008
6 103 c 22/04/2008 24/04/2008
I want to add new amt coulmn in above table .that i have added .Now for value of amount I want it should be fixed rs. 50 for each id.now in above table tht is made in ASP Id 102 & 103 repeating means i want that in amt field count of 102 & 103 should come 2.
like:
amt(count)
1
1
1
1
2
2
and in amt coulmn when i click on 2 then it should display :
"ID 102 amount is from 22/04/2008 to 24/04/2008 is =50 * 2 =100"
Please help how can i do this.its urgent.
RASAP
Thanks
Gro Career
|
|
|
|
|
HI
please help as soon as possible.
Thanx
GROCareer
|
|
|
|
|
please help asap
waiting for replay.
|
|
|
|
|
whenever you add new value implement query counting records having same id as new id entered.
for example if 7th value in above table come with id=104 then query will be
select count(*) as xx from table where id=104
now rs("xx") will give you new counter and I think further process is simple.
this is what I understood about your problem.
|
|
|
|