Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sroberts82

    Loop by bit shift

    Hi I want to do a for loop by bit shift, so I loop through 0,1,2,4,8 etc... 0,1,10,100,1000 etc So I did this: for(int i =0x1; i<100; i = i<<1) { //do stuff } Thats fine, but it leaves out zero. I can't start at zero cos a bit shift on zero is zero. I was thinking if I cut off the least...
  2. sroberts82

    Hosting

    Hi, Can someone recommend a hosting solution for me please? I need PHP, MySQL, a wiki, a CVS (or other version control) server. Thanks, Ste
  3. sroberts82

    Debug

    Ok, I'm really not sure if this in the right place but can someone tell me the difference between run mode debug and stop mode debug? Thanks,
  4. sroberts82

    Customise log output level

    Hi, When I output my log4j logs, I prepend the statement with WARN ERROR INFO etc. Is there anyway I can customise this text? You see our build system searches for ERROR and WARNING (its mainly C++ stuff) so instead of WARN I want WARNING. Is this possible? Thanks
  5. sroberts82

    Jar libraries

    Thank you very much Tim, thats exactly what I was looking for. Maybe my searching skills need as much work as my jar skills :-)
  6. sroberts82

    Jar libraries

    Hi, I have my jar file created with the main class specified. That works fine but it fails to find associated libraries which I have included in a lib folder in the jar. So my questions is how do I specify on the command line the classpath to look at dirs inside the jar. When I say to look at...
  7. sroberts82

    XML Validation on attributes

    Hi, Im currently looking at using XML Schemas to validate my code. Here is my problem. I want to validate by attribute so that if attribute is x i have 1 child element otherwise i have 2: <element att="x"> <cap>a</cap> <cap>b</cap> </element> <element att="y"> <cap>a</cap>...
  8. sroberts82

    Multiple elements in DTD

    Hi, I have an XML doc i want to write a DTD for. I have element a and he can have 0 to 4 children of element b. How do i write this in a DTD? I know ? mean (0,1), + means (1,infinity) and * means (0, infinity) is there something I am missing? Thanks, Ste
  9. sroberts82

    Stored Procedures

    Hi, I have a stored procedure and it looks like the following ALTER PROCEDURE USP_NCUInsertContentCodeTest @var1 int, @var2 int etc AS DECLARE @RC int //Do stuff RETURN @RC I know how to execute the procedure in c# but I cant figure out how to get the return value. I know if I declared the...
  10. sroberts82

    dropdownlist and button

    I think the problem is that when the submit button posts back its all fine, the this.submit() means something, but when the dropdownlist posts back it doesnt understand the this.submit. But how to get around it?
  11. sroberts82

    dropdownlist and button

    Dropdown list: <asp:TableRow> <asp:TableCell><asp:DropDownList ID="gameGroup" runat="server" Width="204px" OnSelectedIndexChanged="gameGroupSelectionChange" AutoPostBack="true"></asp:DropDownList></asp:TableCell> </asp:TableRow> protected void...
  12. sroberts82

    dropdownlist and button

    Hi, I have a form with a dropdownlist on it. I have an eventhandler for OnSelectedIndexChanged which works grand. The problem arises when I try to add a submit button. Form appears fine first time, but when I attempt to change the selected item in dropdownlist, and error comes about saying...
  13. sroberts82

    asp repeater

    Hi, thanks for your response. I tried that, but the following is happening. I have onClick =eventHandler and in this method, I set the session["variable"] = whatever; This session is not available on the next page though. I tried to specify the postbackurl parameter and it didnt even call the...
  14. sroberts82

    asp repeater

    Thanks, how can i pass my variable through to this event?
  15. sroberts82

    asp repeater

    Hi I have an Asp repeater on my form filled from a website. Basically each member is a href. What I want to do is depending which is selected I wish to set a session variable say x, to be some value, dependant on the selection. Any ideas? Thank you in advance Stephen
  16. sroberts82

    check boxes

    nice one, that was the problem, the post back. Cheers
  17. sroberts82

    check boxes

    Hi I have a checkbox on my form and everything works grand. Except I want it to appear checked when I load the page. I was doing this: box.Checked = true; and it came up as being checked alright, but when I tried to check it off and submit the form, it still returns true. Whats the rumpus here...
  18. sroberts82

    HtmlInputFile

    Ok, well what Im actually trying to do is get the user to submit a bunch of files, validate them, and if say 1 out of 5 is wrong i want to go back to the form and have the 4 correct ones still say whatever they did before so user will only have to change the wrong one. Can this be done?
  19. sroberts82

    HtmlInputFile

    Does anyone know when using htmlInputFiles how the textbox part (for want of a better word!) can be set to a certain value, a default say
  20. sroberts82

    Console

    Hi, I was wondering where does console.write write to? I dont want to be using Repsonse.writes for debugging. I cant see the console output anywhere in VS. Is there an equivalent of catalina.out as in java maybe?

Part and Inventory Search

Back
Top