CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 10/16/2004 10:52:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 38 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
blackdisk
Asp.Net User
Using The DataSource like a dataset to get value10/16/2004 10:52:55 PM

0/0

in 2003 you could use the dataset to get specific values
such as

datasetname.tablename(0).columnname

(the 0 being the row number)

but i cant seem to see the way to do this does anyone know?
Fredrik N
Asp.Net User
Re: Using The DataSource like a dataset to get value10/17/2004 7:25:12 AM

0/0

You have to create a typed dataset to make that possible, if you don't use typed data set you can instead write:

datasetname.Tables("tablename").Rows(the index of the row to get data from)("columnname")
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/17/2004 12:38:53 PM

0/0

how do you create a typed dataset in 2005 with the datasource?

That statement works the same way as 2003 once you get a dataset i just dont know how you would do it.

there has to be a way to just use the datasource, it has all of the information.
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/19/2004 8:04:43 PM

0/0

how do you create a typed dataset in 2005
and why is it not possible through the datasource, or is this just not a feature in beta 1?
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/19/2004 8:05:37 PM

0/0

The datasources have different ways of working and one is dataset mode, through this mode i would expect to use it in the same way does anyone have any idea's
?
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/22/2004 8:29:13 PM

0/0

does anyone have any way to get a specific value from a query in a datasource from vs2005
if so please tell me something, anything, this is a big necessity and i dont know why no one is asking. Is there something that I am just overlooking, tell me something, anything

Thanks :)
Fredrik N
Asp.Net User
Re: Using The DataSource like a dataset to get value10/23/2004 8:12:48 AM

0/0

>how do you create a typed dataset in 2005

With the latest CTP (October) of VS 2005, you can create a type DataSet by addint a new DataSet item.

>does anyone have any way to get a specific value from a query in a datasource from vs2005

The Select command of the sql data source control will return by default a DataView class, you can use that to get values from the DataSet. But if you should not use the data source control together with a data control, i should recommend you to use ADO.Net and the SqlDataAdapter class to get the DataSet instead.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/26/2004 12:13:02 AM

0/0

I made a detailsView and i get the results i want but i cant access the actual value
how do you do this

like

detailsView.Fields.Item(2).ToString

shows the header of that column

but i would like the value.....

thanks for any help you can provide
Fredrik N
Asp.Net User
Re: Using The DataSource like a dataset to get value10/26/2004 4:10:26 AM

0/0

DetailsView1.Rows[0].Cells[1].Text

But you can only get the value from the Rows when the DetailsView has been data bound.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/26/2004 3:46:38 PM

0/0

Thanks alot this worked
Thanks
thanks
thanks
:)
blackdisk
Asp.Net User
Re: Using The DataSource like a dataset to get value10/30/2004 1:42:47 PM

0/0

alright i am using this but it doesn't seem to work right





Me.DQuestionDetail.PageIndex = Val(Me.lblQCColumn.Text)
Me.DQuestionDetail.DataBind()



Me.txtQCLatinName.Text = ""

Me.lblQCCommonName.Text = Me.DQuestionDetail.Rows(2).Cells(1).Text


DQuestionDetail is a DetailView
and the lblqccommonname is a label

with this statement the detail view shows the correct new index
but the label always lags one index behind

like if i make the page index 1 then the label will still show information from index 0
then if the index =2 then the label will show stuff from index 1


The databind should fix that but it isnt working now
macromediax
Asp.Net User
Re: Using The DataSource like a dataset to get value10/14/2007 12:34:57 PM

0/0

Fredrik N:
DetailsView1
 

the Cells[1]  must always to be

to get data of other  fields change the number in  here : Rows[0]

 

for example  you can write like this in vb.net :    

Textbox1.Text = DetailsView1.Rows(0).Cells(1).Text
Textbox2.Text = DetailsView1.Rows(1).Cells(1).Text 
 

 


www.macromediax.com
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Visual C# .NET 2003 Kick Start: Kick Start Authors: Steven Holzner, Dan Fernandez, Pages: 624, Published: 2003
The Book of Visual Basic 2005: .NET Insight for Classic VB Developers Authors: Matthew MacDonald, Pages: 490, Published: 2006
The Definitive Guide to JasperReports Authors: Teodor Danciu, Lucian Chirita, Pages: 223, Published: 2007
Murach's VB.NET Database Programming with ADO.NET: Training & Reference Authors: Anne Prince, Doug Lowe, Pages: 585, Published: 2003
Pro .NET 2.0 XML Authors: Bipin Joshi, Pages: 499, Published: 2007
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Programming MapPoint in .NET Authors: Chandu Thota, Pages: 354, Published: 2006
Visual Basic.Net by Example Authors: Gabriel Oancea, Robert P. Donald, Pages: 976, Published: 2002
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005

Web:
Using The DataSource like a dataset to get value - ASP.NET Forums Using The DataSource like a dataset to get value. Last post 10-14-2007 8:34 AM by macromediax. 11 replies. Sort Posts: ...
Using an ADO.NET DataSet as a Reporting Services Data Source ParseCmdText(); // Get the XML data and // merge it into the DataSet. try .... Finish out the report using whatever settings you like—for the purposes of ...
Programmatically accessing data from DataSource controls But what if you want to get at one or more values from the returned data to do ... values directly from a DataSet's table collection using plain ADO.NET. ...
Parameterizing Get/Post Data Using DataSet Steps to Parameterize get/post data using Dataset option ... Select the datasource type as CSV and enter the appropriate values for the following fields : ...
Beakersoft Blog » Setting a Data Source at Runtime on SQL ... DatabaseName.Value. It should look like this in the window. dataset with Params. Now when you run the report, you data source will be based on the users ...
Seam Framework - Entity, using multiple datasources Is this the reason why it is using the MySQL datasource, is because Seam only uses ... as in I thought that the get / set methods were relative to the same ...
scripted datasource - Forum - BIRT Exchange It is running now and I'm getting "D, D, D, D" for the dataSet values and nothing in the second parameter box like you said. ...
Binding a ListBox to a DataTable - .NET C# Try to set DisplayMember and Value member before DataSource:[/color] That let's me get the SelectedValue properly, but the SelectedItem ...
Update data source from dataset - Thedotnet - .Net devoted look like to propagate all changes automatically to the data source? How get ... and the DataSet" and "Using Parameters with a DataAdapter". These pages can ...
ActiveWidgets • How to get column headder text(Datasource: dataset) Sep 18, 2007 ... After giving dataset as data source for grid. i need to get the headder values ... find the header values using XPath or walking a DOM tree. ...




Search This Site:










how do you reference a master page outside of current application?

treeview: treenode.valuepath - does this string have a hidden character?

menu control - identifying selected menu item while navigating to various pages.

simply launching a webpage from my .aspx.vb file?

positioning of controls on master page

what should be the right way to handle dynamic menu? thanks

css and master pages - help!

sub domain master page help

strange thing with asp:menu control.

titles on masterpages vs. content pages?

content place holder with visual studios

char between menuitems

web application and master pages

using adsense channels on master pages

how do you add content page-specific css classes ?

help with master pages, user controls and 'pressing enter' form submissions

masterpage and menu

sitemap bug

error: content controls are allowed only in content page that references a master page.

make already checked nodes invisible of asp .net 2.0 treeview

probelms with galery in master page

how to dynamically change master page

content page (problems)

acessing a control in the masterpage

dynamic master page works only without precompilation with aspnet_compiler???

menu with css

menurootcategory.statichoverstyle.backcolor

rendering a control after a postback

change theme programatically from masterpage

dropdownlist loses state in master page

  Privacy | Contact Us
All Times Are GMT