|
Hi,
I am trying to create folders dynamically using asp.net 2005. The code that i use here is already being used in .Net 2003 and is working fine there. But when i do the same thing in .Net 2005 the following is the error that i m getting :
<b>Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</b>
I have given write permissions to everyone for that folder still it does not work. And this is not working on my local machine itself.
If anyone can suggest some solution to this.
thanks,
sabiha.
|
|
|
|
|
It's very tough to answer as you haven't provided any code that you use.
|
|
|
|
|
Here is the code that i use to create folders :
MImageDirectoryName = "~/pictures/folder1"
MImageDirectoryPath = Server.MapPath(MImageDirectoryName)
If Dir(MImageDirectoryPath, FileAttribute.Directory) = "" Then
MkDir(MImageDirectoryPath)
End If
The folder1 used here has read/write permissions. I feel as if the problem lies in the line server.mappath, also tried writing ../pictures/folder1, pictures/folder1 but still no use gives the same error.
|
|
|
|
|
Have you tried to use Directory class? Directory.CreateDirectory should do the trick.
|
|
|
|
|
Thank you for your reply.
Yes i tried using the directory class as you suggested but still the same permission issue. Actually the problem does not lie in the method we create folders but the statement that i write for getting path which is as under :-
MImageDirectoryName = "../Pictures/folder1"
MImageDirectoryPath = Server.MapPath(MImageDirectoryName)
It gives error in the line server.mappath .....
Can you suggest anything else pls .....
thanks,
sabiha.
|
|
|
|
|
In VS 2005,Style sheet has one property named filter and opacity but in VS 2008 there is no such property.
can any one tell me how to use that property in VS 2008.
|
|
|
|
|
sarangkhandare wrote: In VS 2005,Style sheet has one property named filter and opacity but in VS 2008 there is no such property.
CSS has nothing to do with VS. AFAIK, filter is not a standard CSS property. It is a proprietary one defined by Microsoft and will work only in IE6.0 or later. To get this property in VS inetllisense, change the formatting to "Internet explorer 6.0" in the "Formatting" toolbar (View -> ToolBars -> Formatting).
|
|
|
|
|
No there is nothing in formatting for filter..
|
|
|
|
|
There is a drop down box in that toolbar and it contains what I said.
|
|
|
|
|
Hi all,
i am using user control for Top heading eg: Home Tour Request etc are such type of heading.when i click Home link then it should be activate for navigation of other page. same thing should happen in other link, i am using css also. my question, home to make the link activate when user click and visits for the pages.
Holidays;
thanks in advance.
JohnDas
|
|
|
|
|
Do you want to Highlight the Link e.g. make it bold, etc.
If so, then i can assist you.
Aman Bhullar
|
|
|
|
|
yes, i need the link should be highlighted, when user click.
1)if he click Home link,it should be highlighted.
2)if he click other link for eg:Tour then it should be highlighted and deactive the "Home" vice verse.
please help me.
JohnDas
|
|
|
|
|
Check my post. I have already give you answer !!
cheers,
Abhijit
|
|
|
|
|
hi,
Make the links server side.
Add a property in header file. Assisgn it a value every time from a page accesing it.
Then the header should, highlight the link accordingly.
Just change the CSS of the link on server.
|
|
|
|
|
Johndas wrote: my question, home to make the link activate when user click and visits for the pages.
Try this Css with your link and try to customize as per your requirement
.LinkCSS LC<br />
{<br />
font-size:7pt;<br />
font-family:verdana;<br />
color:#000080; <br />
}<br />
.LinkCSS LC:link<br />
{<br />
color: #000080;<br />
} <br />
.LinkCSS LC:hover<br />
{<br />
color: #000088;<br />
<br />
}<br />
<br />
.LinkCSS LC:visited<br />
{<br />
color: #000088; <br />
<br />
}
cheers,
Abhijit
|
|
|
|
|
Hi,
When my application is opened in multiple tabs in the same browser, same session id is being used.
Is theres a way in which we can restrict multiple tabs being opened in the browser from my javascript ?
As a work around i tried using cookieless session,it does solve the problem,but since the session id is displayed in the url it is considered as a security threat by our client.
Do we have any mechanisms by which we have encrypt or hide the URL with session id in it ?
Thanks in advance,
R.Sundar.
|
|
|
|
|
|
Hi,
When we make the session cookieless,i cant find the sessionid in querystring.
In the address bar i can see the sessionid appended in the virtual path itself like this
[^]
Thanks,
R.Sundar.
|
|
|
|
|
There is no way to control this issue
|
|
|
|
|
Member 2437558 wrote: Is theres a way in which we can restrict multiple tabs being opened in the browser from my javascript ?
No. It is browser controlled. BTW, what's wrong in sharing session in multiple tabs?
|
|
|
|
|
I am stroing most of the fields in the session object.
Traversing back and forth in the application i am restoring the fields from the session object.
So when the application is opened in multiple tabs fields changed in other tabs are being reflected in all other tabs.
I am sure many people would have came across this issue.
|
|
|
|
|
There is no way to control how browser tab works. As I said, it is completly controlled by the browser. All you can do is, open the pages in a popup window and I believe you can't add a tab there.
|
|
|
|
|
Hi Everybody,
Please tell me Is WPF browser application suggestable to implement a business website?
Thanks in advance,
Avinash.D
|
|
|
|
|
not sure that Silverlight falls under ASP.NET. Why do you need WPF ? What does it offer you ? Is it worth your clients needing to install it ? Is it worth the work ? A business website, I'd guess no.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Graus,
Currently our application was running in production environment. Now we need to do some new enhancements to that application. Now we are thinking to do new website using WPF but our client didn't ask for WPF we only planning to do this in WPF. Can you suggest me is it possible to do in WPF, is it suggestable?
If it was not suggestable then what is the advantage of WPFBrowserApplication Template?
If you know answers to my query Please let me know.
Thankyou very much in advance.
Regards,
Avinash.
|
|
|
|