Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra Trigger appearing when I save

Status
Not open for further replies.

Ferrian

Programmer
Sep 7, 2005
53
GB
I have an intriguing issue. And when I say intriguing, I mean really irritating.

I use Visual Studio 2008 and have started having problems with triggers.

I write my code and put in the triggers I require, such as

Code:
        <Triggers>
            <asp:PostBackTrigger ControlID="chkExportToExcel" />
        </Triggers>

Then I hit the Save button, and my file saves and then automatically changes itself to the following:

Code:
        <Triggers>
            <asp:PostBackTrigger ControlID="chkExportToExcel" />
<System.Web.UI.PostBackTrigger ControlID="chkExportToExcel"></System.Web.UI.PostBackTrigger>
        </Triggers>

If I try to debug the code it throws an error that the new bit of code can't be processed inside the triggers section.

Can anyone help me with why this is happening? Google searches are giving me nothing.

~Ben
Occasional sparks in a darkened room
 
It seems the problem was related to the Ajax controls I had installed. I had the AjaxToolkit, but not the Extended Toolkit.

Once this was installed the issue seems to have cleared itself up.

~Ben
Occasional sparks in a darkened room
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top