| Help: How to use MSXML2.DOMDocument in ASP? |
|
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages
|
- Previous
- 1
- IIS >> asp and AD authenticationI have no problems authenticating via AD and an ASP page. My question is
this - is there any way to 'reverse' the process?
What I mean is the authenticated state remains as long as the browser window
is open. Is there any .asp command I can provide that will revert the
browser session back to IUSR?
Thanks, as always.
Blake
- 2
- 3
- ASP/Active Server Pages >> application on Start global.asamy understanding was when IIS restarts that time when the first session is
requested application_on Start is called. My session time out is 1 minute.
after every session time out happens when the session is requested then it
goes to application_onStart first. Isn't application on start just happens
only when IIS restarts and first session requested.
can somebody explain
- 4
- Frontpage Client >> Timeout error messageThis is a new one. I've been using FP 2002 for three years to create and
publish my website...and just recently have been getting this error message
Microsoft Frontpage
The Server "" timed out. The current request did not complete successfully.
It first happened when I tried to republish my entire site...while I was
able to publish a couple of pages at a time. Then I noticed the same error
message come up when I tried to access certain folders in my folder list
within FP.
I have done a detect and repair and a complete un/reinstall, no change.
No virus or spyware activity detected.
This is dreadful...I am looking forward to installing Adobe Go-Live.
I have restructured my navigation, otherwise, page by page publishing would
be adequate for now. Any thoughts here much appreciated. Thanks JRA
- 5
- Frontpage Client >> Why do tables change when printed?I created a website (www.conservationconsulting.net)
using tables to control the width and appearance of each
line of text. When I view pages in Internet Explorer the
text (in the tables) appears the same as I created it --
with the same line breaks, etc. However, when I print
those webpages the tables stretch horizontally and as a
result some of the words on the right get cut off.
In addition, the last few table rows are spread out
vertically when printed as if many blank rows were
inserted.
Any ideas?
I even set the table to pixels rather than percentages,
so that even if someone adjusts the size of their web
browser window the formatting shouldn't change.
Thanks!
- 6
- Frontpage Client >> www problemsAnyone else having "connectivity" issues??
I have several sites down at the moment!!
pings all timeout and the "hosts" server
returns "Unkown host"
They're supposedly all "mirrored"
--
using 2k PRO but....95isalive
This site is best viewed............
.......................with a computer
- 7
- 8
- IIS >> Single Sign-on problemsWhat makes these links do what they do - and does anyone know how to fix it?
These are both on our intranet and to the same server:
1) http://webapps/intranet/admin
(The above link will not prompt for your credentials)
2)http://webapps/ca.kt.org/intranet/admin
(This link DOES prompt for your credentials)
- 9
- ASP.Net >> Get HTML Content of a Local PageHi All,
Is it possible to get a web page content of one of my webpages using
relative path?
for example:
If I have a website which consists of 2 pages: testpage1.aspx and
testpage2.aspx and the testpage2.aspx requires that I pass some parameters
to populate its form. Now if I want to get the html content of
"testpage2.aspx" page from testpage1's code behind page and store it in a
string variable, is it possible? I have been using HttpWebRequest and
HttpWebResponse objects to get the local page content but I just feel this a
bit awkward. Also the method "Create" of System.Net.WebRequest.class
requires a full url path to create a WebRequest object as in
System.Net.WebRequest.Create(url). Thanks in advance for your help.
Regards,
Sam
- 10
- ASP.Net >> Master Page QuestionHello,
I have 2 pages: Page1.aspx and Page2.aspx.
The two pages have common design parts but also not common design
parts.
Is it possible to create something like this:
MasterPageA
|
|---- MasterPageB
|
|---- Page1.aspx
MasterPageA
|
|---- MasterPageC
|
|---- Page2.aspx
See?
Page1 uses Master Pages A and B.
Page2 uses Master Pages A and C.
Could you tell me if I should do this and if it is possible.
If yes, where can I find some information about it?
Thanks,
Miguel
- 11
- ASP.Net >> ASPNET hosting problemHi all,
I'm trying to host my web application which is wriiten in ASP.NET/C#/SQL on
webhostingcenter.com. They use H-SPHERE control panel. I have written my
application on my PC, so the SQL server was local, the hosting server was
local, the IIS server was local. I have uploaded the application
but without any success when i tried to start it.. I don't know what kind of
files I have to upload from the project. Do I have to make any changes in
Global.asax, Web.Config, and the other files. Could you help me here please!
I'm stucked.
Thank you!
- 12
- ASP/Active Server Pages >> Response.ContentType = "video/x-ms-asf"I had a asp file that generated asx files using
Response.ContentType = "video/x-ms-asf"
It was working fine up until a day or so ago. Now all of a sudden it does
not work.
If I take out the Response.ContentType line and copy the source code to a
asx file it works fine. if I copy the URLs out of the code and put them into
the browser it plays. So it is generating the file correctly, it is opening
Windows media player, but it then errors saying it cant fine the file. Yet
copying the URL from the generated asx works fine.
I am puzzled
- 13
- 14
- ASP.Net >> return data from c# web app.hellow the thing is i have a web page with a javascript code, in this page
i'm using the xmlhttprequest object in order to send values to a C# web
application and it's working fine this way, but now i need to get data from
another web app. but i don't know how to get data from that web app in other
words how is the code in the web app to return a value to a xmlhttprequest
object i tried the return statemen but it doesn't work in that web app.
In the client side i thing i have to use the XmlHttpRequest.responseText to
get the server response but i don't know how to mke this server response.
i hope my explanation is clear enough, any questions please let me know
any suggestions or code sample would be appreciate
thanks in advance.
- 15
- ASP.Net >> suggestions?I want to design an asp.net page which will have multiple controls. I want
to fill one of the control when there is some action like selecting
something from its previous control...I want to simulate as if its a windows
based application and the entire page is not refereshed (trip to
server)....other controls are not involved for this task....how can I
smoothly refresh these contols...I was reading about VIEWSTATE, is that the
solution to my problem...
Thanks
|
| Author |
Message |
ekrem

|
Posted: Wed Sep 01 14:31:36 CDT 2004 |
Top |
ASP/Active Server Pages >> Help: How to use MSXML2.DOMDocument in ASP?
Hi,
I need to use MSXML2.DOMDocument in my ASP page. The following is my code:
xml.asp:
=====
<%
dim sx
sx="<root><a>text1</a><b>text2</b></root>"
dim xd
set xd=Server.CreateObject("MSXML2.DOMDocument")
xd.loadXML(sx)
Response.write xd.hasChildNodes
%>
Somehow, xd.hasChildNodes return False, i.e. there is nothing in the xd. I
guess the
error was caused by missing the path of the MSXML2 library file. It seems
like the
code doesn't know where the MSXML2.DOMDocument is. But the code didn't
generate any error.
Would you please tell me what I did wrong here? What should I do to let the
code
know where the MSXML2 library file is?
Thank you
hb
Web Programming450
|
| |
|
| |
 |
Bob

|
Posted: Wed Sep 01 14:31:36 CDT 2004 |
Top |
ASP/Active Server Pages >> Help: How to use MSXML2.DOMDocument in ASP?
hb wrote:
> Hi,
>
> I need to use MSXML2.DOMDocument in my ASP page. The following is my
> code:
>
> xml.asp:
> =====
> <%
> dim sx
> sx="<root><a>text1</a><b>text2</b></root>"
> dim xd
> set xd=Server.CreateObject("MSXML2.DOMDocument")
> xd.loadXML(sx)
> Response.write xd.hasChildNodes
> %>
What do you get when you do:
Response.Write xd.xml
?
>
> Somehow, xd.hasChildNodes return False, i.e. there is nothing in the
> xd. I guess the
> error was caused by missing the path of the MSXML2 library file.
No, that's not the issue. First of all, CreatObject is not using the name of
a file: it is looking up the GUID for the class specified in the argument in
the Registry. If it can't find it, you will get a "cannot create object"
error. Since you are not getting that error, and since the loadXML method is
not generating an error, I think you can rule that out as the cause of your
problem.
I tried your code and it returned True for me, so I suspect there is a
version issue. Verify that you have MSXML 3.0 or higher installed on the web
server. You can get the latest version of the MSXML Parser at the Microsoft
website.
HTH,
Bob Barrows
--
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.
|
| |
|
| |
 |
hb

|
Posted: Thu Sep 02 08:02:57 CDT 2004 |
Top |
ASP/Active Server Pages >> Help: How to use MSXML2.DOMDocument in ASP?
Thank you
hb
"Bob Barrows [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> hb wrote:
> > Hi,
> >
> > I need to use MSXML2.DOMDocument in my ASP page. The following is my
> > code:
> >
> > xml.asp:
> > =====
> > <%
> > dim sx
> > sx="<root><a>text1</a><b>text2</b></root>"
> > dim xd
> > set xd=Server.CreateObject("MSXML2.DOMDocument")
> > xd.loadXML(sx)
> > Response.write xd.hasChildNodes
> > %>
>
> What do you get when you do:
> Response.Write xd.xml
> ?
>
> >
> > Somehow, xd.hasChildNodes return False, i.e. there is nothing in the
> > xd. I guess the
> > error was caused by missing the path of the MSXML2 library file.
>
> No, that's not the issue. First of all, CreatObject is not using the name
of
> a file: it is looking up the GUID for the class specified in the argument
in
> the Registry. If it can't find it, you will get a "cannot create object"
> error. Since you are not getting that error, and since the loadXML method
is
> not generating an error, I think you can rule that out as the cause of
your
> problem.
>
> I tried your code and it returned True for me, so I suspect there is a
> version issue. Verify that you have MSXML 3.0 or higher installed on the
web
> server. You can get the latest version of the MSXML Parser at the
Microsoft
> website.
>
> HTH,
> Bob Barrows
>
> --
> 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.
>
>
|
| |
|
| |
 |
Bob

|
Posted: Thu Sep 02 08:07:47 CDT 2004 |
Top |
ASP/Active Server Pages >> Help: How to use MSXML2.DOMDocument in ASP?
You're welcome. I hope that means your problem is solved.
Bob Barrows
hb wrote:
> Thank you
>
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages |
- Next
- 1
- ASP/Active Server Pages >> Paging in ASP BEST APPROACHHI,
Guys
There has been a lot of Ways to use paging in asp
1>Recordset approach -where whole records are pulled at client side...
and then only the records which are needed are filtered..
and now that is not the approach good as we are pulling unnesscary all
the 10,000 say for dispalying 100 records...if pagesize is 100
2>i have seen is the Stored procedure approach where data is inserted
in temp table and then only the records needed are pulled out...
now again the approcah is not feasbile as if the data in the table is
huge
then inserting in temp table is going to bring Troubles...
so both the approcaches are bottlenecks...
so brillant guys..... which the best approcah to implement paging in
asp...
i have seen google paging seems to be runing very fast?
so tell me which the best approcah to implement paging in asp
regds,
Navin Mahindroo
- 2
- Frontpage Client >> FrontPage 2003 Log FilesNot another Newbie, no i'm not ,
i have a problem with FrontPage and i'm so stuck !,
I have FrontPage,, 2003
and well as far as i can see, the log files i can't see !
The log files box has got a ticked out ,
but the view logs , is all greyed out !
Any idea's would be so great,
on the newsgroup we can debate !
Shady MVP ;)
+_"Guess what we do use the F1 Key "_+
- 3
- ASP.Net >> Calling a webservice from my ASP.NET applicationI 'm calling a web service using this code:
MyService service = new MyService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
I was getting an "Access Denied" everytime, but it works when I use this
code :
MyService service = new MyService();
service.Credentials = new
NetworkCredential("myLogin","myPassword","myDomaine");
I have enabled impersonation by adding <identity impersonate="true" /> to my
web config and we are using windows authentication.What else should I add in
order to get it up and workin?
Thanks
- 4
- ASP.Net >> client side validation and form submission on iis 6 (both 1.0 & 1.1 installed)Hi,
We have a strange problem where we have moved asp.net applications onto a
Windows 2003 server which has both 1.0 and 1.1 installed. The server is
running in IIS5 isolation mode...
But... None of the client side form submissions are working where clientside
validation is being implemented. we have tried recreated the aspnet sub
directory using the regiis too (with -s for specific application roots) to
no avail. We have to have both versions of the framework running for some
old apps that haven't been migrated yet..
Anyone come across this? Any things we should be looking at ?
Ta
- 5
- ASP.Net >> ASP.Net 2.0 MenuHi Folks,
Trying to display a two tier menu horizontally but not having any luck
with the new menu control.
The First Tier should display static horizontal.
The Second Tier should display dynamically as a horizonal row below the
first.
Both tiers should be left aligned.
Item 1 | Item 2 | Item 3 | Item 4
Sub Item 1 | Sub Item 2 | Sub Item 3
As different Tier 1 items are selected a different list of Tier 2 sub
items will appear. But always aligned the same way. I can make this
work with two menus but not with one.
There doesn't seem to be any way to do this with the new control. All
help appreciated.
- 6
- 7
- IIS >> please explain HTTP_RVP / continual http 501 errorsCould somebody shed some light onto what HTTP_RVP is? On our IIS
webserver we have continual 501 errors appearing. All of these
contain HTTP headers with things like HTTP_RVP_NOTIFICATIONS_VERSION
and HTTP_RVP_FROM_PRINCIPAL. I have found this explanation of 501
errors (http://www.checkupdown.com/status/E501.html), but it doesn't
help with explaining why we are getting them.
My questions:
What is RVP?
Is our webserver misconfigured and should be returning something to
these requests?
How do I make this stop?
Thanks,
Jeff
- 8
- ASP.Net >> Listbox containing duplicate items - correct selection not maintained on postback?I have a page containing a list box. This list may contain duplicate
items - in which the ORDER is important.
ex:
a
b
b
a
is significant as compared to:
b
a
a
b
even though the list contains the same elements. The user has buttons on
the page to reorder the list.
The problem is that, say in the first example, the bottom 'a' is selected.
Then a button is pressed that causes a postback. The re-selected item is
now the FIRST a. Likewise, if the second 'b' is selected, on postback the
FIRST b will be selected.
The following page demonstrates this:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="testListbox.WebForm1" smartNavigation="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
<asp:ListBox id="ListBox1" runat="server">
<asp:ListItem Value="item1">item1</asp:ListItem>
<asp:ListItem Value="item2">item2</asp:ListItem>
<asp:ListItem Value="item1">item1</asp:ListItem>
</asp:ListBox>
</form>
</body>
</HTML>
There was no code added to the codebehind page. (I just created a simple
web app to demonstrate this).
Is there anyway to resolve this issue such that the correct element is
selected (by index rather than value)?
--
Adam Clauss
- 9
- Frontpage Programming >> Jump Menu QuestionI recently tried to insert 2 jump menus on one page. The insertion worked,
but the interactive GO button only worked on one menu. Essentially, my
question is, can two jump menus work on one page? Is there anything special
I have to do to get the second one to work properly?
Ken Lewis
- 10
- Frontpage Client >> sub view buttonsRight after I save a new page and reopen it, all my subview buttons are gone.
I'm stuck with a text version to edit and can't switch to design or other
modes. I looked up as much as I could in help, but all it does is tell me
where to find the subview buttons. They're not diplayed on the page anywhere.
Has this ever happend to anyone?
- 11
- Frontpage Client >> Question about FP discontinuationI recently designed a basic informational website for a friend who
owns/operates an auto leasing company. His primary goal is
self-maintenance - current inventory pictures that will change almost
daily - thus my recommendation of FP2003. At this point he hasn't even
purchased the software.
Any concerns with this, considering FPs future?
jm
- 12
- ASP/Active Server Pages >> Custom MIME Type major issuesSo, I have some simple asp code to send a response to the client with a
particular ContentType defined, code shown below:
Response.Clear
Response.ContentType = "application/x-custom"
Response.Write "<?xml version='1.0' encoding='UTF-8'?><testing/>"
Response.Flush
I have a client side ActiveX control implementing IPersistMoniker that is
registered to handle this MIME type. This seems to work fine on some
machines and not others. On some of my machines, the control is not
instantiated at all. Instead, a blank page is shown in the browser. If I
change the ContentType above to something like "text/xml", the response is
shown correctly in the browser. This leads me to believe there is a problem
with the client mime handler, but it seems to work on most machines. Does
anyone have any insight into this? I've been stumped for quite a while now
and would really appreciate the help.
Thanks,
Dave
- 13
- 14
- ASP.Net >> CSS QuestionHi
I have the following in my styles.css:
BODY
{
...
font-size: .8em;
...
}
Why doesn't this reduce the text size in my <table> <tr> <td>?
Is there a global .css that IE uses for defaults?
Thanks.
Dee
- 15
- IIS >> August 8th: Troubleshooting SSL WebcastHello all ~
This is an annoucement for purposes of making all administrators and users
of IIS (4, 5, and 6) aware of a upcoming webcast. The webcast is related to
Troubleshooting SSL, and will focus on these topics:
- SSL Terms
- Understanding the SSL Handshake
- Private Key vs Public Keys
- Server Certificate vs Client Certificate
- Certificate Authorities
- Troubleshooting with SSL Diagnostics
The event will have two key developers for SSL technology in the IIS product
answering questions while I deliver the webcast. This is your opportunity
to ask questions and provide feedback to the development group at Microsoft.
For further information, please visit and register for this event - and
please forward as you like this information.
http://www.microsoft.com/usa/webcasts/upcoming/2099.asp
Please register!
--
~Chris (MSFT)
IIS Supportability Lead
|
|
|