Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:671953
More Search Options
RSS Available
Matching Posts
Re: Help using ObjectDataSource as a StandAlone Control
Actually I figured it out. The problem was that I had the DataObjectTypeName attribute set on the ODS. Once I removed this attribute, everything worked. When I would invoke the Insert() method, I think the ODS was trying to create an instance of the DataObjectTypeName and for some reason was getting a null value, which was ultimately resulting in my error message. This was all happening prior to invoking the OnInserting event handler, which is why my ItemInsert() method never got called. The only
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/17/2006
Re: Help using ObjectDataSource as a StandAlone Control
I tried this using a GridView and the ItemInserting() gets invoked. I think that just calling MyDataSource.Insert() may not be enough to fire the events. Could the GridView doing something additional that makes the events fire and when I just call Insert() the event does not fire?
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/16/2006
Re: Help using ObjectDataSource as a StandAlone Control
I tried removing the EnableCaching and OldValuesParameterFormatString and it did not help. I also put a break point in all of my PanelMemberAdDao's methods and I put breakpoints on the ItemInserting() and InsertItem() methods. It is not even making it into my DAO, nor is it making it into the ItemInserting() method. The only breakpoint that it stops on, is my InsertItem() method. Upon which I immediately call this.MyDataSource.Insert() at which point it gives me the same error message. Just to be
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/16/2006
Re: Help using ObjectDataSource as a StandAlone Control
I updated my ObjectDataSource to the following, but the ItemInserting is still not getting called. I'm receiving the same error message when the MyDataSource.Insert() Any thoughts? < asp : ObjectDataSource runat ="server" ID ="MyDataSource" EnableCaching ="True" TypeName ="PanelMemberAdDao" DataObjectTypeName ="PanelMemberAd" OldValuesParameterFormatString ="original{0}" InsertMethod ="Insert" OnInserted ="ItemInserted" OnInserting ="ItemInserting"> < InsertParameters > < asp : Parameter
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/16/2006
Help using ObjectDataSource as a StandAlone Control
I am trying to invoke Insert() on my ObjectDataSource and have it insert the data into the DB without using a GridView or DetailsView to do it for me. I have a page with a RadioButtonList, a GridView, a Table, a DetailsView and a LinkButton. I implemented an onClick method for the LinkButton and an OnInserting event handler to handle the ObjectDataSource's Inserting event. I was planning to invoke ObjectDataSource.Insert() from my onClick method, and then in my ItemInserting method gather up the
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/16/2006
Dynamically Changing the SelectMethod
I'm trying to dynamically change the SelectMethod and have my GridView refresh itself with the new results. I have a RadioButtonList, GridView, and ObjectDataSource. The RadioButtonList has the OnSelectedIndexChange="IndexChanged" and AutoPostBack="True" My IndexChanged() method, simply sets the ObjectDataSource.SelectMethod = RadioButtonList.SelectedValue In the debugger, I see that my IndexChanged() method is getting called and I'm setting the SelectMethod to the correct value. However, the SelectMethod
Posted to
Data Presentation Controls
(Forum)
by
wkoscho
on 8/11/2006
Re: FK Help with Dropdowns
Thanks; I will make the change. A few thoughts for future enhancements may be: 1. When you make a change to the code, and re-run blinq, it overwrites your changes. Perhaps there could be an option to only generate the App_Code classes. Most likely we will be modifying the UI, not the data access classes. 2. Make some assumptions about the foreign keys on the tables so that you do not run into the problem described in my original post. For example, if the column on the table is a foreign key and a
Posted to
Blinq Preview
(Forum)
by
wkoscho
on 8/1/2006
Re: Code Generation Error
I encountered the same problem. It appears that if you have a table called TableA, with more than one foreign key: TableA.ItemId is a FK to the Item table and the Item table has a FK back to TableA.Id TableA.StoreId is a FK to the Store table and the Store table has a FK back to TableA.Id Then it generates a method for filtering by the various FKs, but since both the Item and Store tables have FK back toTableA.Id it generates a filter() method that takes two paramters, both with the same name: TableA_Id
Posted to
Blinq Preview
(Forum)
by
wkoscho
on 7/31/2006
FK Help with Dropdowns
I have two tables: Advertisement and AdCategory The Ad table has a FK to the AdCategory table's primary key. I would like to use the generated web-app to add new AdCategories and then go to the Ad table and associate them together. However, when I go to the generated UI, the AdCategory ID field is a dropdown and it does not let me type in freeform. I guess this is because it is a foreign key. This makes sense to me that on the Advertisement table, it is a dropdown of IDs from the AdCategory table
Posted to
Blinq Preview
(Forum)
by
wkoscho
on 7/31/2006
Re: My Tables are getting Deleted
That worked!!! Thanks so much. It turns out that "tempdb" is reserved for use by the SQL engine for temporary storage. That is why my tables were getting deleted, because the SQL engine would do cleanup of the tempdb area. I'm in good shape and I have things working now... Thanks for the help Bill
Posted to
Blinq Preview
(Forum)
by
wkoscho
on 7/31/2006
Page 1 of 2 (16 items) 1
2
Next >
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online