TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
suman kanthula
NA
33
5.8k
Updatepanel with gridview error in AsyncPostBackTrigger with EventName
May 12 2011 10:06 PM
Hi
I have gridview in which i have taken a linkbutton ,my requirement is to ,when user clicks on the linkbutton that name should display on a label ,
i'm getting a error like the following
Could not find an event named 'lnkEmailId_OnClick' on associated control 'gridviewUsers' for the trigger in UpdatePanel 'UpdatePanel1'.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="gridviewUsers" EventName="lnkEmailId_OnClick" />
</Triggers>
<ContentTemplate>
<asp:GridView ID="gridviewUsers" runat="server" AutoGenerateColumns="false" OnRowCommand="gridviewUsers_RowCommand">
<Columns>
<asp:TemplateField HeaderText="USer Name">
<ItemTemplate>
<asp:Label ID="lblUserName" Text='<%#Bind("Name") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="EMAIL ID">
<ItemTemplate>
<asp:LinkButton ID="lnkEmailId" runat="server" Text='<%#Bind("EmailID") %>' OnClick="lnkEmailId_OnClick"
CommandName="Clicked" CommandArgument='<%#Bind("EmailID") %>'>
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
if i use <asp:PostBackTrigger ControlID="gridviewUsers" />
it is working fine but a postback is happening
Pleas help me out ,how can i do with <asp:AsyncPostBackTrigger />
Reply
Answers (
1
)
Images in GridView
Dot net Windows project Setup with Data Base