Ask a Question related to ASP.NET General, Design and Development.
-
Jay Balapa #1
Elegant way of returning FieldNames?
Hello,
Iam creating a query page, in which a Drop Down List will have collection of
fieldnames.
Is there a elegant way of doing it?
Currently Iam opening up a datareader and using GetName()/FieldCount() to
get to fieldnames.
I feel is is a waste, why would you need a resultset to get the
fieldNamelist?
Thanks
Jay
Jay Balapa Guest
-
#40064 [NEW]: Wrong fieldnames in result (including table alias names)
From: christoph at ziegenberg dot de Operating system: Windows XP SP2 PHP version: 5.2.0 PHP Bug Type: PDO related Bug... -
IE 6 and form fieldnames
I've run into a simple (I hope) problem where a form in IE 6 will not pass the fieldnames correctly. Attached is an example. In Opera/Firefox and... -
Elegant exit on the console
Hi, I'm a relatively inexperienced perl (in the form of ActivePerl on Windows 98 SE) user who wonders how to most elegantly exit a program from... -
Retrieving (Data + Fieldnames) from database to array?
Hi, I'd like to poll a database and get the table contents, as well as the field names from that table. I've been to php.net but this time I... -
standard fieldnames
Hi all, I have set up several databases now, but I'm always a little bit clumsy with giving proper fieldnames. As the db is growing bigger and... -
John Timney \(Microsoft MVP\) #2
Re: Elegant way of returning FieldNames?
A good MS articles exist that may be worth reading, it kinda explains when
to use Datareader and why you would
"HOW TO: Retrieve Column Schema by Using the DataReader GetSchemaTable
Method and Visual C# .NET"
[url]http://support.microsoft.com/?id=310107[/url]
Alos an interesting read
"HOW TO: Retrieve Schema Information by Using GetOleDbSchemaTable and Visual
C# .NET"
[url]http://support.microsoft.com/?id=309681[/url]
--
Regards
John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
"Jay Balapa" <jbalapa_nosam@atginc.com> wrote in message
news:#6CZvASXDHA.1004@TK2MSFTNGP12.phx.gbl...of> Hello,
>
> Iam creating a query page, in which a Drop Down List will have collection> fieldnames.
>
> Is there a elegant way of doing it?
>
> Currently Iam opening up a datareader and using GetName()/FieldCount() to
> get to fieldnames.
>
>
> I feel is is a waste, why would you need a resultset to get the
> fieldNamelist?
>
>
> Thanks
> Jay
>
>
John Timney \(Microsoft MVP\) Guest



Reply With Quote

