C# - What Is The Preferred Method To Manage A Timed Event With A Web Application

Sep 28, 2010

I'm designing an ASP.NET 4.0 Web application where administrators may create an auction with an expiration. The expiration time would be stored in a database. How can I ensure that the auction ends at the predetermined time, considering the fact that an application instance may not be running when it is time? The application will be hosted with IIS7. I am considering Windows service, but I am wondering what other options are out there.

View 3 Replies


Similar Messages:

Preferred Method To Catch Specific OleDB Error?

Jan 4, 2010

- I have a situation in which I must execute a dynamically built stored procedure against tables that may, or may not be in the database. The data retrieved is then shunted to a VB.Net backed ASP based report page. By design, if the tables are not present in the database, the relevant data is automatically hidden on the report page. Currently, I'm doing this by checking for the inevitable error, and hiding the div in the catch block. A bit kludgy, but it worked. I can't include the VB code-behind, but the relevant stored procedure is included below.

However, a problem with this method was recently brought to my attention when, for no apparent reason, the div was being hidden even though the proper data was available. As it turned out, the user trying to select the table in the dynamic SQL call didn't have the proper select permissions, an easy enough fix once I could track it down. So, two fold question. First and foremost - is there a better way to check for a missing table than through catching the error in the VB.Net codebehind? All things considered, I'd rather save the error checking for an actual error. Secondly, is there a preferred method to squirrel out a particular OLE DB error out of the general object caught by the try->catch block other than just checking the actual stack trace string?

SQL Query - The main gist of the code is that, due to the design of the database, I have to determine the name of the actual table being targeted manually. The database records jobs in a single table, but each job also gets its own table for processing data on the items processed in that job, and it's data from those tables I have to retrieve. Absolutely nothing I can do about this setup, unfortunately.

DECLARE @sql NVarChar(Max),
@params NVarChar(Max),
@where NVarChar(Max)
-- Retained for live testing of stored procedure.
-- DECLARE @Table NvarChar(255) SET @Table = N'tblMSGExportMessage_10000'
-- DECLARE @AcctID Integer SET @AcctID = 10000
-- DECLARE @Type Integer SET @Type = 0 -- 0 = Errors only, 1 = All Messages
-- DECLARE @Count Integer
-- Sets our parameters for our two dynamic SQL calls.
SELECT @params = N'@MsgExportAccount INT, @cnt INT OUTPUT'
-- Sets our where clause dependent upon whether we want all results or just errors............................

View 1 Replies

AJAX :: Server Method Timed Out - Calling Webservice From JavaScript

Apr 20, 2010

I get this error "The server method xxx timed out." calling a WebService that internally does a hard query to the database, and takes some time. I use this method to change the webservice timeout, but it does not seems to do anything (the timeout errors appears in less than a second).
MyService.set_timeout(100000);

View 2 Replies

C# - The Request Timed Out Before The Page Could Be Retrieved. Web Application Long Server Processing

Nov 4, 2010

i have a web application which which proccesses some request on some data that client selects, when the client selects more than 20 objects and clicks on proceed the client recieves this error, because the server takes a long time to process, however if the records are less and hence a timely response is recieved, no such error comes?

i have increased the sessiontimeout as well as set the

View 1 Replies

Security :: Manage The Redirect By The Application?

Jan 12, 2010

I have a problem....if one user try to go to a page where he isn't autorized, the application rediredt he at the login page...

how I can redirect in an other page, where i write "Access denied"??

View 2 Replies

How To Manage Role And Its Permission In Application

Apr 29, 2010

i like to design a asp.net application(app1) where we can create role and actions. here action is such as create student details and delete student details... this both actions comes underneath to a role1.. so, the application will have some roles with set of actions. This roles and action will be used later in another applications(app2 and app3).

i have designed app1 with single sign on for all the application(app2,app3). when a user enter into app2, he/she will be redirected login page which resides in app1. There user validation will take place. once validated, authentication ticket will be send back to requested application(app2).

Once app2 receive the ticket, it will make another request app1 to get the roles and action belongs to singed user. the app2 should behave based the actions belongs to role.

*A user can have more roles.

how to control the user activities based on the actions?

Is there any framework to achieve this model?

View 2 Replies

How To Create And Manage A Multi-tenant MVC Application

Apr 7, 2010

I want to create a multi-tenant application that uses the hostname to determine the customer.

For example:

CustomerOne.myapp.com
AnotherCo.myapp.com
AndOneMore.myapp.com

I can do the database and security side with no problems, I can also get the hostname from the URL, but what I am struggling to find out is how to create the basic plumbing that would allow a new customer to sign up online, provide their company name, and for the application to create the new URL, ready to be used straight away.

View 1 Replies

State Management :: Best Way To Manage Session In An Application Which Has 100 Pages?

Aug 11, 2010

We have used Session heavily in our application, we have created core classes (which have many properties) and store objects of core class in the session.

1) What could be the best solution for reflector activity?

2) What could be the best way to manage session in an application which has 100 pages?

View 9 Replies

Security :: Regain Access To Manage Users And Roles For This Application?

Sep 23, 2010

I am working on an application that resides on a development server on our internal network. The application was originally written to use Membership and Roles. We got busy almost a year ago before the app was finished, and now we are trying to get it ready to use internally.

The login page works just fine, but I have lost the ability to controls users and roles. I am running Visual Studio 2010 Professional now on a Windows 7 VM. I can open the application fine but there is no Web Administration Tool available for me to manage users or roles. If I go to Website -> in Visual Studio, there is no option for ASP.NET Configuration in the drop down menu. It simply isn't there.

How can I regain access to manage users and roles for this application? We are using Forms authentication and the database resides on a SQL Server 2005 instance on a separate box from the web server and my local VM.

View 1 Replies

Web Forms :: Adding Controls To Master Page To Manage Application Testing?

Aug 31, 2010

I have Web Application which uses the Logged In User (Authenticated User) to query his Profile Data from Adabas/Unix using OLEDB. The application provides the user with about 21 different pages (Basic Info, Employment Info, Education, Dependants, Financial Info ...).

The web application has a master page, and each profile data page is based on a User Control loaded in the Child ASPX Page.

The Data Layer of this Web Application will have to undergo major modification, since we are migrating our legacy applications from Adabas/Unix to SAP, the development Team has prepared web services to query for the same Profile Data from SAP using Web Services. Now, we have to modify the web application to consume the web services instead of using OLEDB to query Adabas.

Since we are in the testing phase, and we have only very limited data in SAP, I have to provide temporary control to allow test query the Staff Profile for a Specified User (instead of the Authenticated User) and to select the Source:

1. SAP, or

2. Adabas.


So I am thinking to add the following "Control Section" in the Master Page:

[Code]....

See image below to clarify:

[URL]

Becuase the users defined in SAP are based on Dummy Data, so we want to allow the user to Enter the required SAP User, and he will select "SAP" from the Drop-Down-List. In this case, the program will query for Staff Profile Data from SAP for the specified "Staff ID" (txtSAPStaffID) instead of the Authenticated User. But, if "Adabas" is selected for the "ddlDataSource" then, it will default to the Authenticated User.

I noticed that when I am following the above technique, if I press "Go", the Staff Profile Data Page is disappeared, and when I navigate from page to another, the selection on the values entered in the "Control Section" in the master page are reset to default value, ie, the last values are not maintained.

Questions:

1. What is your feedback on the method I followed above ? Any other recommendations? I need very simple method.

2. Why the data page (the child page of the master page) is cleared (disappears) when I press the Go button ?

3. How to maintain the values selected when I navigate from one page to another ?

View 3 Replies

Make Specific Changes To MVC Preferred

Jan 24, 2010

I'm planning to set up an online store for a friend, unfortunately his product line introduces some demands most out-of-the-box solutions don't fit. I'm hoping somebody here has had some experiences with an open source package that they can recommend. The specific issue is that the products are going to number in the hundreds of thousands. Since the type of products have a lot of clearly defined specifics, searching and sorting can be (and needs to be) very granular and efficient. For this reason, the primary requirement is that I replace the product and search-related parts of the app, but only those parts. I'm hoping that there's an ecommerce solution with the product segment abstracted so that I can change the database tables, product display code, search code, and create the obvious code to interact with the database.

I'd prefer something that's built on ASP.Net MVC since it'll play nicely with some extensions I am considering for the future but I'd consider WebForms. I'd also like it to be something that functions on GoDaddy's Hosting, though I'm not optimistic, I just got the account before I discovered how terrible of an ASP.Net web host they are. And finally I need something that's reasonably mature as I don't have time up front to deal with a system that hasn't been tested, and the majority of issues worked through already.

View 2 Replies

Configuration :: How To Set Preferred Domain(www. Or Non Www.) In Web.config

Mar 19, 2011

I want to stop search engines showing the non www. url in search results. I found the following code, will it do what I want?

[Code]....

View 5 Replies

Data Controls :: Why GridView Is Preferred Over Crystal Reports For Reporting

Dec 12, 2012

Why we are mostly use gridview not prefer crystal report for displaying report.

View 1 Replies

State Management :: Unable To Create A Persistent Cookie To Store A Preferred Language On Website

Feb 10, 2011

I try to create a persistent cookie to store a preferred language on our website, but it doesn't work.

So, to isolate the problem, I created a new website, with a blank page and with the code behind bellow. If I click the button, the page post back and I get this:

"Cookies expires: 0001-01-01 00:00:00 value: 10"

[Code]....

View 5 Replies

C# - Raise An Event Once When Reach End Of Method?

Jul 1, 2010

How to raise combobox_SelectedIndexChanged(object sender, EventArgs e) programmatically? Lets say i have method called ClearFields(). I want to call the event before i hit the end of Clearfields() method.

View 4 Replies

Attaching Method To Class Event?

Feb 24, 2011

I have developed a web application which contains 50 pages & now i want to call a method on each page_load.So,Is there any way i can attach my method to existing class Event. So whenever that event gets raised my method will be called.

example : Can i attach mymethd() to page_load event of page class so whenever any page will load my mymethod() will be called. I dont want to inherit the page class.

View 3 Replies

How To Raise An Event In .net Application From A Silverlight Application

Oct 9, 2010

I have a Silverlight application hosted inside an asp.net website. In my silverlight applicaiton, if I select a theme. Then, theme changes will gets fired. I want to get notified in asp.net web page, when the theme changed event is fired inside the silverlight application. Note: Also, I don't want to use a data base to maintain the state of the application.

View 1 Replies

JQuery :: Textbox Change Event Method

Mar 2, 2011

i have a text box with textchanged event and autopostback=true and textchanged event which takes user to other page with textbox's chanegd value.i have applied a jquery to the textbox. when i start entering alphabets, a listofitems is show.eg:if i type the, I GET HTE HOTEL,THE MALL,THE BEACHs soon as i click on any thing(say THE HOTEL), asp.net takes me to the otherpage with only THE as text. and not THE HOTELthis is happening as the event is raised when i click on a choice which is as good as i am clicking outside of textbox. thus the asp.net working is fine.

View 3 Replies

Rss Feed Operation Timed Out?

Jan 15, 2010

I am trying to load the digg favorites rss items. But getting error as operation timed out.Please let me know if anyone have solved this issue before.

Public Shared Function HasRssItems() As Boolean
Dim doc As New XmlDocument
doc.Load("http://digg.com/users/Lovelezz/history/favorites.rss")
Return doc.SelectNodes("rss/channel/item").Count > 0
End Function

View 1 Replies

How To Run A Process On A Timed Interval

Apr 19, 2010

In an ASP.NET website, how would I run a process, such as send an email, on a timed interval?

Lets say send myself an email every 4 hours. And assume there is no activity at all on the website during that period.

The only way I can think of doin it is open a web page on the site and have it refresh at a timed interval that is less than the server time out setting. When the page refreshes check to see if it is time to send the email, if so send it.

View 1 Replies

MVC :: How To Create Session Timed Out

Nov 7, 2010

i have two pages a1.aspx a2.aspx....

if i do nothing in a1.aspx for 1minute...it should redirect me to a2.aspx...how to do this in mvc...or javascript

View 6 Replies

Checking If Session Has Timed Out?

Aug 6, 2010

This is my base class for all pages except EndSession.aspx

override protected void OnInit(EventArgs e) {
base.OnInit(e);
if (Context.Session != null)
{
//check the IsNewSession value, this will tell us if the session has been reset.

[Code]....

But on EndSession I try to navigate back to, say default.aspx, and then this code above just redirects be back to EndSession.aspx.

So for better clarification:

Step 1: Go to mypage.aspx
Step 2: Wait for timeout
Step 3: try to navigate away
Step 4: get redirected to EndSession.aspx
Step 5: try to navigate away
Step 6: GoTo set 4
Setp 6 should be actually being able to navigate away...

View 1 Replies

SQL Server :: The Connection Has Timed Out?

Dec 21, 2010

I have deployed my .NET application on IIS and Iam facing the Same Problem " the connection has timed out and the server is taking too long to respond" My OS is Windows XP and IIS 5.1.

View 1 Replies

C# - Setting LinkButton's OnClick Event To Method In Codebehind

Oct 28, 2010

I'm constructing a LinkButton from my codebehind, and I need to assign the onclick to a method, and pass a parameter with it too. I have this so far:

LinkButton lnkdel = new LinkButton();
lnkdel.Text = "Delete";
protected void delline(string id)

View 2 Replies

Visual Studio :: Shortcut For Inserting Event Name/method?

Jun 17, 2010

There is no way I'm the only one who thinks that I'm missing such a shortcut in Visual Studio.In the markup (aspx) I begin writing the event name "On..." then choose the event I need. What I'm looking for now is functionality for auto-inserting the event name and the delegate method in the codebehined exactly as it's done from the Design view.It's a simple and very helpful functionality that's obviously missing - or I havn't been able to localize it yet.Does any one know if it can be done in VS? Maybe using ReSharper?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved