DOWNLOAD THE CODE:
Download the Code 16082.zip

Now, apply the Root Domain Name of your AD to the proper format that the ADO provider for DSs needs. You need to change this name to a value specific to your implementation of AD:

strRootDomainNamingContext _
	= "DC=InterKnowlogy, _
	DC=com"
strLDAPServer = "<" & _
	"LDAP://" & _
	strRootDomainNamingContext _
& ">"

This ADO provider for DSs lets you define the scope of your search. DSs such as AD are hierarchical. The choices are base, oneLevel, and subTree. Our AD is small, so we use the code

sDepth = "subTree"

to search the entire subtree. In large implementations, you might want to limit the scope of your search to one level to avoid potential latency problems.

Next, execute this command to get the recordset:

ocommand.CommandText = _
	strLDAPServer & ";" & _
	sFilter & ";" & FieldList _
Set rs = ocommand.Execute

Now that you have a recordset, you can iterate through it to display the results. In Web Listing 1, notice how we display the Last Name and First Name of the employee but href the email address. Href calls email.asp, which Web Listing 2 shows. Email.asp lets you email a person straight from your WAP device. Also notice in Web Listing 1 how we display the mobile telephone number with an href. Here, href executes call.asp, which Listing 2 shows. Call.asp makes the call for you by dialing the phone number. Figure 7 shows the results of call.asp.

Next Month
You learned how WAP technology allows anytime, anyplace, and anywhere access to information by using existing wireless devices and with little development effort or costs. Next month, I'll examine the configuration of IIS for Microsoft SQL Server access—specifically, how to leverage the power of SQL Server in HTML and ASP on IIS.

Related Reading
Here are some valuable references for information about Wireless Markup Language (WML) and building and administering Wireless Application Protocol (WAP) applications. For information about WML tutorials, go to

http://www.wap-resources.net
http://www.wirelessdevnet.com

For information about WAP emulators and applications, check out
http://www.anywhereyougo.com http://www.phone.com

For details about Microsoft Active Directory (AD) and Directory Services (DSs), see these Tim Huckaby articles:
"Extending the User Class in the AD Schema," September 2000
"Implementing Site Server Search Database Catalogs," July 2000
"Implementing Site Server Search on Your E-Commerce Site," June 2000

End of Article

Prev. page     1 2 [3]     next page -->



You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

Hi

I just did the 5 steps for enabling WAP on IIS , when I browse the wap site using online WAP emulator , it works fine. but when I browse it from a mobile phone, it gives me Error : File Format Unknown, is there any other settings on the IIS I should make?

please advice

thanks

M.aziz

It was really good

Anonymous User

Article Rating 5 out of 5

hi, whenever i use asp code in asp file it creates problem right at line number 1. Following is the code: <%Response.ContentType="text/vnd.wap.wml"%> <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="Test" title="My first asp wml page"> <p> <% Response.Write "This string is generated server side by asp" %> <br/> </p> </card> </wml>

y does it give error at line number 1. need solution. Nauman nauman@xcess.net.pk

Anonymous User

Article Rating 5 out of 5

 
 

ADS BY GOOGLE