CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/25/2007 7:15:56 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 77 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
frcol
Asp.Net User
problem with repeater inside AJAX and Masterpage7/25/2007 7:15:56 PM

0/0

I put a repeater inside a UpdatePanel and all that are inside a page inheriting from masterpages.

MasterPage
             Page
                    Updatepanel1
                               Repeater1
                                       Button1 CommandName=<%# Eval("ID") %>

What happens is that when I click on the Button1, it shows me a error message telling me that I need to set the page attribute EnableEventValidation="false" .

Then, when I set it, the button1 doesn't call the "Repeater1_ItemCommand" method anymore, just the "Repeater1_RowCreated" and "Repeater1_DataBound" as it was the first time I am accessing the page.

My goal is to know which button I clicked inside the Repeater, getting the commandName from the button.

Anyone can help me fix the problem or have another way to get to my objective?


[]s
http://www.fabiocolombini.com
cyberwin
Asp.Net User
Re: problem with repeater inside AJAX and Masterpage7/25/2007 7:22:31 PM

0/0

Try adding an OnCommand attribute to the button.

<asp:Button ID="Button1" CommandName='<%#Eval("ID")%>' OnCommdnad="mySub" ...

In the code behind your sub would look something like this...

Protected Sub mySub(sender As Object, e As CommandEventArgs)
   Response.Write(e.CommandName)
End Sub

 


Andrew S. Erwin
Information Technology
Peaches Uniforms
[email protected]

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Learning ASP.NET 3.5 Authors: Jesse Liberty, Dan Hurwitz, Brian MacDonald, Pages: 576, Published: 2008
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007

Web:
Shared Calendar inside repeater inside masterpage container ... NET Shared Calendar inside repeater inside masterpage container ... The problem is with the ItemType check in the code behind -- it should ...
MasterPages? + Postback inside asp:Repeater = Weird Behaviour ... The second is a problem, but I wouldn't care if the post backs in any of the repeater-style server controls actually worked correctly. ...
Issue with Repeater control inside an UpdatePanel - asp.net_ajax ... I have an asp.net 2.0 Repeater control inside an Ajax UpdatePanel. ..... Problem with Repeater control in UpdatePanel - bytes Nov 17, 2008 . ...
Problem with asp repeater control in nested Master Page. - ASP.NET ... But on the nested master page I would like to hold another database ... Also when i remove the asp:repeater and add plain text it shows the ...
I have a problem with refreshing login membership page on the ... See master page attached snippet. --------------------------- .... Moreover, since you like to use AJAX, I suggest you use the DataList in the ADC suite. ...
CodeProject: Pager Control for Repeater, DataList, or an ... I have no problem using the CollectionPager with Ajax and Masterpages. ... the pager control worked with AJAX when put inside an ajaxpanel. ...
DataList Inside UpdatePanel Issues - ASP.NET Forums In my masterpage I have a datalist that contains some letters (A-Z) and each letter is a LinkButton. Inside my ContentPage, I have another ...
Brant Burnett's .NET Blog: Using UpdatePanels Inside A Repeater On ... NET and web development problems that you might not be able to find anywhere else. ... my problem is that I have an UPDATEPANEL inside a REPEATER and this ...
Heading Common Problems. infosys. AJAX adds an additional layer to our web application, ... Pay attention to Repeaters and controls inside custom UserControls ...
Dyanmic themes and css - C# Blog TransmitFile from ContentPage inside AJAX · Rendering in Firefox · Capture Event from Master Page .... Problem with master page when asp:content page dat... ...




Search This Site:










vwd stuck on localhost:2676 need help please

problems with code behind

**i just installed webdeveloper how come code...**

upload problem.

framework 2.0 versions

webpage update failure in vwd express 2005

problem gridview, datatable with paging

overflow error: visual web developer

beta guided tour - errors

c# vs. vb question

here is a flow of code but still error trapping doesnt work

visual studio 2005 vs visual web developer 2005 express edition

gridview formview.... selecting a record from gridview to be edited in form view

date picker?

help! while opening a new blank asp.net website it opens and then freezes!!!

loss of syntax highlighting

change tab sequence when opening a file?

convert label.text to integer to insert into database

gridview select, links & params questions

what's the next level after vwd 2005 express?

import data to sql server express

deploy site without the code behind sources? (only dlls)

error creating class file

globalization

"openwithprogids" failure to install

vwd 2005 express + sql server 2005 express

can i develop our company's internal application with "visual web developer 2005 express edition"

dataformatstring

drag and drop sqldatasource control doesn't give gray box in design view

new installation wvd 2005 beta2

  Privacy | Contact Us
All Times Are GMT