Check if folder is read only in C#.net

I am working in asp.net(C#)4.0. Before uploading an image, I want to check that if the folder in which the image has been uploaded is exists or not. If it exists, is it read-only or not and if it is read-only, I want to make it not read-only. How can I do so. Each time when I start my application, the folder is set to read-only. So I want to avoid this problem by checking it all by programmatically.

ASP.Net First inner form in Server Form doesn’t POST

<form runat="server" id="outer" > <form name="inner1" method="POST" action="http://www.somesite.com/page.php" > <input type="text" size="7" name="o" id="origin" value="london" ></input> <input type="submit" name="getDirectionsBtn" id="btnSubmit" value="Submit" /> <input type="hidden" name="oo" value="p" /> </form> <form name="inner2" method="POST" action="http://www.somesite.com/page.php" > <input type="text" size="7" name="o" id="origin" value="london" ></input> <input type="submit" name="getDirectionsBtn" id="btnSubmit" value="Submit" /> <input type="hidden" name="oo" value="p" /> </form> <form name="inner3" method="POST" … Read more