Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6802465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:13:36+00:00 2026-05-26T19:13:36+00:00

I’ve downloaded the AMF framework (Application Mobile Framework) to develop easily a mobile application

  • 0

I’ve downloaded the AMF framework (Application Mobile Framework) to develop easily a mobile application .NET and the jQuery UI mobile.

I have the following html structure:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LandingPage.ascx.cs" Inherits="mobile.LandingPage" %>
<%@ Register TagPrefix="mob" Namespace="Mobile.WebControls" Assembly="AMF" %>
 <mob:MobilePage Id="mobilePage" Theme="H" runat="server">
 <Header>
     <asp:Label runat="server" ID="testLabel"></asp:Label>
 </Header>
 <Content>
     <p>
         Welcome in Asp.net Mobile Framework (AMF): The Web Framework for make Web      Application. For Smartphones & Tablets.
     </p>
 </Content>
</mob:MobilePage>

But when I want to set the testLabel in the code-behind file I get a nullReferenceException in C#.

The first part of the code of the class from MobilePage in the AMF.dll looks the following

[ParseChildren(ChildrenAsProperties = true, DefaultProperty = "Items")]
[ToolboxData("<{0}:MobilePage runat=server></{0}:MobilePage>")]
public class MobilePage : Div
{
    [Browsable(false)]
    public ArrayList Items
    {
        get;
        set;
    }

I have also tried to set ParseChildren to false and to remove the DefaultProperty. In the code behind I have also tried the following:

 testLabel = new Label() { Text="hello"};

This prevents the nullReferenceException but I didn’t see any text.

Does anyone have a solution/suggestion for this problem?

I am using C#3.5

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:13:36+00:00Added an answer on May 26, 2026 at 7:13 pm

    After a whole day of searching I’ve found that the AMF framework don’t support view state and form controls:

    “In AMF, we can have many mobile page in one asp.net page. We don’t use form control () because we can have multiple form in the same asp.net page. So, standard webcontrol don’t work. We don’t use Viewstate too.”

    The following code works well in the code behind file:

            Control control = ControlHelper.GetControlById(mobilePage, "testLabel");
            if (control is Label)
            {
                Label testTekst = control as Label;
                testTekst.Text = "This is the tekst that comes in the label";
            }
    

    Thanks for all of your help and suggestions!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.