Element Triggers not supported

I have a page based of the "Scotts to do list" tutorial(using adjax). Within this program I tried to use a trigger to update a update pannel.
            <asp:AsyncPostBackTrigger runat="server" EventName="SelectedIndexChanger" ControlID="DropDownList1" />

But visual Web developer 2008 express says "Element triggers is not supported"

I have enabled 3.5 in visual studio.
Who is Participating?
prairiedogConnect With a Mentor Commented:
<Triggers> needs to be defined within <UpdatePanel> block, not outside it.
>>><asp:AsyncPostBackTrigger runat="server" EventName="SelectedIndexChanger" ControlID="DropDownList1" />
</asp:AsyncPostBackTrigger>           <===remove this line. You already have a close tag above it: "/>"
soccerman777Author Commented:
buy the way I am doing this on my development box (xp professional  iis 5.1). in iis 5.1 it only shows me using asp.net 2.05 but I do have .net framework 3.5 installed and I have set the file to 3.5 in visual studio.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

The Framework 3.5 uses the 2.0 CLR, so your settins are correct.
BTW, have your tried my comment?
soccerman777Author Commented:
yes I did try it. It did not work.  I am wondering if there is something to install that I need to use triggers.
Can you post more code?
soccerman777Author Commented:

Here is my content page
<%@ Page Language="VB" MasterPageFile="~/poMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" Debug="true" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <asp:Label style="top: 300px; left: 150px; position: absolute; height: 22px; width: 42px"  
        ID="Label1" runat="server" Text="Vendor"></asp:Label>
    <asp:DropDownList style="top: 300px; left: 200px; position: absolute; height: 22px; width: 76px"
        ID="DropDownList1" runat="server" AutoPostBack="True">
        <asp:ListItem Selected="True"></asp:ListItem>
        <asp:ListItem Value="%ro%">ro</asp:ListItem>
        <asp:ListItem Value="%bo%">bo</asp:ListItem>
    <div class="divsmalltext2">
    <asp:Label ID="vendorLabel" style="top: 350px; left: 150px; position: absolute; height: 22px; width: 42px" runat="server" Text="Vendor Results"></asp:Label>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="pkey"
        DataSourceID="ObjectDataSource1"  CssClass="style1"
        alternatingrowstyle-CssClass="even" GridLines="None"
        style="top: 350px; left: 210px; position: absolute; height: 103px; width: 157px">
            <asp:BoundField DataField="description" HeaderText="description"
                SortExpression="description" />
            <asp:BoundField DataField="pkey" HeaderText="pkey" InsertVisible="False"
                ReadOnly="True" SortExpression="pkey" />
            <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" />

        <asp:AsyncPostBackTrigger runat="server" EventName="SelectedIndexChanger" ControlID="DropDownList1" />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="Getvendors"
            <asp:ControlParameter ControlID="DropDownList1" Name="search"
                PropertyName="SelectedValue" Type="String" />

Let me know if you need anything else
soccerman777Author Commented:
Haha I did not even notice I had it outside the update panel.  
Hey keep a watch on my questions. I have been codeing asp.net for 3 weeks(I was a cold fusion developer) So I will be posting some pretty easy questions that I will need quick answers for.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.