Hello,
10 mins passed and we are still receiving info only...end event was not received.
Hence when now I write the file it will be start-info-info and again i wait for another 10 mins....if now again I dont receive an end event...if will write a file with info-info-info only and again wait another 10 mins.
Do basically its like waiting for end event or 10 min whichever occurs first.
Th...
User Profile
Collapse
-
Threading help
Here is my scenario,
Events are occuring as follows
.....START---info--info---info---END.....START---info--info---info---END.....START---info--info---info---END and so on
Files are written out based on, end event occurance or 10 mins time out.
i.e
information gathered from start till end must be written in one file
or
If 10 mins elasped and... -
Trying to restart a Windows 2003 server system
Hello,
I am using the following code to restart a Windows 2003 server system locally
1) I am setting the appropriate priviledge for the process by calling the SetCurrentProce ssPrivileges with SE_PRIVILEGE_EN ABLED flag.
2) Doing a shutdown by,
::InitiateSyste mShutdown(
(LPTSTR) NULL, // pointer to name of computer to shut down
... -
Performance Counter is Disabled so the requested operation cannot be performed
Hello,
The application I am using works on most machines except one where in it throws the following exception...
Error:
Process Performance Counter is Disabled, so requested operation cannot be performed.
Stack Trace:
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib library)
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String machineName,... -
JSha started a topic Process Performance Counter is Disabled, so requested operation cannot be performed.in WindowsProcess Performance Counter is Disabled, so requested operation cannot be performed.
Hello,
The application I am using works on most machines except one where in it throws the following exception...
Error:
Process Performance Counter is Disabled, so requested operation cannot be performed.
Stack Trace:
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib library)
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String machineName,... -
.Net webservice or remoting?
My application (running on one server) needs to keep sending its status to the main server which keeps a log of the progress.....ho w do I implement this?....
Do I use webservices or remoting? or is there an another way...
I have used webservices and I think it will be too tedious to use webservices for just sending status....I have not used .net remoting...any suggestions?
-Thanks,
JSha -
How to refesh Parent window when pop up window is closed
How do you close a pop up window and refresh the parent window....
Thanks,
JSha -
Cannot set the title of the popup window page (show modal dialog used to open)
I have button which when clicked does a popup window which is opened using showmodaldialog (xyz.aspx, dialogarguments )...
the xyz.aspx page has the title set as....
<title> ABCD </title>
now when is button is clicked..the window does pop up but the title bar is not set as ABCD but as "-Web Page Dialog"
Can anyone let me know how to set it as "ABCD -Web Page Dialog"... -
Cannot set the title of the popup window page (show modal dialog used to open)
I have button which when clicked does a popup window which is opened using showmodaldialog (xyz.aspx, dialogarguments )...
the xyz.aspx page has the title set as....
<title> ABCD </title>
now when is button is clicked..the window does pop up but the title bar is not set as ABCD but as "-Web Page Dialog"
Can anyone let me know how to set it as "ABCD -Web Page Dialog"... -
Hello,
Check this page out and the code out...
http://www.javascripte r.net/faq/openinga.htm
so...something like...
window.open(url ,name, features)
var url = "url?param1=sam ple¶m2=samp l23¶m3=samp le3";
var name = "windowName ";
var features = "toolbars=no,et c.";
window.open(url ,name, features);
example...
...Leave a comment:
-
Set the title frame in the pop up page
Hello All,
I have a popup page which opens by doing a showmodaldailog ()..
I cannot set the title bar of this page...even when I have set it in the html page....
All the title bar show is " -- Web Page Dialog"
Can anyone help me with this?
Thanks,
JSha -
Hello,
To delete one row at a time...you will have to add a template column which has a delete link button to it....
then recognize that the link button is clicked by using itemcommand event and then doign a small script to delete the row....
have a look at
http://msdn2.microsoft.com/en-us/lib...id_events.aspx
it describes a list of datagrid events.......Leave a comment:
-
Hello ,
See if this works....
Got a dropdownlist box......values are same as the text....i.e urls.....
added even to the dropdownlist... .. Select_Changed
when event gets triggered....op en a window...
so..
private void Select_Changed( object sender, System.EventArg s e)
{
System.Text.Str ingBuilder sb = new System.Text.Str ingBuilder();...Leave a comment:
-
Using a Windows Form control in a WebForm
Hello All,
I need to use the datetimepicker control of a winform in a webform.....
I went through the following sites...and tried it but they did not work...
http://aspnet.4guysfro mrolla.com/articles/052604-1.aspx
http://www.c-sharpcorner.com/UploadFile/dsandor/ActiveXInNet111 02005040748AM/ActiveXInNet.as px
Has anyone done this before or guide me on how to do it...
Appreciate any... -
Hello,
I have used the following, [C#]
defined EndTime and StartTime as datetimes...
TimeSpan interval = EndTime.Subtrac t(StartTime);
then do,
interval.TotalD ays which will return days...which you can then compare with 28
Hope this helps....
-JSha...Leave a comment:
-
Here you go...
intHour = System.Convert. ToInt32(this.Ho urList.Selected Value);
intMinute = System.Convert. ToInt32(this.Mi nList.SelectedV alue);
if(this.EndList .SelectedValue= ="PM")
{....do stuff...
}
else{ ..do..stuff...}
cal_date = new DateTime(intYea r, intMonth, intDay, intHour, intMinute, 0)
Thats all i have in my code to basiclly get the date. I pass the nessecary...Leave a comment:
-
Listbox Help!
Hello All,
I wanted to creat a datetime picker for a webform similar to one in windows form. The best I could come up with was a popup calender with 3 list boxes for HH-MM-AM/PM. The thing is that all works fine...but its not very user friendly...
I want to add a functionality where when the user scrolls thru the listbox, the item which is currently being displayed should be automatically selected. As of now I have to click...
No activity results to display
Show More
Leave a comment: