List objects on mobilewebforms with two different elements

ASP.NET

    Sponsored Links

    Next

  • 1. How can i force a CHTM response
    I'm trying to run an wap application on a Nokia 2630 phone, and the framework always sends <card> tags, but i know it supports <form> tags ... How can i force the framework to send CHTML code, instead of WML code ? Thanks Vitor
  • 2. Asp.net mobile app with SQLserver 2005
    hi, I already have an web application running. i need to get some forms of the app to be running on mobile devices. I am just wondering how can i connect to sqlserver 2005 webserver from my mobile application? Any tutorial on these would be nice
  • 3. Mobile IE TextBox font size...
    Greetings all! Quick question: Is there anyway to change the default font size of a text box render to Mobile Internet Explorer? I'm developing a Windows Mobile 2005 device... All textboxes in HTML / Asp.Net / Mobile Controls all render the textbox to one size only regardless of the size I specify. It works as expected in normal IE... I'd like to increase the font size in the text box because the device will be driven by finger rather than stylus... Cheers. Dan.

List objects on mobilewebforms with two different elements

Postby Chumley Walrus » Wed, 02 Feb 2005 09:29:24 GMT

I need to populate a List object in a mobilewebform with:

A list of league names (nfl, nba, mlb, etc)

..and two date designations for each league.

If a user comes to the wap webpage, he can select a league to view
scores, but a "yesterday's date" and "today's date" option can appear
by each league name.
How can I intertwine the league names with the date designations in a
List object?


Similar Threads:

1.Registering two Singleton remoting object on two different ports on the same machine

Hi.

I have an standard Win32 .NET application that uses a remoting entry
point for add-in applications to communicate with it.

Multiple instances of the Win32 application can be started on the same
machine at the same time (eg. different users logged in simultaneously
via Citrix or other). I facilitate this feature by dynamically
allocating a port when the application starts up. I do this by starting
at a configured port catching socket exceptions and simply incrementing
the port. When I find a port that doesn't generate a Socket bind
exception I write that value to the current user registry and add-ins
for the current user will read this port and connect.

My problem lies in the fact that even though the second instance of the
Win32 application will find a port and register a sever channel on it -
it doesn't start listening on that port. Only the first instance
started will actually bind to a port and start listening. I know this
for a fact since I'm looking at netlimiter for the two instances, and I
can see that only instance no. 1 is listening.

I'm just wondering WHY oh why I don't get any kind of exception during
this procedure. The below sample runs as I expect it. The first
RegisterChannel creates a socket exception and I increment the port.
The second iteration doesn't and that port is used.

while (!found || (findRemotingPortRetryCount == 0))
{
   IDictionary props = new Hashtable();
   props["typeFilterLevel"] = "Full";

   BinaryServerFormatterSinkProvider formatterProvider = new
      BinaryServerFormatterSinkProvider(props, null);

   try
   {
      ChannelServices.RegisterChannel(new TcpServerChannel("MyChannel",
startRemotingPort,
         formatterProvider), true);

         RemotingConfiguration.RegisterWellKnownServiceType(
            typeof(HostApplicationRemotingEntryPoint),
            "MyObjectUri",
            WellKnownObjectMode.Singleton);
   }
   catch (SocketException)
   {
      startRemotingPort++;
      findRemotingPortRetryCount--;
   }

      found = true;
}

2.Making sure an Element Group contains elements with either two attributes or one attribute

3.Found two different objects associated with the same URI

4.Registering same Singleton remoting object on two different ports on the same machine

Hi.

I have an standard Win32 .NET application that uses a remoting entry
point for add-in applications to communicate with it.

Multiple instances of the Win32 application can be started on the same
machine at the same time (eg. different users logged in simultaneously
via Citrix or other). I facilitate this feature by dynamically
allocating a port when the application starts up. I do this by starting
at a configured port catching socket exceptions and simply incrementing
the port. When I find a port that doesn't generate a Socket bind
exception I write that value to the current user registry and add-ins
for the current user will read this port and connect.

My problem lies in the fact that even though the second instance of the
Win32 application will find a port and register a sever channel on it -
it doesn't start listening on that port. Only the first instance
started will actually bind to a port and start listening. I know this
for a fact since I'm looking at netlimiter for the two instances, and I
can see that only instance no. 1 is listening.

I'm just wondering WHY oh why I don't get any kind of exception during
this procedure. The below sample runs as I expect it. The first
RegisterChannel creates a socket exception and I increment the port.
The second iteration doesn't and that port is used.

while (!found || (findRemotingPortRetryCount == 0))
{
   IDictionary props = new Hashtable();
   props["typeFilterLevel"] = "Full";

   BinaryServerFormatterSinkProvider formatterProvider = new
      BinaryServerFormatterSinkProvider(props, null);

   try
   {
      IChannel channel =
ChannelServices.GetChannel("HostApplicationChannel" +
startRemotingPort);

      ChannelServices.RegisterChannel(new TcpServerChannel("MyChannel",
startRemotingPort,
         formatterProvider), true);

         RemotingConfiguration.RegisterWellKnownServiceType(
            typeof(HostApplicationRemotingEntryPoint),
            "HostApplication" + startRemotingPort,
            WellKnownObjectMode.Singleton);
      }
      catch (SocketException)
      {
         startRemotingPort++;
         findRemotingPortRetryCount--;
      }

      found = true;
}

5.Deep copy between two different object.

There are two objects, instants of two different class, but they has
same schema.

Class ClientDivision
{
    public string Name
    {
        get {}; set {};
    }

    public string Manager
    {
        get {}; set {};
    }
}

Class ClientPerson
{
    public string Name
    {
        get {}; set {};
    }

    public int Age
    {
        get {}; set {};
    }

    public Division div
    {
        get {}; set {};
    }
}

Class ServerDivision
{
    public string Name
    {
        get {}; set {};
    }

    public string Manager
    {
        get {}; set {};
    }
}

Class ServerPerson
{
    public string Name
    {
        get {}; set {};
    }

    public int Age
    {
        get {}; set {};
    }

    public Division div
    {
        get {}; set {};
    }
}

I have a instant of ClientPerson and need to build a ServerPerson with
the value from ClientPerson. The following code is what I do that job
now.

ServerPerson sPerson = new ServerPerson();
sPerson.Name = cPerson.Name;
sPerson.Age = cPerson.Age;
sPerson.Div = new ServerDivision();
sPerson.Div.Name = cPerson.Div.Name;
sPerson.Div.Manager = cPerson.Div.Manager;

Like you see, all value pass statement wrote by my hand. It's ok when
the class's struct is simple. But will be a large work when it's
complex. In last few days, I even wrote about 300 lines of code just
for copy the value. As you know, nobody will like coding in this way.

So, I'm thinking to find or write a "Deep copy" like tool to do that
job for me. Is anyone has seen a tool like this?

6. How to serialize two different objects into one XML file

7. Get data from two different servers with two threads

8. Running two IIS's on two different 2003 server machines



Return to ASP.NET

 

Who is online

Users browsing this forum: No registered users and 86 guest