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 > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/29/2007 6:31:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
mtsonic
Asp.Net User
VS is no longer using Declarative Event Handling! Why?6/29/2007 6:31:49 PM

0/0

Visual Studio quit doing this;

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" ConflictDetection="CompareAllValues"
        DeleteMethod="DeleteCustomer" InsertMethod="InsertCustomerReturnID" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetCustomersByFilters" TypeName="BLL.CustomersClass" UpdateMethod="UpdateCustomer" OnDeleted="ObjectDataSource1_Deleted">

Protected Sub ObjectDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs)

End Sub

and started doing this;

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" ConflictDetection="CompareAllValues"
        DeleteMethod="DeleteCustomer" InsertMethod="InsertCustomer" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetCustomersByFilters" TypeName="BLL.CustomersClass" UpdateMethod="UpdateCustomer">
        <DeleteParameters> 

Protected Sub ObjectDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs) Handles ObjectDataSource1.Deleted

End Sub

 And I am having a problem with using Image ButtonTypes in CommandFields of DetailsViews in pages that were compiled recently.  It tries deleting the record more than once. 

 Anyone got any ideas?  I've been stuck on this for about a week and would REALLY appreciate the help.

Weoncito
Asp.Net User
Re: VS is no longer using Declarative Event Handling! Why?6/29/2007 8:15:30 PM

0/0

I believe that both methods are still valid with VB.NET.  The problem that you're having seems to come from associating the function with the event twice, once in the page source with OnDeleted="ObjectDataSource1_Deleted", and once in the code behind with Handles ObjectDataSource1.Deleted.  Try removing one of these and see if your function only gets called one time. 

 

mtsonic
Asp.Net User
Re: VS is no longer using Declarative Event Handling! Why?6/29/2007 8:50:32 PM

0/0

Yah, I imagined this and tried what you said but the problem with the double-deletes still persists when using Image ButtonTypes on any page that I changed.  This doesn't explain why when I double-click in the Events dialog box to create a new event or to modify an existing on that VS either creates the handler with the Handles keyword or adds it to the existing handler.  It didn't use to do this and whatever changed is probably causing the problem with the Image ButtonTypes as well. 

I may have been VPN'ed in from home at the time of this "mess everything up for me" started.  If this brings anything to mind.

I have also run through the Repair/Reinstall on the VS installation CD.

Mikhail Arkhipo
Asp.Net User
Re: VS is no longer using Declarative Event Handling! Why?6/29/2007 9:13:28 PM

0/0

Handles is correct behavior for VB actually. VS Orcas also behaves this way.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Adding Ajax Authors: Shelley Powers, Pages: 382, Published: 2007
The Visual Basic .Net Programming Language Authors: Paul Vick, Pages: 407, Published: 2004
The Mind's Eye: Image and Memory in Writing about Trauma Authors: Marian M. MacCurdy, Pages: 229, Published: 2007
Dictionary of Biological Psychology Authors: Philip Winn, Pages: 857, Published: 2001
Learning C# 2005: Get Started with C# 2.0 and .NET Programming Authors: Jesse Liberty, Brian MacDonald, Pages: 528, Published: 2006
The Memory System of the Brain Authors: Jean Delacour, Pages: 879, Published: 1994
Principles of Declarative Programming: 10th International Symposium, PLILP'98 : Held Jointly with the 6th International Conference, ALP'98, Pisa, Italy, September 16-18, 1998 : Proceedings Authors: Catuscia Palamidessi, Hugh Glaser, Karl Meinke, Pages: 497, Published: 1998
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Signs of Paradox: Irony, Resentment, and Other Mimetic Structures Authors: Eric Lawrence Gans, Pages: 222, Published: 1997
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006

Web:
A Declarative Approach to Event-Handling in Visual Programming ... problem of event-handling in declarative VPLs. The. distinguishing features of the approach ..... its image if the event receptor is no longer useful. When ...
windows developer winfx avalon Re: Declarative forms using Xaml ... they want...with no effect on the code-behind or event handling. ... been doing a bit of thinking around declarative forms using Xaml ...
WinFX Workflow: Simplify Development With The Declarative Model Of ... If there are, we schedule the next one, using the same event handler method we used before as the completion routine. If there are no more children to run, ...
A declarative approach to event-handling in visual programming ... Much of the work on event-handling in declarative ..... write programs using an event-driven. philosophy even when no events (in the traditional sense) ...
The Right Way to do Ajax is Declaratively | What Not How | http ... Go to your boss and say that you no longer want to use HTML in building web application, instead you are going to write web pages using JavaScript. ...
SimplifiedEventApi – Declarative Languages and Systems – Trac Event queues would no longer be relations, and therefore, difficult to query. ... This uses event handlers to bootstrap the event handler mechanism. ...
JavaFX Tutorial | Learn Event Handling - Java GUI | Java FX As this lesson focuses on event handling, it will not describe the actual .... by the graphic button, the button's appearance is no longer highlighted. ...
Autism Information -declarative vs. imperative language No tap dancing in The Lion King. Heck, Cole - what ARE you talking about? ..... Using declarative communication can make a dramatic difference. ...
LNAI 4327 - Programming Declarative Goals Using Plan Patterns declarative goals discussed in the literature, the plan failure handling ...... goal g is no longer achieved. This plan then creates a declarative goal to ...
Declarative Event-Oriented Programming point editors can no longer determine the undo event by themselves, ... Declarative Event-Oriented Programming. control point, using the suchThat event ...




Search This Site:










conversion

google and aspx

dynamic population

arithmetic operation resulted in an overflow error

paypal integration

does membership require sqlexpress?

treeview node selected problem.

where to define sqlconnection?

about the toolbox while creating xbap application

problems to install dnn

login page in this code its check if statement (i bold that part) but i cant able get inside if statement so please help me

form error

saving an html file

a question about /build

isa server

visual studio 2005 web deployment projects (beta v2 preview)

where pray tell is the documentation for the "<%# eval" stuff?

how to stop comment spam

formatting values

multiple development servers started

securityrelated question asp.net 2.0 formsauthentication.

createuserwizard strange return key behaviour!

language translation

cannot post a form in production environment - newbie to .net

date language question in 2.1.2

login control

addhandler on form contrls dropdownlist

asp vs asp.net

changing the colours of the solpart menu

need help!

 
All Times Are GMT