.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
sivanagamahesh
Post New Web Links

Problem :- using AJAX and GridView in a nested master Page

Posted By:      Posted Date: November 04, 2010    Points: 0   Category :ASP.Net
 

HI ,

Have been scratching my head regarding

"Control with ID 'GRID1' being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler."

-------not using any update panels in masterpages.

-------grid.databind on page load of content page.

any help is really appreciated.

Thank you




View Complete Post


More Related Resource Links

Master Page, web service and Ajax autocomplete extender problem.

  
 I will appreciate very much any help about this issue.  I have been dealing with it for the last week and I couldn't detail and complete examples about this issue. The problem: I have a text box and ajax autocomplete control extender in my Master Page that it is not working at all.  When I type some characters on the text box it doesn't trigger the autocomplete. I have a web service that contains the function code. I est my code on a single Web Page (No Master Page) and it works perfectly.  Also, it works fine if I include the text box and the extender on the Content Page instead of on the Master Page.  It is important to keep the text box in the Master Page for me. I am using Visual Studio 2008 and ASP 3.5.   tHANK YOU VERY MUCH. here is my code:   MASTER PAGE. <%@ Master Language="VB" AutoEventWireup="true" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %> <%@ Import Namespace = "System.Data" %> <%@ Import Namespace = "System.Data.SQLClient" %> <%@ Import Namespace = "System.Web.Script.Services" %> <%@ Import Namespace="System.Web" %> <%@ Import Namespace="System.Web.Services&

Problem with master page and update panel (I think)

  

Hello,

the app I am working with is made up of three nested master pages that have the following design:

The first master page ha only realize the HEADER, BODY and FOOTER divs.

The second one specialize the Body content placeholder and divide it in three more layers: NAVIGATOR, PAGE TITLE, BODY CONTENT.

The final layer specialize the BODY CONTENT in PAGE CONTENT and ACTIONS.

In one of my content pages I have (inside the PAGE CONTENT area) 

  • 1 Update Panel that contains a gridview object
  • 1 Update Panel that contains some HTML code to show in a PopupModalExtender

The PopupModalExtender can be either triggered from inside the gridView and also from a series of LinkButtons that are in the ACTIONS area.

The problem is that when the PopupModalExtender shows the FOOTER and the ACTIONS areas are not dimmed from the style I apply as background to the modal popup. An example of what I am trying to explain can be viewed in the following screenshot.

Why this is going to happen? Has anybody any suggestion on how to solve this problem?

Thanks a lot


Master-Detail GridView in Single Page example with paging throws error

  
___http://www.java2s.com/Code/ASP/Data-Binding/MasterDetailGridViewinSinglePage.htmI followed example at the link above.When I enablind paging=true (by pagesize=3).and clicking to pages 2|3|4 etc and so;error occuringIndex was out of range. Must be non-negative and less than the size of the collection.at cs line :sourceProducts.SelectParameters[0].DefaultValue = gridMaster.DataKeys[e.Row.DataItemIndex].Value.ToString();got any idea?what should I make to fix this ? is this error  fixable ?thanks much.

JQuery(Effects problem) With Master Page

  
HI friends, My project is old one it is bulit in VS2005 now i want to add the features of JQuery I m new to JQuery.I started working with simple hide and show functionality on div . It works fine with simple aspx page but  it does not work with MASTER PAGE when I apply hide and show functionality with toggle('slow'),slideup('slow'),slidedown('fast')  etc effects . I have set the property of div as runat server. Any help appreciated Regards, Chandrakant            

Accessing a public property of a nested user control in a master page from a pages' user control

  
Hi  I've got a web site that has a master page and that master page (mpMaster that has a user control (ucControl1) which has a sub user control (ucControl2), this user control has a property which accepts a value. Now, I have a page that uses the master page and on this page I have another user control (ucPageControl), I need to  find a way of setting the value in ucControl2 from ucPageControl. Is this possible at all? Many thanks Ed

AJAX Slideshow extender on Master Page

  
 I am pretty much a novice at AJAX.  I really appreciate the How To videos for ASP.net and AJAX.<> My problem is this.  I would like to have a very simple slideshow running on my Master Page.  I can get a slideshow on my AJAX enabled .aspx pages without any problem, using the examples in the video.<>When I create a Master Page/Content pages site with an AJAX ScriptManager and SlideShowExtender on my Master Page and move the functioning slideshow code onto the Master, it does not seem to run.<>I would appreciate any input.  Thanks.  Master Page Code:<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPageTwo.master.cs" Inherits="MasterPageTwo" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title>Untitled Page</title>     <asp:ContentPlaceHolder id="head" runat="server">     </asp:ContentPlaceHolder> </head> <body>     <fo

Forms Based Authentication - problem with custom master page and login page

  

Hi,

I have successfully enabled and set up FBA (Forms Based Authentication) on my SharePoint 2010 Foundation server. The thing is that I need to customize the look and feel of the login page. I have successfully customized the page (and master page) to look the way I want, however, when I try to log in, I get the following error/message on the page:
"Forms Based Authentication on classic Web applications has been deprecated".

What I've done:
Made copies of /_layouts/simple.master and /_layouts/login.aspx and renamed the copies. The markup in the master page is MUCH simpler than the original, but I've kept all the ContentPlaceholders that I don't use (most of them) in a hidden <asp:Panel at the bottom of the page.

I've changed the web.config file:
<authentication mode="Forms">
      <forms loginUrl="/_layouts/loginCustom.aspx" />
</authentication>

So, I'm not getting any errors on the page until I try to log in. When I use the default settings (login.aspx and simple.master) it works just fine (but damn that page looks ugly!).

Does anyone know what I might be missing?

Update: I believe the reason it doesn't work is because my custom login aspx is not part of the Claims Based Web Application (because it's sitting

Add AJAX Script Manager to Master Page?

  

I've read that I must add the AJAX Script Manager to the Application.Master page in order to get my custom page to render properly.   Would someone please confirm?

Secondly, can I add the markup to the application.master without messing up my existing application pages?


Master Page User.Identity.Name problem

  

Hello I've written some code to check information based on the authenticated user. The following code works on an ASPX page load but fails when I move into a Master Page. Specifically, the error is "Compiler Error Message: BC30451: Name 'User' is not declared."  

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

' Get & split Domain user Information

Dim strDomainUser As String = User.Identity.Name


v3.5 Ajax ToolkitScriptManager Extender Control not working in Nested Master Pages

  

I am using v3.0.31106.0 of the AjaxControlTookkit.dlll.  I have nested master pages.

The site Master page has the only ScriptManager & holds the oneColumn & twoColumn master pages.
The twoColumn master page holds content pages. In the content page there is a update panel.

Here is my Site Master Page:

<%@ Master Language="VB" CodeFile="SiteMasterPage.master.vb" Inherits="SiteMasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div><h2>Main Master Page</h2>
        <br /></div>
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>


Here is the Nested Master Page:

What the best way to achieve this layout - nested master page or iframes

  

Hi Guys


Im developing an admin section for a cms tool and in previous tools i used  a master page, which then had a page called verified.aspx. this contained a menu control and then dependant on which menu item they selected loaded a user control into a multiview control

This works fine accept for some small annoying post back issues (not refreshing data and also the time taken to load the large amount of controls)

For this solution i was looking to make it as quick and light weight as possible


I have a master page with 2 content placeholders. Im my verified page (which uses the master), i have a nav menu on the left. Dependant on the item selected fro the nav menu on the left, id like to poplute the content placeholders content with an aspx page (which contains a user control) or just an apsx page

ive seen a couple of articles suggesting iframe, and a couple suggesting nested master pages but i dont believe i can get this to work with nester masters, if somone has some code  and an exmaple of how to achieve this i would be very grateful

Thanks in advance for any help and support


Dan


Custom master page + on explorer minimizing + page should setup like maximized page + problem after

  

Hi

i am created a custom master page in sharepoint 2010 and applied the custom master page to MySite.

Problem:

on explorer maximization - team site is appearing properly

on explorer minimizing - team site is not appearing(it should appear as explorer maximized site page) - which is not happening

on refreshing the page (on explorer minimizing team site page) - then only it is appearing setting up properly.

pls help me to fix this issue.


MOSS 2010 Master page problem

  

Hi Everybody,

     I am facing a strange problem with sharepoint 2010 default.master page. suddenly it is showing as sharepoint 2007 default.master page. How can I get back the sharepoint 2010 default.master page. I tried to create a new team site in sharepoint 2010 and I opened the the site in sharepoint designer 2010 ,that new site default.master also showing with MOSS 2007 default.master page styles. Please Help me... 

Thanks in Advance... :'(

Regards,

Sarwa

 


Urgent Need help Ajax Page Loading Problem

  

Hello there...!

I am using .net framework 3.5 in my project.. and  I have used update panel in each page. And For Loading Progess bar I have used following code

    <script type="text/javascript">

        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)

        function BeginRequestHandler(sender, args) {
            var modalDialog = $find('<%= mpp.ClientID %>');
            if (modalDialog != null) {
                modalDialog.show();
            }

        }

        function EndRequestHandler(sender, args) {

            var modalDialog = $find('<%= mpp.ClientID %>');
            // get reference to modal popup using the AJAX api $find() function

            if (modalDialog != null) {
                modalDialog.hide();
            }

        }

    </script>

    <asp:LinkButton ID="LinkButton1" runat="server" Style="display: none;" Text="" />
    <asp:ModalPopupExtender ID="mpp" runat="server" TargetControlID="LinkButton1" PopupControlID="panLoading"
        CancelControlID="CancelButton" BackgroundCssClass="modalBackground" />
    <

Intellisense not working for nested master page

  

I am using Visual Studio 2008 SP1


I have two master pages:  TopLevelMaster and NestedMaster


When my page points to NestedMaster as it's master page, intellisense quits working in the .aspx page.


If I change my page to use TopLevelMaster as it's master page, intellisense works.


No matter what I use as the master I always get a green squiggly underline under the Content control that brings up a tooltip that says "Could not find ContentPlaceHolder1" in the current master page or pages"


TopLevelMaster exists in a different project than NestedMaster and the page.


When I say "intellisense quits working" here is what happens:  
If I type something between the Content tags I get no intellisense for asp controls:
<asp:Content ID="Content1" runat="server" etc.., etc..>
    Only html controls appear upon typing an open angle bracket here
</asp:Content>


If I instert a div element I can type an opening angle bracket and I see a list of all asp controls.  If I choose one and start typing there is no intellisense after that:
<asp:Content ID="Content1" runat="server" etc.., etc..>
    <div>
 &n

AJAX GridView Checkbox Select All in ASP.Net

  
In the previous article GridView Select Multiple Rows you learnt the multiple row selection in GridView control. Here you will get the C# code sample to select all the gridview rows using single checkbox server control. You can highlight the selected rows with different color and Font state Bold. If you want to use the selection values on different ASP.Net

AJAX GridView Paging and Sorting using C# in ASP.Net

  
To enable the GridView Paging and Sorting to update the GridView Data without refreshing the ASP.Net web page AJAX Extension controls are used. UpdatePanel is used to hold the GridView control that triggers the events for the controls placed inside it. By Default UpdatePanel triggers the asynchronous postbacks for its child controls.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend