Web Forms :: Checking Windows App Stat From Web Page
Jul 7, 2010
I have written a windows based executable that runs certain scheduled tasks that user enters using a web site.Everything is working as they should, but recently users started complaining that when they schedule a task, it did not run at all.What I have found out was that sometimes the executable gets closed (some users close it accidently).
So I decided to show the scheduler status on the web page and I did the following:
Created a control table (table with one record) in my SQL database with a column called timestamp.
In my Windows application I have a timer that runs every 30 seconds. And I update the timestamp field with the current date and time.And in my web page I check to see the timedifference is <=2 (2 mineutes) with current date. This way I will know the scheduler status.
I am not sure whether this is a good method or not, because of those database calls every 30 seconds.
Could some one shed some light on this? Are they any better ways of doing this?
View 4 Replies
Similar Messages:
Nov 1, 2010
I have found plenty of examples where the checkboxes to be checked are within a datalist, gridview or other datacontrol like that.. but i dont have that setup..
I have individual checkboxes within my page and need to provide a way to check or uncheck them all..
I cant use a checkboxlist because of the layout of the page.. so not sure if it would be easiest with javascript or do it with the checked event for the single check box that will be used..
I know that may not be the best or cleanest way, but is there a better way?
Reason i cant use a checkboxlist for the larger set of checkboxes, is that a few of them will have additional fields that need to be completed if they chose certain checkboxes.. so i have those controls next to the checkbox that they belong with..
View 2 Replies
Oct 13, 2010
In Global I have the following code that redirects the page to use HTTPS. I also have a SPROC that adds a record when a user visits a page. When a user visits a page, the SPROC is adding a record for the HTTP and then another record using the HTTPS. I'm not sure how to handle just adding one record. Is there something to add to the SPROC that will delete one of the records or should I do a code behind on an aspx page that executes the SPROC "IF" the page starts with HTTPS? HOw would I set up the condition to check for the HTTPS?
[Code]....
View 1 Replies
Jan 27, 2011
checking for null on aspx page
[Code]....
View 4 Replies
Oct 22, 2010
I have a checkboxlist (cblTeamMates) with a sqldatasource (sqlTeamMates) that has 3 columns (ID, FullName and Status ). The datavaluefield and datatextfield for cblTeamMates is "FullName" and the 2 status values possible are "Available" and "Absent". How do I go about, in the page load event, checking all the names (FullName) whose Status is "Available"?
View 3 Replies
Aug 5, 2010
I'm looking for some code to do a page rank check on a given domain provided I pass it a URL string in ASP.net. I have been unable to find anything and I have been searching for days.
View 2 Replies
Jan 18, 2011
I want to write an ASP page which will accept a set of parameters (lets call it Page A), and will then launch other ASP pages, feeding parameters to those pages as required (call these Page B and Page C).What I want to do though is make sure that Page A will only launch Page B if Page B isn't already open. I also want to perform the same check before Page A launches Page C.Is there an easy way to do this using ASP?
View 4 Replies
Oct 19, 2010
I have an ASP.NET page which contains a large number of gridviews, which contain masses amount of data which take a fair while to rebind. I currently have it set so the gridviews are only bound when the account number is changed (on the page, the user searches for an account which then displays their information). I'd like it to be able to monitor a database table (hashing it maybe?) every few minutes, then if there are changes spawn a popup box informing them, and an option to have the gridviews refreshed. Firstly, is this possible in ASP.NET/C#? Secondly, what would the performance impact be on the page checking the hash/checking for changes in a large DB table?
View 2 Replies
Feb 8, 2010
in aspx file i have two simple controls
[Code]....
Then in Code behind file i wrote this
[Code]....
When i check whether page is posted back or not with this method , by clicking the button
if(Page.IsPostBack)
{
..
}
then web form does not respond any more ..and when not using this condition ajax is working fine.
View 1 Replies
Sep 22, 2010
I have a page that inserts a record to an sql database and I would like to do the following:
(i) Check if a record already exist before trying do an insert
(ii) If a record exist, the page should be able to inform/display a message in a textbox informing the user that the record already exist.
I have seen a number of post on the internet that suggest that one possible solution is to write a sproc and use the T-sql IF EXIST function. However, I have NOT seen a complete code showing (a) how this can be done (b) how to call the sproc from an asp page (c) and MORE IMPORTANTLY how to display a message informing a user that a record already exist i.e. when the record already exist in the database.
View 8 Replies
Dec 30, 2010
Is there any way to use a custom Login Page (Not Windows Login Box) for Windows Authentication of SharePoint publishing sites?
View 2 Replies
May 19, 2010
I've recently found out that the MessageBox from Windows.Forms can be used in a web page, but there's a problem when showing it, it's not modal. Is there a way to make it modal?
View 1 Replies
Dec 19, 2011
Im trying to embed a windows form out of a .dll into an aspx page.
Code:
<object id="mytest" classid="ASPXCLASS.dll#ASPXClASS.FORM1" height="400PX" width="400PX" VIEWASTEXT ></object>
All that I get is a blank area where the form should appear - obviously I missing something completely..
View 7 Replies
Mar 21, 2011
the possible options to get the dynamic web pages. Existing application: We have windows application to desing the "Screen designer templates". The end user uses this application to make his own screen templates, save the information in xml and get the screen in run time. This works fine for windows based application. Current Problem: Its difficult to provide such screen designer application in web. I mean Drag & drop the controls in web page during the run time. So we are planning to use windows application to design the template. And during the run time user should get his own designed template on web page. We are trying to display the similar web form like as windows form with matching controls. let me know what are the options available to solve this problem.
View 4 Replies
Jul 14, 2010
I have a windows form control which is hosted inside an Asp.Net page.
Is there a way to pass value from this control back to the Asp.Net page. I have tried using
"document.forms[0].UserControl1.publicProperty" where publicProperty is a publicly defined property in the control but it is giving undefined.
[code]....
View 1 Replies
Apr 13, 2010
My Windows Form Control is working fine when hosted on Windows Form.It is also working fine on .html host if I use only a TextBox and a Button in that control. But when I add a third control i.e. WebBrowser Windows Form control then .html page is not displaying the control at all.Later I remove the WebBrowser Windows Form control to go to previous state and even then .html page is not displaying the control as it was displaying a TextBox and a Button control before.I delete browser history but no use. I am using the following line in my html page.
<body>
<object
id="WindowsFormsControlLibrary1"
[code]...
View 6 Replies
Dec 23, 2010
is it possible to hide windows taskbar during page load of an aspx page?
View 3 Replies
Mar 1, 2010
Got a windows forms user control dll embedded in an asp page using the html form control object tag as it needs to run client side. The windows form control does something and then needs to redirect to a another aspx page passing a parameter obtained from a calculation in the windows form contro dll. Is the redirect possible from the windows form control (same session id needs to be used) since obviously you can't call response.redirect since its not part of the server side wep page.
View 3 Replies
Jun 10, 2010
I have the windows form user control with the name usercontrol.cs .. I want to display this usercontrol.cs in aspx page..I tried the below code..but it produced error.. how to resolve my proplem...thx
Control MyUserControl;
MyUserControl = LoadControl("usercontrol.cs");
MyPlaceHolder.Controls.Add(MyUserControl);
View 3 Replies
Mar 2, 2011
I want to create a download link for my Windows Forms application. I know you can do that using ClickOnce but I don't want a ClickOnce app so a added a setup project to my application that I just got to work the way I want so now I want to make it downloadable from my website. Should a I a web service or a WCF Service to do this or something else and what else should I do?
View 4 Replies
Mar 4, 2010
I am working towards porting a windows application to web. The windows application is quite rich w.r.t. the form controls, complex validations and user interactivity.Basic web forms are inadequate to meet these complexities. So I would like to know the best way to still have the richness on the web pages. I have some ideas and would like comments.
Use DHTML & Java Script to mimic complex controls. There are some macro controls available as part of jQueryUI that can be used and some other third party Java Script controls. I'd like suggestions if there is a recommended control library.Use RIA (preferably Silverlight) wherever rich controls are needed. I'd like to keep this as a last option because it mandates the Silverlight plug-in.What are other popular / preferred strategies?
View 4 Replies
Mar 10, 2010
i have a on my project a web forum for new users to register and another forum for registerd users to update there details my question is how do i check when the update or the new user insert occurs
if the mail address they use is not alredy used by another user ?
View 4 Replies
Jun 1, 2010
I am creating a DropDownList at runtime.How do I check if a particular value exists (code snippets in VB please)?
View 2 Replies
Feb 2, 2011
I have a class called 'Tutorial'. At the top of my page I declare the object as below: [Code]....
The last thing I have is an Add and Save button and what I would like to achieve is add/update the record based on if it exists or not. To do this I would like to check the state of the tutorial object to see if it has been loaded and use its id without needing to put it on the page for reference later.
Will the tutorial object still contain values after postback and how can I check if its been declared?
View 5 Replies
Oct 30, 2010
In my application, if I do not input the value into the textfield, it will show error message: "The value '' is invalid."
However, is it possible to check one more thing: the length of the textfield? For example, it will show the error message if I input more than 10 chars? And is it possible to change the message "The value '' is invalid." to "Missing Value"?
View 3 Replies