<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/2667313.aspx</link><pubDate>Tue, 07 Oct 2008 08:55:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2667313</guid><dc:creator>ThaDu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2667313.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2667313</wfw:commentRss><description>&lt;p&gt;You can use as shown below&lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;txtRow0Col0.Text = dsAppData.Tables[0].Rows[0][0].ToString(); &lt;/p&gt;&lt;p&gt;txtRow0Col1.Text = dsAppData.Tables[0].Rows[0][1].ToString();&amp;nbsp; &lt;/p&gt;&lt;p&gt;txtRow1Col3.Text = dsAppData.Tables[0].Rows[1][3].ToString();&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/2040177.aspx</link><pubDate>Tue, 04 Dec 2007 13:51:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2040177</guid><dc:creator>mhatrerupesh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2040177.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2040177</wfw:commentRss><description>&lt;p&gt;How do i add logical table created (on the fly in the stored procedure, say @DisplayOutput)&amp;nbsp; to DataAdapter ? plz help.........&lt;/p&gt;
&lt;p&gt;THanks in advance&lt;/p&gt;</description></item><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/685344.aspx</link><pubDate>Tue, 07 Sep 2004 13:17:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:685344</guid><dc:creator>wallaceoc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/685344.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=685344</wfw:commentRss><description>Legend!!</description></item><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/685268.aspx</link><pubDate>Tue, 07 Sep 2004 11:46:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:685268</guid><dc:creator>kiddu1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/685268.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=685268</wfw:commentRss><description>after you fill the dataset you must declare a datarow
&lt;br /&gt;

&lt;br /&gt;
dim dr as new datarow 
&lt;br /&gt;
dr = dataset.tables(0).rows(0)
&lt;br /&gt;

&lt;br /&gt;
and after that you use it like this:
&lt;br /&gt;

&lt;br /&gt;
label1.text = dr(&amp;quot;column_name1&amp;quot;).ToString()
&lt;br /&gt;
label2.text = dr(&amp;quot;column_name2&amp;quot;).ToString()
&lt;br /&gt;
....
&lt;br /&gt;

&lt;br /&gt;
and here you are. 
&lt;br /&gt;

&lt;br /&gt;
HTH
&lt;br /&gt;
Kiddu</description></item><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/685168.aspx</link><pubDate>Tue, 07 Sep 2004 08:30:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:685168</guid><dc:creator>wallaceoc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/685168.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=685168</wfw:commentRss><description>Another point that might help is when I try to write the name of the table as follows:
&lt;br /&gt;

&lt;br /&gt;
&lt;pre&gt;
&lt;br /&gt;
Response.Write(dsAppData.Tables[0].TableName.ToString());
&lt;br /&gt;
&lt;/pre&gt;
&lt;br /&gt;

&lt;br /&gt;
The word &amp;quot;Table&amp;quot; is outputted on the screen.  Anbody have any ideas?
&lt;br /&gt;

&lt;br /&gt;
The code I use to fill the DataSet is as follows:
&lt;br /&gt;

&lt;br /&gt;
&lt;pre&gt;
&lt;br /&gt;
string strAppDetailsQry = &amp;quot;Select A.AppID, A.AppName, A.GripsID&amp;quot;;
&lt;br /&gt;
strAppDetailsQry += &amp;quot; from Application A, FAQ F&amp;quot;;
&lt;br /&gt;
strAppDetailsQry += &amp;quot; where F.AppID = A.AppID&amp;quot;;	
&lt;br /&gt;
strAppDetailsQry += &amp;quot; AND F.FAQID = &amp;quot; + Int32.Parse(FAQID.Text);
&lt;br /&gt;
SqlCommand appDetailsCmd = new SqlCommand(strAppDetailsQry, conn);
&lt;br /&gt;

&lt;br /&gt;
...
&lt;br /&gt;
...
&lt;br /&gt;

&lt;br /&gt;
try
&lt;br /&gt;
{
&lt;br /&gt;
	conn.Open();
&lt;br /&gt;
	dataAdapter = new SqlDataAdapter(strAppDetailsQry, conn);
&lt;br /&gt;
	dsAppData = new DataSet();
&lt;br /&gt;
	dataAdapter.Fill(dsAppData);
&lt;br /&gt;
....
&lt;br /&gt;
...
&lt;br /&gt;
}
&lt;br /&gt;
...
&lt;br /&gt;
&lt;/pre&gt;
&lt;br /&gt;

&lt;br /&gt;
This is really bugging me so please help!
&lt;br /&gt;

&lt;br /&gt;
Regards,
&lt;br /&gt;

&lt;br /&gt;
Wallace</description></item><item><title>Re: DataSet column values</title><link>http://forums.asp.net/thread/685116.aspx</link><pubDate>Tue, 07 Sep 2004 07:05:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:685116</guid><dc:creator>wallaceoc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/685116.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=685116</wfw:commentRss><description>Sorry but does anybody have any idea on this one?
&lt;br /&gt;

&lt;br /&gt;
Thanks,
&lt;br /&gt;

&lt;br /&gt;
Wallace</description></item><item><title>DataSet column values</title><link>http://forums.asp.net/thread/684713.aspx</link><pubDate>Mon, 06 Sep 2004 13:55:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:684713</guid><dc:creator>wallaceoc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/684713.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=684713</wfw:commentRss><description>I'm using a DataSet to retrive data from a Database and access the values of the columsn returned.  I then want to set the Text of various labels to the values of the columns.  To do this I use to code below
&lt;br /&gt;

&lt;br /&gt;
&lt;pre&gt;
&lt;br /&gt;
appID.Text = dsAppData.Tables[0].Columns[0].ToString();
&lt;br /&gt;
appName.Text = dsAppData.Tables[0].Columns[1].ToString();
&lt;br /&gt;
gripsID.Text = dsAppData.Tables[0].Columns[2].ToString();
&lt;br /&gt;
&lt;/pre&gt;
&lt;br /&gt;

&lt;br /&gt;
The problem is that it sets the text of the labels to the column names and not the values.  Am I using the wrong code?
&lt;br /&gt;

&lt;br /&gt;
Thanks,
&lt;br /&gt;

&lt;br /&gt;
Wallace</description></item></channel></rss>