How do I add assembly reference using ASP.NET Web Matrix???

I'm making web system with ASP.NET Web Matrix with C#.
I want to use System.Windows.Forms in order to use OpenFileDalog and I got following error....

Compiler Error Message: CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)

Source Error:

Line 3:  <%@ import Namespace="System.Data.SqlClient" %>
Line 4:  <%@ import Namespace="System.Web" %>
Line 5:  <%@ import Namespace="System.Windows.Forms" %>

I don't know how to add reference...Please somebody help with detail answer how to add assembly reference to Web Matrix!
manamiobaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

naveenkohliCommented:
You won't be able to use OpenFileDialog anyways in web application. Calling it would simply invoke the action on server and not on client.
manamiobaAuthor Commented:
Thank you for your response naveenkohli.
Do you have any idea what I can use instead of OpenFileDialog to let user select a file from dialog box and get its directory path?
manamiobaAuthor Commented:
Inaddition...
My purpose is not to upload, downlod files on server.
I want to open a dialog box and let user choose a file, get its directory path, and save it to a database.
So when the user visit my site next time, they can open the file they choosed last time by getting directory from the database.
naveenkohliCommented:
You will need to use HtmlInputFile control which displays standard file selection dialog box.
You can't sniff paths on client side without help of an activex control installed on machine or some other external mechanism. HtmlInputFile control will get you name of the file (probably path.. but not certain all the time) and content of that file.
See the documentation for this control to see how it is used.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
manamiobaAuthor Commented:
I see.
I will try HtmlInputFile.
Thank you very much for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.