i tell you that if you use asp.net it's better to use it's features for manipulating XML docs.
using this function you can load a xml file in your HTML document.
// code for IE
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
alert('Your browser cannot handle this script'+'<br>Reason: Your browser does not support XML document')
alert("When loading XML document one error occured\nError: "+err)
after loading XML doc you can use XML DOM for manipulating.
for more information about XML DOM visit http://www.w3schools.com/dom/default.asp
if you want to manipulate XML doc on server computer you must use a server side programing
do you use ASP.NET?
I don't know where is your XML doc? in Client computer or server computer.
I m having Problem in opening PDF Document written on a page in Highslide. Although this page works in case of Image but when I write PDF, it completes the process but does not show the page where PDF is Written. there is no error in PDF method, it is working fine. Below is the link through which i open highslide.
//Here is the COde for Writing the PDF on page
FileStream MyFileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
long FileSize = 0;
FileSize = MyFileStream.Length;
byte Buffer = new byte[(int)FileSize + 1];
MyFileStream.Read(Buffer, 0, (int)FileSize);
Response.ContentType = "application/pdf";
Response.OutputStream.Write(Buffer, 0, int.Parse(FileSize.ToString()));
I have an intranet web based applicaion(ASP.NET 2.0) for HR and employees called TRS.
There is a single sign on,i.e. your email id windows id and TRS id are made same at the time of creation.
The users cliclks on a link and the foloowing method is done to sign him in:
1.I Pick up his windows id
2.Check for the same ID in TRS Database as ID's are same.
3.If found log him in and show the default welcome screen.
This worked fine as long as the application was on intranet.
But now IT has provided Aventail VPN log in from where users access their email i.e. Outlook webmail and TRS also.
The problem lies here,
When you authenticate and enter the VPN session you can access all other application and Outlook.
When TRS is clicked a dialog box opens for user name and password in which you have to provide your windows user name id and password for your company.
Then if the credentails are correct you are shown the welcome page.
<b>The problem is that the dialog box is not required.</b>
Can anyone guide me as to how to do this i.e pick the user name from which the user logged inside VPN
Outlook opens directly once you enter the VPN session.
In the same way the site should get opened once authenticated to VPN and another dialog box for user name and password should not come.
Thanks in advance.
The authentication I currently use is windows authentication.
The code to fetch user name is:
Dim usernames() As String
userName = Request.ServerVariables("AUTH_USER")
The web config file is :
And all .aspx pages (including sub folder pages) are under that single master page.
all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like:
And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like:
I have a login page in my project , i want to disabled user when, if user fails to enter correct password in 3 attempts, how can i do this using client side , my login validation method is located inside the APP_CODE folder , inside that(APP_CODE folder) i have method to validate user,currently i'm using local variable to store Number_Of_Trys ,but it's not belongs to particular user, i can't use sessions or viewStates to store Number_Of_Trys for a particular user bcos i'm in the class,i used the table field to store Number_Of_Trys but i think it's dirty way,pls tell me how to do this.
I am using .NET 3.5 framework. I'm working on a file upload project. What I want to do is give the user the ability to enter a directory name, check to see if it already exists and if not create the folder and upload the files their.
What namespaces should I be using? Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it?