RE: VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- From: "Cowboy (Gregory A. Beamer) - MVP" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 06:56:05 -0700
One option is to create your own wrapper and have it take the VB Null and
make it a SQL null. This will allow you to switch to
ConvertEmptyStringToNull() when it is fixed without having a major
application rewrite (change in your wrapper method only).
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Kivak Wolf" wrote:
> Hey,
>
> I have everything working now except for this. I have some fields that
> I am getting data from, then I am sending them to a SQL database. Now
> the empty string and VB.NET null are different than the SQL Null (type:
> "System.DBNull"). So, i need some way of cenverting the values into a
> "System.DBNull" object and then send them to the database. Any ideas?
>
> BTW: The parameter called: "ConvertEmptyStringToNull" does not work.
> Microsoft said there is a bug and it will be fixed for the release
> date.
>
> Thanks,
> Kivak Wolf
>
>
.
- Follow-Ups:
- Re: VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- From: Kivak Wolf
- Re: VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- References:
- VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- From: Kivak Wolf
- VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- Prev by Date: Re: Hidden input not available at prerender? - Nevermind
- Next by Date: Re: basic query on form postback
- Previous by thread: VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- Next by thread: Re: VB.NET Null to SQL Null (ASP.NET 2.0 GridView)
- Index(es):
Relevant Pages
|