Thanks, Dan.
I've chosen to get rid of the thousand-separator and replace the decimal point/comma with a point, using the replace function. So that "150.000,00" becomes "150000.00".
parseFloat handles this correctly and it solves my problem, albeit not very satisfactory or elegantly.
I'm...
Hi,
I need to parse a float from a textbox that may be formatted like "150000" or like "150.000,00"--Dutch Locale.
If I use parseFloat on "150.000,00" what I get is 150. What I need is 150000. Using Locale in parsing would be good, but parseFloat doesn't take Locale as a parameter.
Does...
The problem was, indeed, a css style that put a 5px margin around all pictures, hidden away somewhere in a css file. Thanks everyone for their effort.
Hokkie
Thanks everyone, I will try and sort out the css. It's a legacy application that has half a dozen css files but I guess I was looking for ways to avoid having to plow through all of them...
Hokkie
Hi,
I have a asp:image control in one of my user controls and it loads a source depending on the page it is on. The image control is in a table cell, in a single-row table that has its width set to 950. The source of the image control is also always 950 pixels wide.
Whatever I try, asp.net...
Uhm... never mind. Went a little overboard with commenting out old code, including a Main method in my startup project. (-:
Thanks for your time, anyway.
Hokke
Hi,
My Windows application has a startup object defined in the properties of its project. This startup object has a public constructor that has a simple singleton implementation. The application has been running fine for almost a year.
Right now I'm in the middle of changing database-access...
Hi,
In the ItemDataBound event of my datagrid, I want to change the text on the select ButtonColumn for some rows, depending on the value of some of the cells in that row. The text I want to put on the ButtonColumn is not always the same and also depends on those same values; basically it will...
What's the code behind the delete button? If the row is deleted from a DataSet, is the database updated with those changes? Do adding and editing a row work?
Right-click your desktop --> Properties;
Choose 'Appearance', then click 'Effects' button;
Last checkbox reads 'Hide underlined letters for keyboard navigation until I press the Alt key'.
Just the perfect place where one would look for it.
But I never noticed that when run from VS Studio the...
You do need to specify which table you add a row to, like objDataSet.Tables[0].Add(objRow);
also, don't forget to call the AcceptChanges method of the dataset, like objDataSet.AcceptChanges(); But I'm not sure if this is required to propagate the changes (added rows etc.) to the dataAdapter...
Hi Malay,
no I didn't but I have now. Thanks for the link. The article is about connection to MySql using PHP scripting language rather than through C# code, so not directly helpful but at least it got me thinking about using php scripting as well.
Anyway, I think I'll experiment a little more...
Hi,
I need to connect to a mysql database with the mysql connector from mysql.com. My webserver admin has given me a logon name and password to connect to the database, and for some reason there's a period in the logon name:
"hoorspelfabriek.nl"
When I try to connect, I get the error message...
I tried Chip's suggestion but it gave me a invalid sequence character error. I'll look into using escape sequences later. For now, here's the connection string I use (this was generated by VS2003):
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking...
Hi,
I have a connectionstring in my configfile which points to a local (Access) database. When I initialize my connection, I read the string from the config file. This works fine.
However, I want to change the data source to a database that's in the application folder. I thought I'd do this by...
The error handling is done with Try... Catch... End Try blocks. These blocks can encompass an entire procedure, but also smaller bits of code.
Here's how it looks. This will throw an exception ("raise an error" in VB6 dialect) should aValue2 be zero. This exception is caught by the Catch block...
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.