Web Forms :: Create Worker Thread In Webpage?
Feb 5, 2010
I am developing an asp.net application which provide a UI for user to submit some kind of job.
Behind the scene, i created a thread to sleep around certain mintues and then process the submmitted job. I would like to ask this is right way to create some worker threads to process the jobs? any risk in threading? any other alternative?
currently, i am facing the timeout of asp.net session. For example, the period of sleeping is 25 mins, the thread will not be processed because the asp.net session is timeout in 20 mins.
View 2 Replies
Similar Messages:
Feb 24, 2010
I have a WCF service method that's running in a worker thread I spin from another method. I need to map a relative service app path ("~/Templates/a.template") to the physical path ("D:WebTemplatesa.template"), but I can't use HttpContext.Current.Server.MapPath because HttpContext.Current is null in a worker thread. How else can I reach MapPath method?
View 2 Replies
Jul 30, 2010
I have a ASPX page which queries from a database. Once we have the dataset it is bound to a gridview and displayed on the page. All this happens in the Page_Load event.Ofcourse this a simplistic approach. What is the best way to inform the user that data is being retrieved and when we have the data to update the page with the results in the dataset.I want all this to happen within the same ASPX page and do not want to hop around pages to achieve this. I looked at update panels however it wasn't clear to me how this could be done with an update panel without having a control which triggers the update for the update panel. There are no controls on my page whhich initiate the database query, it occurs as the page is loaded
View 1 Replies
Feb 7, 2011
i upload a file using ftp, and to not get my GUI stuck i use a thread which do the Job.
I want to display in a label control text value the remaining bytes.
how can do this. (i use VS.NET 2005, Web application)
View 1 Replies
Apr 2, 2010
I want to remove checked items from checklistbox (winform control) in class file method which i am calling asynchronously using deletegate. but it showing me this error message:-
Cross-thread operation not valid: Control 'checkedListBox1' accessed from a thread other than the thread it was created on.
i have tried invoke required but again got the same error. Sample code is below:
[code]....
View 1 Replies
Nov 9, 2010
I want to create a web page that will allow user to create a web page. The admin user should be able to give access rights to the controls which the user will place on his web page.
View 3 Replies
Jan 28, 2010
Background:
I have an inherited web application that uses Flash AS2 and PHP 5.x on IIS (Windows 2008 R2) with MySQL. There is a setting for a timeout that does not work - no code was ever written but the client has the radio button to turn it on and off. The setting is saved in the MySQL database.
Requirement:
The timeout should give a pop-up when there is 1 minute to go and then redirect to a new page after the time has expired.
Question:
Is there a way to use a global timer as a standalone application (like a background worker in DotNet) without effecting the existing Flash or PHP code? I can think of several ways to include code in the application but I was needing a way to do it without having to add code to the 400 or so pages of existing code. The solution can use ASP.NET or PHP as both are available on the Server.
View 1 Replies
Aug 27, 2010
I want a example of multithreading .i want to use it in a web form not on console.i am using C#.net .and how to use thread.sleep method for a particular thread.
View 5 Replies
Nov 5, 2010
I want to create a thread in a asp.net mvc application. What will happen?
A) Thread will die when request ends and the response is sent.
B) Thread will continue to run and response will be sent when thread terminates.
C) Thread will run without blocking the response and die when it have completed it's task
View 1 Replies
Jan 27, 2010
How can we debbug a multi-thread program to see local variables of each thread using visual studio 2008.
View 1 Replies
Nov 24, 2010
I'm new to threading and have used it successfully, but limited. I can spawn a thread and have the main thread reference variables in the spawned thread, but I don't know how to allow the spawned thread to reference (and update) variables in the main thread.
Any example threading code I've seen on the web appears to be WAY more complicated than what I do, so I am unable to understand or integrate into my code.
Here is a quick example of how I use threading:
[code].....
View 3 Replies
Jan 10, 2011
I need to call a function everytime a visitor visits one of my website's page. But I do not want the execution of the function to interfere with the interface between the user and the website i.e. different thread. What is the best way to do that on ASP.Net?
View 3 Replies
Mar 24, 2010
I am reading the Asp.net security documentation on msdn.I come across these tow terms and get really confused.
# WindowsIdentity = WindowsIdentity.GetCurrent()
which returns the identity of the security context of the currently executing Win32 thread.
# Thread = Thread.CurrentPrincipal
which returns the principal of the currently executing .NET thread which rides on top of the Win32 thread.
View 1 Replies
Jun 25, 2010
I have a password page and when someone enters an incorrect password I want to simply foil a brute force attack by having
bool isGoodPassword = (password == expected_password);
lock (this)
{
if (!isGoodPassword)
Thread.Sleep(2000);
}
I would expect that this would allow all correct passwords without stalling, but if one user enters a bad password another successful password from a different user would also be blocked. However, the lock doesn't seem to lock across ASP.NET threads.
View 4 Replies
Feb 23, 2010
Using Visual Web Developer 2008 Express Edition, .Net 3.5 Framework, Windows XP
I am trying to create the home page as in the below diagram
MYWEBPAGE
HOME | SUBSECTION TO BE DISPLAYED IN ALL |
ABOUT US | SUBPAGES |
HOBBIES | |
CONTACT US |__________________________________|
Doubt1
Should this be designed in master pages, i.e. to set a content tone for all the other pages
Doubt2
I am unable to subdivide the page i.e. if i entered a hyperlink HOME on the left side then it takes up the whole row and there isnt anything on the left side i.e. visual web developer tools that allows a sub section to be added to a whole page.
View 8 Replies
Jun 1, 2010
I want to create and add a linkButton server control to my web page, How can do i do?How can i set its specific properties?
View 7 Replies
Mar 25, 2011
Is there a way to create a link to an asp.net web page in start menu--->program files? When that link is clicked that page gets opened in the browser.
View 4 Replies
Mar 24, 2011
I need to create dynamic radio buttons in my page, and then access their values in postback
I create the buttons using the following code:
[Code]....
In the post back I try to access the radio buttons using their created ID:
[Code]....
But it seems that the find method is never finding the Radio button control.
View 1 Replies
Oct 24, 2010
If I create a new thread on an ASP.NET page the IsThreadPoolThread property is true.
First question is, is it from ASP.NET pool or CLR pool ?
Second question is, if it is from ASP.NET pool then how to create a thread from CLR and don't use ASP.NET pool ?
View 3 Replies
Jun 16, 2010
Is there a standard way to create unique web page address in ASP.NET? I'm sending surveys to customers and will be including a link to the web page. For example:
http://www.mysurveypages.foo/survey/UniqueID
I would then customize the survey based on who I sent it to. I know it can be done by passing in a unique parameter to a page but I curious about doing it this way.
View 5 Replies
Sep 15, 2010
I wont to create a print preview asp.net web page.
View 2 Replies
Jul 12, 2010
Is it possible to create a sitemap.xml file which is dynamic and is actually created each time it is requested using c#
The obvious thing to do would be to call the file sitemap.aspx and have it return XML, but it has to be called sitemap.xml and look like an XML file (headers etc) to the requester.
View 1 Replies
Oct 27, 2010
I'm trying to create a web page which to be used on a touchscreen monitor and need to do data input for the webpage thru on screen numeric keyboard (on the web page it self). When user touch on the numeric keyboard, find the focus of the textBox. And show the number.
View 5 Replies
Sep 16, 2010
I have spent last couple of days on this subject but no luck :)
I want to achive following using VS2008/C# -
1. create a cab file using existing AciveX/ocx control,
2. use the ActiveX on ASP.NET WebForm.
3. deploy the app and cab file on web server
4. Test/verify that the cab file get downloaded, and IE can use my ActiveX/ocx
I found one nice tutorial on this but it is with VB.Net (not VS2008) -
[URL] (the problem I get with VS2008 - can's see Authenticode Signing check box, or add ActiveX to Toolbox).
View 3 Replies
May 19, 2010
I'm trying to create a webpage that allows the user to click a button and it will open up a folder on their local hard drive. I've tried doing this in html and javascript, but from what I've read I don't think it is possible (reguardless I want to do it in asp.net so I can learn about it). However I was able to open up a folder when the page loads with asp.net using C#. My problem is that I cannot figure out how to get it to run when the user clicks a button or a link. How can I make the C# CodeBehind run when the user clicks a button?
View 17 Replies