|
Add this lines
using System.Security.Permissions;
.
.
.
[assembly: FileIOPermission(SecurityAction.RequestMinimum,Unrestricted=true)]
class test
{
}
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi,
We can't find out which pages writes to c:\winnt\temp folder, in that case how can I include the above code application level.
Thanks,
Giri
|
|
|
|
|
In that case you will have to use CasPol utility that comes with .net Frame work to provide permissions to your assembly.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
How does it 'automatically' create temp files. Can you not just change this code to output to a different directory?
|
|
|
|
|
I believe when .net applications are running, creates .tmp files automatically and by default they are written to C:\WINNT\Temp folder. Even I tried for IIS options to redirect the .tmp files to different folder, no use
|
|
|
|
|
I've worked with a number of asp.net applications and never encountered this as a problem. You might want to check how your framework was installed and also if you have a draconian security policy, you need to get an admin to sort something out to permit your application to work.
|
|
|
|
|
how to implement such functionality in asp.net
|
|
|
|
|
A timer is not a control, it's a class, it's just offered in the forms designer for people who are incapable of writing code and who need designers to create forms.
I recommend you buy a book on ASP.NET and work through it. As your ASP.NET code runs on the server, it's obvious you can't impliment a timer in code behind. You need to use javascript for that, because that's the language that runs on the client. You can force a postback on your timer, do things in the UI, or make an AJAX call.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
it depends how you want your timer to work
I have a similar method to a timer working at the moment
I have a page which 5 minutes after a user accesses it, it changes state, i.e. automatcially refreshes and something happens
explain more about how you want a timer to work
|
|
|
|
|
Yes, sure, so you can do that with javascript, like I said ( I said, javascript can do a postback )
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You may need to use JavaScript and try setTimeout function.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
ajax framework comes with a
"Timer Control".
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
*sigh* but who needs an 'AJAX' control to set a javascript timeout ? Really ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Of course we dont need it .But i was just stressing on the word "Timer Control". In a sense just like your Forms "Timer control" it can fire a event and run a code behind.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
can any body help me to save an image file located in one folder to another folder using c# ASP.NET
abeesmuhammed
|
|
|
|
|
System.IO.File.Copy(sourcefile,destfile) . Use Server.MapPath to get your files real location.
|
|
|
|
|
Is it possible to Apply rounded corners for a ASP Button using CSS?If so can yyou provide me any links
Many Thanks
|
|
|
|
|
http://www.devarticles.com/c/a/JavaScript/Building-Rounded-Corners-With-CSS-and-JavaScript/
http://aspnet.4guysfromrolla.com/articles/072804-1.aspx
|
|
|
|
|
Hi, i have a small doubt.
My requirement is to write a exception to eventlog file whatever exception rises throughout the applciation. So, using application_error method in global.asax page, i can write entry to eventlog file..it is ok for me..
But my doubt is how to retrive the application error to global.asax file..
When ever error occurs...applciation_error event will fired. But how to get that exception?
please help me on this
Thank You
G. Satish
|
|
|
|
|
You get the error using Server.GetLastError() .
|
|
|
|
|
Thank You Naveenth...
I got a result using Server.GetLastError()
Thank You very much
G. Satish
|
|
|
|
|
Hi,
I have written an user control with a gridview control, that does select, edit, update, cancel functionality. I have a question regarding the RowUpdating event. I bind my grid at runtime to a generic list<>, therefor I can't use the oldvalues, newvalues or the keys as you need a datasource control with an update command to be able to use these dictionaries. Another thing is that I have the autogeneratefields = true (as I am creating a generic gridview) and therefor I cannot use the gridview.columns[].extractvaluesfromcell as the columns count = columns created at design time to add the select, edit, update, cancel buttons. I have used the following code:
((TextBox)gridview.Rows[e.RowIndex].Cells[5].Controls[0]).Text which results in "". However the old values are still available. The newly typed data not available.
Any help will be greatly appreciated.
Thanx
|
|
|
|
|
Have you checked the array of Controls? I my websites it its always Controls[1]
|
|
|
|
|
Hi All,
I have two web user controls on the same web form. When I click a button
from one user control, I want to pass a message to the second user control
and display it. How can I do it? How can I notify one user control of changes
in another user control on the same web form?
Thanks.
Praveen Kumar.R
|
|
|
|
|
define property in user control and then pass value in webusercontrol tag that appears on the webform in tag u will find that defined property
|
|
|
|