making variables available to more than one page


I have been using the post method, but that only works for one other page…how do I go about making variables available to more than one page?

U can not do it in ASP.NET but If you’re using ASP 3.0 there is way to do this is to use session variables, which is not too effective in my opinion.

for session variables – use the request.form method like this:

session(“your_session_variable”) = request.form(“your_form_variable”)

then whenever you want to reference that session variable throughout the remainder of the session, just call it like any other… for example

response.write session(“your_session_variable”)

source code of an ASP program


I m running ASP programs on my website. Will anybody be able to view the source code of an ASP program on the website?

How can we make it even more secure?

yes everyone can see your source code, If u want to hide it,use javascript and disable source code view

It is not possible to see the ASP code.

U r right Dolbz,it is Not possible to see the ASP code, but if your IIS configuration is incorrect or your hosting provider takes the right to run ASP on your domain then it’s possible

As long as you instruct the server to parse those files (as is by default), the source will never be available to regular visitors.

code to query active directory


Does anyone have any code to query active directory via an ASP classic application. Basically, I want the application to verify that the user is logged into the network, and simply return the username they are using. This is done on a single signon network, so there is no interaction with the end user.

if you were using .NET 2.0 and Visual Studio 2005 you could generate a managed class from the Active Directory WMI provider to easily access the AD schema.

asp code for footer link


Hi all,

I m newbie in ASP.
I just wanted to add my main page link at the footer of every internal page of the site but couldnt understand the asp code and am stuck in it.
kindly help me

you will either have to edit every page, or put This include code at the bottom of every page.

Code:
<!--#include virtual="pagenamehere.asp"-->
Then create the pagenamehere.asp page with the footer content you require.

modify an XML file in ASP.net


Hey,

Is there any way to modify an XML file in ASP.net?

Sure, look at the XmlDocument class (it is very helpful for modifying XML files).

Namely all the .NET Framework XML classes include innovations that offer convenience, better performance, and a more familiar programming model etc. than the older industry standards such as DOM, XPath, XSD, and XSLT.

picture path into the database


how do i upload a picture path into the databae and display it out ??? pls help me. .

when uploading it you are presumably storing them in a predefined folder and therefore simply store the path relative to the root in the db with the file name or alternatively if they are all in a single location then there is only a need to store the filename as the path will be the same in all cases.

so you need to insert into db pictdure path or actually upload a picture via a form ?

Changing Hosting Plan


Hi,
I am a Reseller and Now I want to change some of my hosting plans. How can i do it? I m using H-Sphere control panel.

Your hosting plan determines the services you get with the account and the prices for these services. Big sites with high hit rates and special services require more expensive plans; cheaper plans are suitable for simpler sites.

To change to a different plan:

1. Select Quick Access in the Account menu.
2. Click the Change icon next to your plan name.
3. Select your new plan and click Submit

Can i change billing period of my customers and how?

Yes, u can do

You need your control panel password to log into the control panel. Initially, this password is the same as your FTP password, but you can make these two passwords different.

To change the control panel password:

1. Select Quick Access in the Account menu.
2. Click Change Password in the Quick Access section.

download/read xml files from another website using asp


Is there any way to download/read xml files from another website using asp??

can be done client-side now with the ever-popular AJAX…

Or you can also write a COM obj to scrape another page/download file, etc..

look up the XMLHTTPRequest Object

Changing FTP Password


How can i change my FTP Password ?

You need your FTP password to upload your site to the server. Initially, this password is the same as your Control Panel password, but you can make these two passwords different.

To change the FTP password:

1. Select FTP User in the FTP/User Account menu.
2. Click the Change icon next to Password.

Sends the email feedback to a Distribution List in his Outlook


one of my client has requested a form that sends the email feedback to a Distribution List in his Outlook Contacts. So…is there a way to code a form to pull the emial addresses from an Outlook Contact distribution list?

This looks like an attempt to steal email addresses from an address book and spam the heck out of them. Is that what you are trying to do?

You can save the contacts as a text file and input them all to a database which is stored on the web server.Then when the form sends an email it can send it to all the addresses.

If your outlook uses exchange server on active directory. I believe you can then query the server using ldap to get what you want.