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...
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
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...
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>...
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
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...
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?
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...
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...
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
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...
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?
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.