|
hi
using javascript code you can manipulate XML doc in client computer not server computer
if you want to manipulate XML doc on server computer you must use a server side programing
javascript is a client-side programing language.
do you use ASP.NET?
I don't know where is your XML doc? in Client computer or server computer.
plz answer this question.
Mohammad Khansari
|
|
|
|
|
my file is on server and m using asp.net 2.0...
actually if i am using serverside code then page reloads so i am trying to use [Ajax.AjaxMethod()] but it doesn't work properly.....
is there any other way...like ajax or.....
Dinesh Sharma
|
|
|
|
|
hi
If you explain more then I can help you.
do you want to change a xml doc exists on server through client?
bye.
Mohammad Khansari
|
|
|
|
|
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.
Click here to View File;
//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);
MyFileStream.Close();
Response.ContentType = "application/pdf";
Response.OutputStream.Write(Buffer, 0, int.Parse(FileSize.ToString()));
Response.Flush();
Response.Close();
Kindly Help me in this Issue.
Ali Raza
|
|
|
|
|
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 :
<authentication mode="Windows"/>
<identity impersonate="false"/>
<authorization>
<deny users="?"/>
</authorization>
|
|
|
|
|
Hello,
I have a master page in my project and in master page i have defined all external links on header for javascript files and css files.
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:
<script language="javascript" type="text/javascript" src="../scripts/myScript.js">
And link like src="~/scripts/myScript.js" not working for any one.
Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files..
I will be very thankful to you...
<div class="ForumSig">Dipak
</div>
|
|
|
|
|
Use this in the Code behind
ClientScript.RegisterClientScriptInclude("ScriptFile", ResolveClientUrl("~/JScript.js"));
Arun J
|
|
|
|
|
Thankx for reply..
Please tell me
on which page i have to write this code..
Dipak
|
|
|
|
|
|
I would have expected Arun J's solution to work, but it seems you didn't bother trying it?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
use link absolute to the Web server
use
~/scripts/file.js
like this way. I think it will work
Abhishek Sur
|
|
|
|
|
Hi friends,
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.
thanx
Nuwan
|
|
|
|
|
Save a variable in view state and increment it on every time user clicks login button. Check in on page load and thats it.
Another way around is to keep a hidden field and store value in it.
Yet another way is to make a variable in a class and increment that.
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Dimuthu Nuwan wrote: i used the table field to store Number_Of_Trys but i think it's dirty way
That's not dirty way.
Dimuthu Nuwan wrote: how can i do this using client side
Client side values will be cleared when user closes the browser. So user can enter the login details again in a new browser window.
Keep a column in database which can be used to indicate the number of tries. When login fails, increment this number. If it is more than the allowed number, say user that your account is blocked.
|
|
|
|
|
Use proper text that is related to Question in subject line.everyone knows that this ASP.Net forum
Cheers!!
Brij
|
|
|
|
|
Hi coders,
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?
Thanks for any help in advance.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
If(!Directory.Exists(path))
Directory.Create(path)
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Anand Desai wrote: Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it?
No. The directory that you create will by default get the same permissions as the parent folder. If you have permission to create the folder, you already have write permission.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
It will be tough to maintain your application's file system if you have many directories created by users. I'd suggest keeping uploaded files in same location, and use URL rewriting which will give a feeling that the files are in specified directory.
|
|
|
|
|
Thanks Navneeth!! BTW, thats very usual thought and it did come to my mind also. but this is in-house application, so only 4-5 people will use this and also, folder creation will not be usual for them also, as every new file wont need new folder. (sorry, I cant disclose my project so wont be able to explain in detail)
Thanks though for helping and thinking for me!!!
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi guys,
I would like to know about secure webservice concept...,
have to pass my datas and receive my datas with encrypted format using webservice ..,
Help me how to do that?,
Guide me
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Try here[^]
There are thousands of examples
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
I need to move some selected data from one list box to another in a webpage without postback, using Ajax. How can I do so? I searched in the google for the code, but couldn't find anything beneficially. Could anybody please provide the source code on this? Any url or any site explaining the code?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
i am using vs2008 in the debug menu there is no step out option.
|
|
|
|