hi all, i created a windows service and build a controller to that service, just as the SQL Server Service Manager if any saw it. Anyway the problem is i want to control the startup mode of the windows service (Automatic, Manual, Disabled), in .Net you can specify this in the Service Installer but after that i didn't find a way to change it. Does anyone know a way to change the startup mode of the Windows Service in .Net? i think that i foud a way to do it in win32, but i need it in .Net... thanks for help
Hercules01
Posts
-
Window Service Startup Mode -
IP Input Custom Controlhi all, does anyone knows where i can find a TextBox that is specialized in inputing the IP address in its format, i saw may controls for that purpose so i guess there are already ones that are created and i don't want to recreate them again. thanks in advance. Hercules
-
any changes (by javascript) turn back after postbacki think that in your code behiend or the .aspx file you are filling the Listboxes each time you postback, try to use IsPostBack to fill the Listbox only the first time and not on each postback like this: if ( !IsPostBack ) { fillListBox ( ) ; } if this didn't work post your code.
-
The "ESC" characteri ment simply writing a string whith this character as the following: string strTest = "This is a Test\e string" ; the '\e' character should represent an ESC but the compiler doesn't recognize this escape character, any way i found another way which is represnting the ESC as the follwoing: string strTest = "This is a Test\u001B string" ; the '\u001B' match the ESC char. actully u can write the following: char chTest = '\u001B' ; which is totally legal.
-
The "ESC" characterhey guys, i need to check a stirng if it contain the "ESC" character i searched for the representation of this char which was '\e' but when i write this char in the C# code it doesn't recognize it, does anyone knows how to do it?
-
Persisting the ViewStatesimply pretty girls won't waste their time on writing such a clever replies
-
Developing a Templated Data-Bound Controlhey all, i read the MSDN article "Developing a Templated Data-Bound Control", the problemis on creating the child controls logic from the ViewState, in the article they create the DataSource from a dummy class that actully has no data!!! i think that they just implemented anything that represent the DataSource that is saved in the ViewState, but in real implementation we have to save the DataSource from the user and reload again in postbacks, is what i am saying true or i'm missing something?!
-
Persisting the ViewStatethx again man ur giving me a gr8 help.
-
Display TreeNodeCollection on a datagridThanks man its working :)
-
Persisting the ViewStatehi all, i'm developing a Data-Bound Control, I was wondering if i have to save the ViewState of the DataSource, i mean what is the danger if i make the server always provide me with the DataSource between PostBacks by saving it in the Session Object so i don't need to send all the Data as a ViewState to the Client Side in each round trip. Does anyone know any drawbacks for this method, maybe like reserving the Server resources or anything, thanks for your help.
-
Display TreeNodeCollection on a datagridGuys, we sure all know that the ASP.Net Datagrid should display any datasource wich implement the IList interface, although the TreeNodeCollection implement the IList interface but when you assign the the ASP.Net Datagrid datasource property to a TreeNodeCollection it accept it but throws an exception on the DataBind method "Object reference not set to an instance of an object" though the TreeNodeCollection is valid and full of TreeNode's, can any one please explain this behavior, i tried to add TreeNode's on different Levels but still it throw an exception. I'm interested in this case because i'm developing a Data-Bound Control which will accept a TreeNodeCollection as its DataSource.
-
problem with hiding an HTML Table's Columnhey man, just wanna tell u to check the tag for the table you add it after the tag like this:
:)
-
Why using DataBind ( )?!!!I’m developing a Data-Bound Web Control and I read all articles about this subject but still I have this problem, I don’t know why do we need the DataBind ( ) function to bind the data to the control, why don’t we do it in the Render function or anywhere else, all what I got from articles that it give the user the ability to specify the time of binding the data to the control but why is that???
-
How can i add an element from JavaScript?sorry for such a silly question, seems that i was in rush for answer without even thinking about it, i forgot all about the document.all, anyway what i need now is to have a deep copy for an existing HTML Table that is rendered so i can perform processing at it then replace it with the HTML Table that i alreadt have in the document, remember what i want is a deep copy not just a reference to the table that i already have... thank alot for being patient.
-
How can i add an element from JavaScript?hi all, lets say that i created a table dynamically on javascript by this command: var DummyTable = document.createElement ( 'table' ) ; how can i insert (render) this element into the document object or lets say other objects like DIV? please write me the command for this.
-
how to add scrollbars to asp.net datagridi have the same problem but i need the scrollbar Horizintally!
-
problem with hiding an HTML Table's Columnit seems a gr8 idea in the begining but when i try it here are the results: 1. the TD doesn't support the "name" attribute, so you can't get the TD's with same name in the getElementByName function as a collection. 2. if you specify the same "id" for the cells of one column and call getElementById this function return the first element with the specified id. anyway thanks for your help and if you hava any suggestions please tell me.
-
Save a state of a Custom Objecteven this one doesn't work, since its not, its from unmanaged code that is wraped to work with managed code, anyway i think its ok if save it in the Session outside the object and whenever the Control need it again i'll give it to it, isn't this the way that the Normal Datagrid works or i'm wrong? i mean don't u have to assign the Dataset to the Datagrid when u want to handle the sorting event or anyother? if that is true then its normal to save my Custom Dataset outside the Control. thanks again
-
Save a state of a Custom Objectthanks for this, i wanted to check if there is another way to save the Custom DataSet, the problem is that my DataSet is comes form unmanaged code, anyway thanks again i'll try some other methodology to do this.
-
Save a state of a Custom Objectthanks for your help, but this way is only available if i want to store the dataset in the page, but what i want is to store it inside the control that i developed, where there is no Session only ViewState and i can't transform my datasource to a strings to save it in the ViewState, thats what i mean: myCustomControl.DataSource = CustomDataSet ; this Custom DataSet has a complex structure and the CustomControl should know how ti fill it self from this Dataset. thats what i mean thanks for any suggestion.:(