Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2007, 06:50 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default ambigious default2 and btn event does not fire

Please help me. I have spent two days for this error
<%

@ Page Language ="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="srchDltUser.aspx.vb" Inherits="Default2" title="Untitled Page" %>

The error is ambigous Default2


also second page error
I have created a usercontrol (ascx file) which contains a formview, inside
of the formview I have an EditItemTemplate and an ItemTemplate. Edit
EditItemTemplate have submit buttons which call
td><asp:Button ID="btnSubmitChanges" Text ="Submit Changes" runat="server" CommandName ="Update" OnClick="btnUpdate_Click" /></td> On click event is not fired when the button is clicked in .vb of usercontrolascx.vb. Please help me



 
Old June 19th, 2007, 10:21 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Please focus on 1 problem per thread.

It would seem that you have a class "Default2" define in two places. This can happen when you have
A) The code file referenced in the page directive defines class 'Default2'
B) An assembly accessible by the application (in the bin folder) also defines class 'Default2'

It is unlikely you have two 'Default2's in one code file (or assembly), because you should get a compilation error.

Remember that even if you are using a VS2005 web site you can still have assemblies in the bin folder of the application. The catch is that you don't get any warning that a class in an assembly in the bin conflicts with a class defined by a individual page code file until the runtime compiles the page when requested.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Radio btn with one Submit btn, convert to 2 Btn ismailc XSLT 2 August 15th, 2008 07:00 AM
Explain the event fire in Gridview? venkatu2005 ASP.NET 1.0 and 1.1 Basics 3 April 8th, 2008 08:41 AM
SelectedIndexChanged Event doesn't fire ddudley3 ASP.NET 2.0 Professional 7 February 6th, 2006 10:47 AM
Pressing Enter should fire an event r_ganesh76 ASP.NET 1.0 and 1.1 Professional 4 September 28th, 2004 12:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.