Create a class
Public Class atuosender
Dim timer As System.Timers.Timer
Dim filepath As String
Public Sub New(ByVal st As String)
Dim timer As New System.Timers.Timer(8640000)
filepath = st
AddHandler timer.Elapsed, AddressOf timer_Elapsed
timer.Enabled = True
Private Sub timer_Elapsed(sender As Object, e As ElapsedEventArgs)
File.AppendAllText(filepath + "\TextFile1.txt", "Heloo")
End Namespace add global.asax
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim ats As New clsatuosender.atuosender(Server.MapPath("files").ToString())
' Fires when the application is started
how to use array in asp.net textbox
when I press the save button the value of text which i fill will be write on response.write??
However, I got this error after I sent it to the server:
Server Error in '/' Application.
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I have a requirement to implement user privilege elevation in an MVC3 web app, for both Forms and Windows authentication. This is for a higher privileged user to give assistance to a lower privileged user, e.g. when the lower user is performing a task and requires an admin task to be completed before they continue, the admin user should be able to elevate the same session to their privilege level, perform the admin task, and restore the lower privilege to the session.
Is this even possible, and if so, how can I achieve this? I have no idea where to even begin looking.
Im a Software Developer currently working in NCPL.. Here i've a problem regarding Editing of templates at different positions..
We have a ASP.net software where in we sent emails to clients on various occasions. For those events we select templates and edit the data or image in it and send it to our clients.. The problem over here is that i've took a radeditor component and tried to insert a template in it. But unable to edit it at different positions programmatically
.. So i request you to kindly clear my issue as soon as possible..
Thanks for replying to my mail. The main idea is there is a fixed template with text,images,headings etc. User selects this template(text/image in the template) and Edits the text as his wish depending on his requirement. For this editing he uses a editor(HTML editor/RAD editor). This editors will have design and html tabs. Wherein Design will consist of original template and html consists of dynamically genrated html code. So if a user edits image automatically html code changes. Atlast when his reqt satisfied he sends the template to his client via Email.
I have a C#. net 2010 web form application that I am going to maintenance and add linq to sql statements in the existing application. This application communicates with a sql server 2008 r2 professional edition database.
My problem is acutally wanting to know who to debug (step through) the code. I can get the general idea of what the code does. Howeever, I would like to know how to step through the code. Can you give me some help in this area?
Highlight the first line of code where you want to start debugging and press the F9 key. Press F5 to start the application and it will come to a stop on the line with the breakpoint set. Press F10 to go to the next line or F11 to debug into a method. You can hiver over varibles ot see the current value, add a watch to a variable so that yu can see the value changing or right click and quick watch to see all of the properties of a variable or whatver at that moment in time. That is a small part of what you can do - you shoul dtry reading up on the subject before starting.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum