Search:
Namespaces
Discussions
.NET v1.1
Feedback
buttons/links in mobile internet toolkit
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngmob' list
.
Mayur Bapat
Hi,
I am developing a mobile web application.
In which after login page the user can navigate
thr' 10 different pages/cards.
Now to give the facility of log off in every page
(after login ofcourse), I am creating that much
logout buttons/links in each form
and on onclick of each I am writing the same
lines of code or method...
So is there any other approach available in mit,
which will help me to create just one logout
link/button, which will be visible in all
pages/cards ?
Thanks in anticipation,
Mayur.
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Reply to this message...
Anil John
Mayur,
An option to consider is based on a question that was asked some time ago a=
bout mapping the right softkey in your mobile device to a specific action. =
Please see that thread here at:
http://www.aspfriends.com/search/msg.asp?msgid=3D610475
I am sure that others will chime in if there is a more elegant way to solve=
the problem.
Anil
---------- Original Message ----------------------------------
From: Mayur Bapat <
Click here to reveal e-mail address
>
Reply-To: "aspngmob" <
Click here to reveal e-mail address
>
Date: Wed, 27 Mar 2002 06:54:10 -0800 (PST)
Hi,
I am developing a mobile web application.
In which after login page the user can navigate
thr' 10 different pages/cards.
Now to give the facility of log off in every page
(after login ofcourse), I am creating that much
logout buttons/links in each form
and on onclick of each I am writing the same
lines of code or method...
So is there any other approach available in mit,
which will help me to create just one logout
link/button, which will be visible in all
pages/cards ?
Thanks in anticipation,
Mayur.
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards=AE
http://movies.yahoo.com/
| [aspngmob] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
--
---------------------------------------------------------
- Anil John [
Click here to reveal e-mail address
]
-
http://www.Kylas.com
- Connect with .net - Anytime. Anywhere.
---------------------------------------------------------
--
Reply to this message...
Simon Calvert
You could maybe try a user control (ascx) embedded in a footer template
for each form. At least in this sense the ascx is a reused component and
is an easy declarative reusable component, but would require you to add
it to every form, but could maybe share a common event handler.
Simon Calvert
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From: Anil John [mailto:
Click here to reveal e-mail address
]=20
Sent: Wednesday, March 27, 2002 12:56 PM
To: aspngmob
Subject: [aspngmob] Re: buttons/links in mobile internet toolkit
Mayur,
An option to consider is based on a question that was asked some time
ago about mapping the right softkey in your mobile device to a specific
action. Please see that thread here at:
http://www.aspfriends.com/search/msg.asp?msgid=3D610475
I am sure that others will chime in if there is a more elegant way to
solve the problem.
Anil
---------- Original Message ----------------------------------
From: Mayur Bapat <
Click here to reveal e-mail address
>
Reply-To: "aspngmob" <
Click here to reveal e-mail address
>
Date: Wed, 27 Mar 2002 06:54:10 -0800 (PST)
Hi,
I am developing a mobile web application.
In which after login page the user can navigate
thr' 10 different pages/cards.
Now to give the facility of log off in every page
(after login ofcourse), I am creating that much
logout buttons/links in each form
and on onclick of each I am writing the same=20
lines of code or method...
So is there any other approach available in mit,
which will help me to create just one logout
link/button, which will be visible in all=20
pages/cards ?
Thanks in anticipation,
Mayur.
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards(r)
http://movies.yahoo.com/
| [aspngmob] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
--
---------------------------------------------------------
- Anil John [
Click here to reveal e-mail address
]=20
-
http://www.Kylas.com
- Connect with .net - Anytime. Anywhere.
---------------------------------------------------------
--
| [aspngmob] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Mayur Bapat
Hi Anil,
I visited the url
http://www.aspfriends.com/search/msg.asp?msgid=610475
My aim is to show links in the "options" instead of
showing it in the card.
In Nokia 7110 I observed that, if there is only one
command button
in your Form, then MMIT puts it in the Options,
but if there are more than one command buttons, then
it shows them as links in the output card
and not in the Options.
So how to control this behavior ?
I tried writing device specific content template for
nokia 7110 but the problem is unsolved ....
One more thing what should be the value of the HREF
attribute ?
I want to show another Form from the same aspx page,
so what should be the value of the href ?
if I gives href="#Form2", or if I gives any function
name, it gives error ....
"Page cannot be shown"
The code is as follows:
----------------------
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="myapp.aspx.cs"
Inherits="myapp.MobileWebForm1"
AutoEventWireup="false" %>
<meta content="Microsoft Visual Studio 7.0"
name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="Mobile Web Page"
name="vs_targetSchema">
<body xmlns:mobile="Mobile Web Form Controls">
<mobile:form id="Form1" title="welcome"
runat="server">
<mobile:Label id="labname" runat="server">Enter
Name</mobile:Label>
<mobile:TextBox id="txtName"
runat="server"></mobile:TextBox>
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1"
runat="server">
<Choice Filter="isNokia7110">
<ContentTemplate>
<do type="accept" label="continue">
<go href="but1_Click" />
</do>
</ContentTemplate>
</Choice>
<Choice>
<ContentTemplate>
<mobile:Command id="but1" runat="server"
onClick="but1_Click">continue</mobile:Command>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:form>
<mobile:form id="Form2" title="welcome"
runat="server">
<mobile:Label id="labmsg"
runat="server">Label</mobile:Label>
<mobile:Label id="labemail" runat="server">Enter
Email</mobile:Label>
<mobile:TextBox id="txtEmail"
runat="server"></mobile:TextBox>
<mobile:Command id="btn2"
runat="server">submit</mobile:Command>
</mobile:form>
</body>
<script runat="server">
public void but1_Click(object sender, System.
EventArgs
e)
{
labmsg.Text = "welcome " + txtName.Text;
//objMyClass.setName(txtName.Text);
ActiveForm =Form2;
}
</script>
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
Reply to this message...
Anil John
Your..
<do type="accept" label="continue">
<go href="but1_Click" />
</do>
is refering to a function rather than a url... Is that valid? Also I assume
that the public void but1_Click(object sender, System.
EventArgs
e) function
is in your codebehind file?
Anil
-----Original Message-----
From: Mayur Bapat [mailto:
Click here to reveal e-mail address
]
Sent: Monday, April 01, 2002 3:37 AM
To: aspngmob
Subject: [aspngmob] Re: buttons/links in mobile internet toolkit
Hi Anil,
I visited the url
http://www.aspfriends.com/search/msg.asp?msgid=610475
My aim is to show links in the "options" instead of
showing it in the card.
In Nokia 7110 I observed that, if there is only one
command button
in your Form, then MMIT puts it in the Options,
but if there are more than one command buttons, then
it shows them as links in the output card
and not in the Options.
So how to control this behavior ?
I tried writing device specific content template for
nokia 7110 but the problem is unsolved ....
One more thing what should be the value of the HREF
attribute ?
I want to show another Form from the same aspx page,
so what should be the value of the href ?
if I gives href="#Form2", or if I gives any function
name, it gives error ....
"Page cannot be shown"
The code is as follows:
----------------------
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="myapp.aspx.cs"
Inherits="myapp.MobileWebForm1"
AutoEventWireup="false" %>
<meta content="Microsoft Visual Studio 7.0"
name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="Mobile Web Page"
name="vs_targetSchema">
<body xmlns:mobile="Mobile Web Form Controls">
<mobile:form id="Form1" title="welcome"
runat="server">
<mobile:Label id="labname" runat="server">Enter
Name</mobile:Label>
<mobile:TextBox id="txtName"
runat="server"></mobile:TextBox>
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1"
runat="server">
<Choice Filter="isNokia7110">
<ContentTemplate>
<do type="accept" label="continue">
<go href="but1_Click" />
</do>
</ContentTemplate>
</Choice>
<Choice>
<ContentTemplate>
<mobile:Command id="but1" runat="server"
onClick="but1_Click">continue</mobile:Command>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:form>
<mobile:form id="Form2" title="welcome"
runat="server">
<mobile:Label id="labmsg"
runat="server">Label</mobile:Label>
<mobile:Label id="labemail" runat="server">Enter
Email</mobile:Label>
<mobile:TextBox id="txtEmail"
runat="server"></mobile:TextBox>
<mobile:Command id="btn2"
runat="server">submit</mobile:Command>
</mobile:form>
</body>
<script runat="server">
public void but1_Click(object sender, System.
EventArgs
e)
{
labmsg.Text = "welcome " + txtName.Text;
//objMyClass.setName(txtName.Text);
ActiveForm =Form2;
}
</script>
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
| [aspngmob] member
Click here to reveal e-mail address
= YOUR ID
| http://www.asplists.com/asplists/aspngmob.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
Mayur Bapat
yes Anil,
'but1_click' is the function name which is
in the in the codebehind file...
I know it is wrong to give function name in place of
URL...
But what is the solution then ?
Is it that i have to place the targeted form in
another aspx page and then assign that aspx page
in the href attribute ?
And will you please help me out and explain the
button/link placing behavior in case of Nokia
7110...
Thnax,
Mayur
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/
Reply to this message...
Anil John
Mayur,
I think that you definitely have to give a url rather than a function name
for the navigation link.
As far as the what you would like to do with the softkey on the Nokia 7110,
since I am not sure about the answer, I am going to defer to the MMIT
experts on this list.
I also wanted to make you aware of what the escalation guidelines are if you
do not get a satisfactory answer:
Step 1. Send it again and preface subject line with : NOT ANSWERED BEFORE +
old subject line. You can do that whenever a couple of hours passes and your
question is ignored or answered incompletely.
Step 2.If that doesn't work, then join and send the question to
[aspngescalate] @
http://www.learnasp.com/aspfriends/aspngescalate.asp
But that is a very strict list and the list rules are explained here.
http://www.learnasp.com/aspfriends/aspngescalate.asp?tab=rules
Anil
-----Original Message-----
From: Mayur Bapat [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, April 02, 2002 12:03 AM
To: aspngmob
Subject: [aspngmob] Re: buttons/links in mobile internet toolkit
yes Anil,
'but1_click' is the function name which is
in the in the codebehind file...
I know it is wrong to give function name in place of
URL...
But what is the solution then ?
Is it that i have to place the targeted form in
another aspx page and then assign that aspx page
in the href attribute ?
And will you please help me out and explain the
button/link placing behavior in case of Nokia
7110...
Thnax,
Mayur
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/
| [aspngmob] member
Click here to reveal e-mail address
= YOUR ID
| http://www.asplists.com/asplists/aspngmob.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
Mayur Bapat
Anil,
I was just trying to write the code
similar to the source code given in mobile
quickstart--
http://www.gotdotnet.com/MobileQuickstart/util/SrcView.aspx?src=DeviceSpecific%2fArbitrary.src
but was unsuccessful, not sure whether it is
allowed
to write as shown in the above source code,
in case of WML.
Regards,
Mayur
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
Reply to this message...
Anil John
Mayur,
Yes you are indeed allowed to use WML when using
DeviceSpecific
templates...
But I think what you are trying to do is a little bit different... If I
remember correctly, what you would like to do is somehow map the Options
Softkey to a List of links? Correct?
If so, I am hoping that one of the MS MMIT folks can chime in tell us if
that is possible.
Anil
-----Original Message-----
From: Mayur Bapat [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, April 04, 2002 4:38 AM
To: aspngmob
Subject: [aspngmob] Re: buttons/links in mobile internet toolkit
Anil,
I was just trying to write the code
similar to the source code given in mobile
quickstart--
http://www.gotdotnet.com/MobileQuickstart/util/SrcView.aspx?src=DeviceSpecif
ic%2fArbitrary.src
but was unsuccessful, not sure whether it is
allowed
to write as shown in the above source code,
in case of WML.
Regards,
Mayur
--- Anil John <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
| [aspngmob] member
Click here to reveal e-mail address
= YOUR ID
| http://www.asplists.com/asplists/aspngmob.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
System.EventArgs
System.Web.UI.MobileControls.DeviceSpecific
System.Web.UI.MobileControls.TextBox
System.Web.UI.WebControls.TextBox
System.Windows.Forms.TextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com