Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Edit/update throws an exception
Previous Previous
 
Next Next
New Post 6/15/2006 2:53 AM
User is offline Mattias Andersson
7 posts
10th Ranked


Edit/update throws an exception 
Right, here's the deal this time.

I have an edit page using objectdatasource, as demonstrated in the adef tutorial (Creating a DotNetNuke Module 4). I get everything showing up in my gridview on the edit page, I can get to the edit mode of the datagrid and all data shows up. But when I try to "update" my update function in the controller class throws an exception (A critical error has occurred. Exception has been thrown by the target of an invocation.). I found that it actually was my controller class update function that caused this when I ran the site in debug mode.

The update method for the datasource is "updatePersonal"

the function in the controller class is the following: 
<DataObjectMethod(DataObjectMethodType.Update)> _
Public Shared Sub updatePersonal(ByVal objInfo As whiteboard_personalInfo)
DataProvider.Instance().updatepersonal(objInfo.namn, objInfo.id, objInfo.foto, objInfo.huvudansvar, objInfo.telefon, objInfo.mail, objInfo.rumsnummer, objInfo.backupperson_id)
End Sub
 where the whiteboard_personalinfo is my info class.

any ideas of why this doesn't work? It seems to be a problem with the "Dataprovider...." line, since it doesn't thrown an exception if I comment it. All the values inserted are of the right data type, my dataprovider.vb file is equivalent to what it looks like in the tutorial. There has to be something I'm missing here...
All includes are checked to be as they are in the tutorial. It's either a big error or something so small that I can't see it

Both the dataprovider and the sqldataprovider seems to be ok. They have the same order and the same data types as the ones I pass on from the info class. Can there be some kind of error when grabbing the data from the info class?


I'd be thankful for any help on this issue.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Edit/update throws an exception
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl
EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP