InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Trouble with editarticle.aspx Expand / Collapse
Author
Message
Posted 21/10/2003 16:47:00
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 21/10/2003 18:00:00
Posts: 4, Visits: 1

The button to update the article is not calling the sub proceedure

<asp:button text="Update Article" CssClass="frmbutton" id="subButton" onClick="UpdateArticle_Click" runat="server" />

The sub never gets called.  As a matter of fact, when I drop another button the the form its click event does not get called either.

I have checked to make sure that the buttons are within the form tags and that the form is marked with run at server.

Any Ideas?

(I have full source)

 

Post #1039
Posted 21/10/2003 17:23:00


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 05/01/2009 11:53:33
Posts: 1,959, Visits: 3,027

Hi Daniel,

Could you tell me if the AutoEventWireup="false" has been accidentally added to the page directive in the editarticle.aspx page. Is so please remove this. This will stop the events from firing on the page. I've tested this locally and all seems to work ok with a default installation. Hope this helps,




Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #1041
Posted 21/10/2003 17:35:00
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 21/10/2003 18:00:00
Posts: 4, Visits: 1
That was it.  Do I need to look for that in the other pages as well?
Post #1042
Posted 21/10/2003 17:41:00


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 05/01/2009 11:53:33
Posts: 1,959, Visits: 3,027

Nope by default this is removed on all pages with code-behind. It is possible you may have re-introduced this command when working with the document in VS.NET. You should keep an eye out for this as VS.NET has a tendency to reformat code. Pleased it worked




Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #1044
Posted 21/10/2003 17:44:00
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 21/10/2003 18:00:00
Posts: 4, Visits: 1

I ran a search and it shows up 45 times.  Just to clarify.  I should delete it from all the pages?

Post #1045
Posted 21/10/2003 17:51:00


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 05/01/2009 11:53:33
Posts: 1,959, Visits: 3,027

Yes remove this from all pages within the knowledge base. I'm not sure how you re-introduced this but please check my original email with the default projects i'm sure you will find it is not there




Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #1046
Posted 21/10/2003 18:03:00
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 21/10/2003 18:00:00
Posts: 4, Visits: 1

VS.Net must have re-introduced it.  That has fixed quite a few problems I was having.  Thanks for getting back to me so quickly.   I am a pretty good debugger and that was driving me a bit nuts.

Thanks again.

Daniel N. Egan
M.C.S.D.

Post #1047
Posted 21/10/2003 18:13:00


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 05/01/2009 11:53:33
Posts: 1,959, Visits: 3,027

My pleasure - i'm pleased to have solved some of your problems. VS.NET can be a little fussy sometimes - I have experienced this before when importing the projects into an existing solution




Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #1048
Posted 25/05/2006 21:56:11
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 25/05/2006 21:49:31
Posts: 1, Visits: 1
I have the same problem, but will all edit buttons on all my pages.  However, I do not have the afformentioned code.

Any other ideas?

Ryan

Post #10918
Posted 26/05/2006 13:39:15


Support Supremo

Support SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport Supremo

Group: Customers
Last Login: 13/11/2008 12:44:07
Posts: 568, Visits: 2,507
rpeterson (5/25/2006)
I have the same problem, but will all edit buttons on all my pages.  However, I do not have the afformentioned code.

Any other ideas?

Ryan

I would like to suggest you to try adding the key below to your web.config:

<pages autoEventWireup="true" enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />

and delete any autoEventWireup="false" in all .aspx and .ascx files.

Post #10923
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)