My task is to create an ASP.NET application with a piece of code which will automatically run every half an hour. This code must append a record to the file every half an hour. It should not depend on users requests(whether they happen or not).
1) I'm writing my code in Application.Start method of Global.asax file. Am I right?
2) Do I have anything to do with the hosting (IIS) settings (e.g. change permissions to write the file, etc)?
I have already tried just putting the code to write to file into a loop in Application.Start method and then just copied the project directory to the server. However, it didn't work.
In below link http://www.asp.net/ajaxlibrary/act_faq.ashx it has been mentioned that "Also, the ToolkitScriptManager performs automatic script combining on the server."
I'm executing one stored procedure from the '.net' code. Since there is a lot of data, it is taking too much time to execute. Is there any way to stop this execution from the c# code?
In other words, if we execute the query from database itself, there is a option to stop its execution but in the code is it possible?
For configuring my ASP.Net Application I'm using Custom Configuration Sections in my web.config. But I would like to get IntelliSense support for my own-build configuration sections. I figured that it is possible to create a XSD Schema Definition and include that in the web.config. But is there a less painful way of getting that schema?
With Configuration Section Designer I found a tool offering a GUI for creating my configuration section and generating the schema. But I like coding and I don't want to learn how to deal with another GUI.
So, is there a possibility of automatically generating the schema for my code?
Is there a code in c# or vb.net to move the cursor position randamly for every 3 seconds.The logic i need is "I used to run the application and the mouse pointer should move randomly until the applicatio is closed".
i have been assigned a task to develop ICR in asp.net using c# i have no idea to implement it please give me idea from scratch, and also how to write code and which name space is used to perform this task
I am an experienced developer but I am new to web application development. Now I am in charge of developing a new web application and I could really use some input from experienced web developers out there.
I'd like to understand exactly what experienced web developers do in the code-behind pages. At first I thought it was best to have a rule that all the database access and business logic should be performed in classes external to the code-behind pages. My thought was that only logic necessary for the web form would be performed in the code-behind. I still think that all the business logic should be performed in other classes but I'm beginning to think it would be alright if the code-behind had access to the database to query it directly rather than having to call other classes to receive a dataset or collection back.
MSDN got a page showing in which order ASP.Net global.asax methods are invoked. I can't seem to find it, anyone got a linkAre there a similar page, but for ASP.Net MVC (including in which order all controller methods are invoked like OnActionExecuting, OnAuthorization etc)?
ASP.Net app life cycle: http://msdn.microsoft.com/en-us/library/bb470252.aspx
How the does the gridview populate all records?.As the reader is capable of reading one row per read,I thought only the last row is available for GridView to display.
I am recording time taken by a page to be displayed to user, for which I am recording execution end time in page_PreRender. But if the page contains huge amount of data, then it is taking few more seconds after PreRender event. I also tried with Page_Unload, still the same.
script for Visual fox pro about shell execution in silent mode. I don't want to display the output of the running application in windows screen. I just trying to run the ".exe" file w/o viewing on screen.
I am new to IIS7 server I have a ASHX generic handler in ASP.NET, its process some mathematical data depending on the user data (which is hard to predict), mathematical model can use lot of memory and may put IIS server to hold all the other tasks I am trying to limit the memory that ASP .NET process can take and setup timeout limit for the max execution time for this .ASHX process i will be glad if any one can point me to the right direction to resolve this
Select a from tbl_abc where id in ( select id from tbl_xyz where mainid = 12)
When I am executing this query, it is taking 1-2 seconds to execute, but when I am using the same query in stored procedure, the below query is taking more than 5 minute:
If(Select a from tbl_abc where id in ( select id from tbl_xyz where mainid = 12)) BEGIN -- CREATE TEMPORARY TABLE [Say: #temp1] #temp1 => Select a from tbl_abc where id in ( select id from tbl_xyz where mainid = 12) inserting the same value in the temp table drop #temp1 END
what could be the reason of this? and how can I resolve this? I am running the SP from asp.net
I would like to check how long an ASP.NET page takes to execute (server stuff obviously, not interested in how long it takes to throw the results down the line and for the browser to render them at this stage).
Having done some searching, I came across http:[URL] which shows how to do just this. Trouble is, it doesn't work for me. I copied the code exactly, but the execution time is always zero.
I tried enabling tracing, and that showed an elapsed time between Page_Init and Page_PreRender, but the values returned by Environment.TickCount were exactly the same in both events, so the elapsed time was 9obviously) zero.
I need to find out the query execution time from the front end .Where should I insert the code for that.
I am using the bleow query:
OracleConnection con = new OracleConnection(ConnStr); con.Open(); OracleCommand cmd = new OracleCommand("Stored_Proc",con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(); .................... ................ OracleDataAdapter oda = new OracleDataAdapter (cmd);
when i am executing a simple query it is takeing 47 sec .... that is only for one table.. other then that remaing table perfromance is good... Help me out... and is there chance to get good perfomance through .net coding..