CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 3/31/2006 3:28:29 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Pztydr
Asp.Net User
DropDownList Problem3/31/2006 3:28:29 AM

0/0

Hi,

   I have a problem with a dropdown list in the module i am developing. I have put in place the code to collect the data from the database.

I am using the following code:

<TeamMgrController>

Public Class locationController

'Get Employee Location Info

Public Function GetEmpLocation() As LocationInfo

Return CType(CBO.FillObject(DataProvider.Instance().GetEmpLocation, GetType(LocationInfo)), LocationInfo)

End Function

End Class

</TeamMgrController>

<TeamMgrInfo>

Public Class LocationInfo

' local property declarations

Private _LocationID As String

Private _LocationName As String

' initialization

Public Sub New()

End Sub

Public Property LocationID() As String

Get

Return _LocationID

End Get

Set(ByVal Value As String)

_LocationID = Value

End Set

End Property

Public Property locationName() As String

Get

Return _LocationName

End Get

Set(ByVal Value As String)

_LocationName = Value

End Set

End Property

End Class

</TeamMgrInfo>

<SQLDataProvider>

'Collect Team Location Details

Public Overrides Function GetEmpLocation() As IDataReader

Return CType(SqlHelper.ExecuteReader(ConnectionString, GetFullyQualifiedName("GetEmpLocation")), IDataReader)

End Function

</SQLDataProvider>

<DataProvider>

Public MustOverride Function GetEmpLocation() As IDataReader

</DataProvider>

 

<EditTeamMgr.ascx>

Dim objEmplocations As New locationController

Dim objEmpLocation As List(Of LocationInfo)

objEmpLocation = objEmplocations.GetEmpLocation()

</EditTeamMgr>

but the last line gives me an error of :

Value of Type 'HomeProd.Modules.TeamMgr.LocationInfo' cannot be converted to 'System.Collections.Generic.List(Of HomeProd.Modules.TeamMgr.LocationInfo)'

I don't exactly know what's happening here so anyones help would be greatly appreciated.

Regards..

Peter. Sad [:(]

rstieb
Asp.Net User
Re: DropDownList Problem3/31/2006 12:53:25 PM

0/0

At first glance, it looks like you're "GetEmpLocation" method is returning an IDataReader but is looking for a list of locationinfo objects...

Hope this gets you going in the right direction.

Russel


Thanks,
Russel Stieb
Orizonti Group, Inc.
Pztydr
Asp.Net User
Re: DropDownList Problem4/1/2006 12:50:27 AM

0/0

Russell,

          yes I mahaged to resolve the problem yetserday after I posted the question. I needed a list of locations and what I had setup was only returniing a single location (first record in the table). I proved this by using a objectdatasource which indeed only returned a single record.

Once I altered my call and return from the database to a List all was okay, thanks for your assistance.

 

Regards..

Peter. Big Smile [:D]

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
.Net Test Automation Recipes: A Problem-solution Approach Authors: James D. McCaffrey, Pages: 380, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
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
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Maintenance Planning and Scheduling Handbook Authors: Richard D. Palmer, Doc Palmer, Pages: 821, Published: 2005
Why Programs Fail: A Guide to Systematic Debugging Authors: Andreas Zeller, Pages: 448, Published: 2006
Excel 2003 Personal Trainer: Personal Trainer Authors: CustomGuide Inc, Tatiana Apandi Diaz, CustomGuide Inc, Nathan Torkington, Pages: 464, Published: 2004
Pro .NET 2.0 XML Authors: Bipin Joshi, Pages: 499, Published: 2007

Web:
Databind Dropdownlist problem - CodingForums.com I can't seem to remember how to fix this one problem. I've got a dropdownlist that is filled from a database as seen below: ...
dropdownlist problem in asp.net - DevX.com Forums dropdownlist problem in asp.net ASP.NET. ... Reload this Page dropdownlist problem in asp.net. User Name, Remember Me? Password ...
The Old .NET Questions Forum - DropDownList problem I'm just starting to clue in that my problem is related to the fact that my DataValueField in the dropdownlist are set to values some of which are null. ...
Dropdownlist[] problem - ASP.NET Forums Dropdownlist[] problem. Last post 10-29-2008 11:55 PM by venkatu2005. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
DropDownList Problem DropDownList Problem. microsoft.public.dotnet.framework.aspnet. Author. 5 Apr 2005 1:49 PM. Xarky. Hi, I am using a DropDownList and ...
Dropdownlist[] problem - ASP.NET Forums Dropdownlist[] problem. Last post 10-29-2008 8:54 AM by 01ada01. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
dropdownlist problem - Dev Shed dropdownlist problem- .Net Development. Visit Dev Shed to discuss dropdownlist problem.
DropDownList Problem - .NET ASP DropDownList Problem. Get answers to your questions in our .NET ASP forum.
Drop down list problem | groups.drupal.org Drop down list problem. public. group: Javascript · molcom - Mon, 2008-04-21 07: 06. Hi! I have a module and for a menu link will be displayed a form. ...
ASP.Net DropDownList Problem - Dev Articles ASP.Net DropDownList Problem- .NET Development. Visit Dev Articles to discuss ASP.Net DropDownList Problem.

Videos:
Mozilla Firefox Dropdown Bar Fix For those people who are struggling to find a fix for the latest Mozilla Firefox here's a tutorial on how to circumnavigate the problem.
Solution to remove Blue Color Shadow from the Desktop Icons Solution to remove Blue Color Shadow from the Desktop Icons 1. This problem is only caused when we have selected the option of "Lock Web Items on De...
Excel 379 – Learn Excel from MrExcel – Offsheet Validation Yesterday's netcast showed how to set up data validation to create a dropdown for a cell. The one problem is that someone might inadvertently delete ...
vista webcam capture problems Thought i would put this up, cos ive had no successin getting the riggr questions and no one really cares about vista Why not moviemaker on vista hav...
Learn Excel Episode 379 - Offsheet Validation Yesterday's netcast showed how to set up data validation to create a dropdown for a cell. The one problem is that someone might inadvertently delete ...
ManyCam Review http://thegamefanaticshow.com is our blog! My review of ManyCam which is much better than super webcam! ---BLOG POST--- Well, as some viewers who h...
How To Fix "Cannot Delete Folder/File", "Access Is Denied" or "File In Use" errors in Windows using "Unlocker" How To Fix "Cannot Delete Folder/File", "Access Is Denied" or "File In Use" errors in Windows using "Unlocker" Unlocker is a small, free, and po...
Re: Red alert 2 Yuris Revenge How to make Mod Maps PT 1 Due to request, I made another video explaining (hopefully better explaining) on how to make mod maps. This is not a tutorial! this is basicly for th...
Lucy the Bark Busters Trained Dog www.petrescuebyjudy.com Lucy is a very friendly, happy dog. She loves to play with rope toys and kongs. She is very outgoing and friendly with strang...
Nokia N95 con nuevo firmware (20.0.0.015) Pequeño video para mostrar algunos cambios con el nuevo firmware del N95. Review Parte 1: http://www.youtube.com/watch?v=iP2w-ta99dk Review Parte 2...




Search This Site:










can any one tell me concept of master pages & can send me code to create a simple master page

login error.

why doesn't this if statement work?

which solution to use for importing users...

now able to send authenticated smtp mail via remote server

why it does not using code behind on ide by default

please help me with the microsoft treeview web contol...

documents module in ibuyspy

creating a custom register.aspx, and then using membership services

ldap

need advise for dedicated server

how to get module id

web site with visual web developer 2005 express

setting up user and roles

how to replace line breaks inside a string? (urgent)

dumb question: change host password

formsauthentication.signout() in asp.net

reporting tools or engines for .net

will not build -- theme error

including languagepack in installation

generate email in vb.net

need theory help sending out email to a user from your application. jhouse check this out too mate.

conversion problems

user can overpass the login page, after a first authentication is performed.

search module in dnn 2.1.2

dotnetnuke content builder

write in word templates

configurate vwd to work with mssql 2005

projects in a folder

typed dataset - add new row

 
All Times Are GMT