Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

master page error

Posted: Dec/14/2010   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:236   Vote Up (0)   Vote Down (0)    

I'm doing an application which has already contains a master page named Master.master. And all related web forms(Webpage) are running well. But I create another master page in same application named Profile.master for some other web form(Webpage). But this time some of the related pages are running a blank page and some are generating an error that is:-

is not allowed here because it does not extend class 'System.Web.UI.Page'.

please help me to rectify this error.



Vishal Purohit

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Caputurig Back Button Event & Force The Page To Load From Server:

  
I think in many time developer need this event, which is not provided by any browser and it is not captured by any javascript event.In this Article you see how you capture this event and how you force the browser to load the page from server.

open datareader associated with this connection error...

  

I'm trying to figure out how I can get around an error I get when multiple users are accessing different my site. I'm getting an error:

there is already an open datareader associated with this connection which must be closed first

It's not the same query everytime but I recently triggered it on this statement:

Dim adapterSavedState As New SQLDataAdapter("SELECT SavedStateContactView, SavedStatePropertyView, SavedStateTransView, SavedStateCompanyView FROM WebusersProfiles WHERE ContactID = '" & Session("ContactID") & "'", myConnection)
    Dim dtSavedState As New DataTable()
    adapterSavedState.Fill(dtSavedState)
         Dim rowSavedState As DataRow
         For Each rowSavedState In dtSavedState.Rows
             If Request.QueryString("View") = "Contact" Then
                SavedState = rowSavedState("SavedStateContactView").ToString()
            Else If Request.QueryString("View") = "Property" Then
                SavedState = rowSavedState("SavedStatePropertyView").ToString()
            Else If Request.QueryString("View") = "Trans" Then
                SavedState = rowSavedState("SavedStateTransView").ToString()
            Else If Request.QueryString("View") = "Company" Then
                SavedState = rowSavedState("SavedStateCompanyView").ToString()
            End If
         Next rowSavedState


I define my connection in my basepage

    Public Dim MyConnection As SqlConnection
    Public Shared Dim strSite As String = "dev"
        
    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
        myConnection = New SqlConnection("server=xxxx;database=xxxxx;User ID=xxxxx;Password=xxxxx;")


Where is my issue and how can I overcome it? This is a .net 1.1 site so MARS I know is not available...


In VB.Net - how to login on a website and access another page maintaining the session

  

Have a project where I need to access a RSS feed.   The issue is this RSS feed, you need to be logged in as a user.   They have a simple web form (login + password).   How do I?

1) Post a web form with my login and password

2) Maintaining Session (w/successful login), do an additiional GET to retrieve the RSS feed.

I am doing this in an ASP.Net page so it all happens server side in VB.Net

Brian 


page refresh count

  

hi for all

please i want calculate number of refresh per page how can i do that 


The remote server returned an error: (403) Forbidden.

  

Hi All,

i have a program in vb.net..i use the webrequest to post the data to another page (http://localpost/posReceived.aspx), and use the webResponse to get the back the response from the remote page.

When i run this program, it returned error "The remote server returned an error: (403) Forbidden.". I have no idea on this. Coz my aspx page and posReceived.aspx are placed in the same server and same directory. I supposed it should be worked without any security concerns.

Can anyone help me to solve it. Thanks a lot!

 

 

 


Help Need to show html page inside..an aspx page..

  

Hi All,

I trying to show a html file inside my aspx page. I will be greatful for your help.


Modal popup panel not hiding on page load, hides on postback

  

When I browse to my page that has the modal popup panel on it, the panel initially is visable, and when I do a postback it acts as intended.  Anyone seen this?  Please let me know if you need the master page....

 

<%@ Page Title="Mystores User Management" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/WanSupport.Master"
    CodeBehind="Default.aspx.vb" Inherits="WANSupport._Default5" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="clear: both; width: 100%">
        <div style="width: 300px; float: left; margin-top:20px;">Users<br />
            <asp:ListBox ID="lbUserList" runat="server" CssClass="userManagementUserList" Rows="15"></asp:ListBox>
            <asp:Button ID="cmdSelectUser" runat="server" Text="Select" CssClass="userManagementButtonTop" />
            <br />
            <asp:TextBox ID="txtUserListFilter" runat="server" CssClass="userManagementUserList"></asp:TextBox>
            <asp:Button ID="cmdFilterUserList" runat="server" Text="Filter"/>
            <br />
            <br />
            <asp:Button ID="cmdAddNewUser" runat="server" Text="Create a new user" />
        </div>
        <div style="width: 600px; float: left; margin-left:20px; margin-top:20px;">
            <asp:Panel ID="pnlUserDetail" runat="server" Visible="false">
                <table class="style1">
                    <tr>
                        <td class="userManagementTableLabelRight">
                            Username</td>
                        <td style="width:200px;">
                            <asp:Label ID="lblUsername" runat="server" Text=""></asp:Label>
                        </td>
                        <td>
                            Access Groups</td>
                    </tr>
                    <tr>
                        <td class="userManagementTableLabelRight">
                            Name</td>
                        <td>
                            <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                        </td>
                        <td rowspan="9" style="vertical-align:top;">
                            <asp:ListBox ID="lbAccessGroups" runat="server" Width="150px" Rows="10"></asp:ListBox>
                            <asp:Button ID="cmdRemoveGroup" runat="server" Text="Remove" CssClass="userManagementButtonTop" />
                            <asp:ConfirmButtonExtender ID="cmdRemoveGroup_ConfirmButtonExtender" 
                                runat="server" ConfirmText="Are you sure you want to remove this access group?" 
                                Enabled="True" TargetControlID="cmdRemoveGroup">
                            </asp:ConfirmButtonExtender> 
                            <br />
                            <asp:TextBox ID="txtAddGroup" runat="server" Width="150px"></asp:TextBox>
                            <asp:Button ID="cmdAddGroup" runat="server" Text="Add" />
                        </td>
                    </tr>
                    <tr>
                        <td class="userManagementTableLabelRight">
                            Company</td>
                        <td>
                            <asp:Label ID="lblCompany" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="userManagementTableLabelRigh 

Error Creating Control

  

I have created a sample Web App. for creating dynamic controls. It worked fine when I originally created it, however after closing the solution and opening a couple days later this is what happens. Any ideas why?

 

Error Creating Control - ScriptManager1, Oject Reference not set to an instance of an object. 

Error Creating Control - Button1, Oject Reference not set to an instance of an object. 

Error Creating Control - UpdatePanel1, Oject Reference not set to an instance of an object.

 

<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication5._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
 <asp:Button ID="Button1" runat="server" Text="Button" />
    <div style="text-align: center; float: left; width: 336px;">
        <div style="background-color: Aqua; ">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <br />
                <asp:PlaceHolder runat="server" id="myPlaceHolder" />
                <br />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="MyButton" EventName="Click" />
            </Triggers>

            </asp:UpdatePanel>
       </div>
   </div>

   <div style="text-align: center; float: left; width: 336px;">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Button ID="btnAddTextBox" runat="server" Text="Add Control" OnClick="btnAddTextBox_Click" Width="200" />
            <br /> <br />
            <asp:Button ID="RemoveTextBoxButton" runat="server" Text="Remove Control" OnClick="RemoveTextBoxButton_Click" Width="200" />
            <br /> <br />
            <asp:Button ID="MyButton" runat="server" Text="My Button" Width="200" />
            <br /> <br />
            <asp:Label runat="server" ID="MyLabel"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>
    
</div>

</asp:Content>


 

 

 

 

 


Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element

  

Hello,

I am facing this error 

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.

Parameter name: element

while using Ajaxtoolkit ModelPopupextender with listview, actually I am retriving image from database to the listview in VS 2008. 

Can anyone please help me out of this..


How to Reset the page after Jquery Validation on Asyncronous Postbacks

  

I am having some problem with Jquery validation.

In my application i am using jquery validation plugin..I am using Updatepanels and i am validating using

Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(ValidateMyForm);

and ValidateMyform will validate on each button click...

var objPost = args.get_postBackElement();
    if (objPost === null || objPost === undefined) return;
    if (objPost.type == 'submit') {
      
        if (objPost.id == 'btnUpdate') {
             var isValid = $('#form1').validate({
                errorClass: 'error',
               
             },
                invalidHandler: function (e, validator) {
                    var errors = validator.numberOfInvalids();
                    if (errors) {
                        //custom error message
                    }
              }    

            }).form();

            if (!isValid) {
                CancelPostback(sender, args);
            } else {
                $('form1').submit();
                $('#form1').get(0).reset();

}

Here I want to get back the page to normal stage(like after a full page postback)...even though after async postback the validation is still active...it should not get back to normal and its throwing errors if i enter something wrong...this is because the page is not fully refreshed on asyc postbacks...I just want get the like the normal after each asyc post back...

I tried using submit and reset to reset the page but its became to normal..the validation is still active...I have no idea what to do..

i am very new to jquery and i am facing many problems...so please kindly help me out in this...


 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge