Click here to Skip to main content
15,922,145 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

We are working on a project on ASP.Net using C# language. I have created a Class Library project to make a DLL and within it i have define a SMTP mail function and used some HTTPUtility.UrlEncode() in my code. When i build my program its giving an Erorr at HTTPUtility, even i have declared using System.web.

can this be done? I mean is this possible if so
can anyone please let me know how can this be done.

I have almost a day looking for it.. but couldn't find any solution.

Looking forward your early reply.

With warm regards,

Ahmed Khan
Posted

Yes it can, but you'll need to add a reference to System.Web.
 
Share this answer
 
not only import statement
go project->Add refference ->.net-> then System.web add refference to your project
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900