<do prev>

B

biggir

Hi,

When i try to navigate between two pages and want to
activate a particular form it fails :

NavigateUrl=wap.aspx#form2

How do you do this ?

Is this possible to render the prev anchor ?

Regards

Biggir
 
V

Vinod Kumar[MVP]

Hi

Easiest way to activate a particular form is to use the Property ActiveForm.ActiveForm property is used to Gets or sets the page's currently active form

Code Snippe

private void Command1_Click(object sender, System.EventArgs e

ActiveForm=Form2


private void Command2_Click(object sender, System.EventArgs e

ActiveForm=Form3


Regards

Vinodh Kuma
Microsoft MVP|Author|Arc
www.dotnetforce.co
Force Behind .NET
 
O

olivier

Thanks.

Of course

But i want to navigate between two pages not two forms.

So this doesn't work.


Vinod Kumar said:
Hi,

Easiest way to activate a particular form is to use the Property
ActiveForm.ActiveForm property is used to Gets or sets the page's currently
active form.
 
V

Vinodh Kumar[MS MVP]

Hi,
Sorry..

have u tried using querystring .. like
Link1.NavigateUrl = "MobileWebForm2.aspx?f=2";

and load the form depending upon the querystring in page load of the second form?

if (Request["f"].ToString()=="2")
{
ActiveForm = Form2;
}

If this is not ur requirement pls ignore it..

Regards,

Vinodh Kumar
Microsoft MVP|Author|.NET Arch
www.dotnetforce.com
Force Behind .NET

----- olivier wrote: -----

Thanks.

Of course

But i want to navigate between two pages not two forms.

So this doesn't work.


Vinod Kumar said:
ActiveForm.ActiveForm property is used to Gets or sets the page's currently
active form.
 
O

olivier

yes but i lose the value of variables

the scenario :

page n°1form n°4 (+variables) -> page n°2 form n°1

and i want :

page n°2 form 1 -> page n°1 form 4 and keep my variables

it's obvious with the do prev tag !!!!! why don't they have include it ?(
and render in chtml with javascrpt: history.back)

regards

(sorry for my english)


Vinodh Kumar said:
Hi,
Sorry..

have u tried using querystring .. like
Link1.NavigateUrl = "MobileWebForm2.aspx?f=2";

and load the form depending upon the querystring in page load of the second form?

if (Request["f"].ToString()=="2")
{
ActiveForm = Form2;
}

If this is not ur requirement pls ignore it..

Regards,

Vinodh Kumar
Microsoft MVP|Author|.NET Arch
www.dotnetforce.com
Force Behind .NET

----- olivier wrote: -----

Thanks.

Of course

But i want to navigate between two pages not two forms.

So this doesn't work.


Vinod Kumar said:
ActiveForm.ActiveForm property is used to Gets or sets the page's currently
active form.
Microsoft MVP|Author|Arch
www.dotnetforce.com
Force Behind .NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top