You'll probably want to create an LDAP query against your active directory. There are a number of examples online - just bear in mind that your asp.net process will need to have sufficient authorisation to make these queries.
where FolderName is comming from session.
Its not working but. its showing blank page in result(not even "Page Not Found").
Then I tried another one:
FileStream fs = new FileStream(Server.MapPath(FolderName
+ "/styles/About-Us.html"), FileMode.Open);
byte data = new byte[fs.Length];
fs.Read(data, 0, (int)fs.Length);
string dataString = Encoding.UTF8.GetString(data);
htmlAboutUs.InnerText = dataString;
It is also not working. I have checked that its bringing correct data in dataString but not displaying. mean my file contents are properly read but its not assigned to iframe. Please give some gidence.
That is because you are using MapPath to return the Physical path as seen internally on the server. The browser does not have access to that. You must use a URL (http://domain/folder/styles/About-Us.html)
I wish to know if there is a way to publish a website created in VS2005 to a windows 2003 server using the remote desktop connection.What I have been trying is ....I have created a website in VS2005 and published it locally on the FileSystem.Now if I manually copy it on the windows server 2003 will it work?Morever,I wish to the proper way to publish a website created in VS2005 on windows 2003 server,provided I can connect to windows 2003 server using remote desktop connection only and I dont have admin rights...Please kindly let me know the proper way to do this!!
protected void Button1_Click(object sender, EventArgs e)
protected void Save_Click(object sender, EventArgs e)
//Now here i want to insert value in Database from my textboxes which is created in PH1 and PH2
Hi I am new in programming. Currently I involved in developing a website for a company. I use microsoft visual studio 2008 to create my website. I wish to add modules to ease my job to track the bug and store the exception in a text pad. As I know for window based application and web application are able to create a module and use in page. Is it possible to do in a website?
i add a class in my App_Code, when i want to call the method in the class, it show the blue line under my text. When i mouse over my text, it show "Reference to a non-shared member requires an object reference."
i'm just guessing but are you trying to access your code without an instance of the class? If you want to do so, you have to options. Create an instance using the new-keyword or declare all methods in your class static so that you don't need an instance.
Please be so kind to post your code (the underlined one, and the one you are trying to access). This will help us to solve your problem.