I have a web page with 3 date fields. One is required, the other 2 are optional.
These will be written to a database once the user clicks save.
Should I use the in-built customvalidator method? What about spaces?
Should I write a separate validator for dates using the dreaded REGEX?
Can I validate them all using FindControl in a ForEach loop (the id's all begin 'dt****')?
Use the custom validator - there's a method on the DateTime class called TryParse. This is a great way to check to see if the date is valid. Also, use a required validator on the date that is required.
I have a application which creates a message queue and then recieves the message in it.when i create a test application it was working fine,now when i change this to a webservice its showing me an error which i logged in log file ,the error is as following queue doesnt exists or you do not have permission to perform the operation.Is it anything related with rights.
Actually the queue need to be created programmatically but it also not working.so i created it manually but also above error comes..why is it coming
I'm writing an intranet application using ASP.NET 2.0 and C#, and I have long gridviews (lots of rows, and the users don't want paging), but many users asked me to have a feature like "Freeze panes" in Excel : do you know a method to have the first row (table header) keep on top of the page (and top of the window) while scrolling in the page ?
I don't knot know if it is possible .
I want to get the output of a program from a command window into a textbox\Rich textbox.
When compiling in Visual Studio 6 using a command line option (no GUI) i get redirect the output into a text file .
1) Is it possible to get that input into a textbox?
2) If not how to display the ongoing progresses from the file?
I'd highly recommend getting used to the MSDN as its very handy for checking out classes. If your using Visual Studio the intellisense can be invaluable as it can be used to see everything accessable on an object and provides comments.
i did this a while ago but lost everything on my comp and now cant remember how I did it. I remember it was fairly simple but I cant for the life of me remember what or how I did it.
Basically I want to get the colour of the pixel under my mouse pointer. I've loaded the image into the picturebox (picLayout) and have the mouseevent being handled I just can't remember how to get the colour of the pixel.
and it just crashes it, any thoughts (apologies ofr my dimwittedness - brain just isn't functioning atm)
also i was thinking about having this as a mouseover event, if its creating bitmaps on every mousemove event wont it just explode ? I wish I could remember what I did before, it was fairly simple and something along the line imgName.R.ToString();
i should have used picLayout.Image rather than picLayout.BackgroundImage.
it was throwing an unhandled exception (which confused me as tried to catch it but it was happening before it got to my try/catch) over the lack of background image in the picturebox.
thanks, all working now, but it would be nice to be able to do this as a mouseover event rather than just mousedown. I just tried it as mouseover event and the cpu load kinda went a bit mad. Any thoughts ?
when i did it before it was fairly simple and something along the line imgName.R.ToString();
just to pick your brains a little further.....it would be nice to be able to do this as a mouseover event rather than just mousedown. I just tried it as mouseover event and the cpu load kinda went a bit mad.
when i did it before it was fairly simple and something along the lines of imgName.R.ToString(); or something like that. is that something you've heard of ? I can access the RGB values for the background but obviously thats not much use (as its just grey) but it wont let do the same for the Image.