how to move from one page to other

M

mohammad asif

I am designing a new module for dotnetnuke. The modules retrieves data in a
datalist which has linkbutton embedded. The link button is supposed to take
the user to a different page which shows details about what the user has
just clicked. This is where I am lost. Can anybody help? thanks
 
T

Tasos Vogiatzoglou

In the event listener of the linkbutton use Server.Transfer to navigate
to an aspx page.

The benefit of using Server.Transfer instead of Repsonse.Redirect is
that you can keep HttpContext, so you can do the following

HttpContext[var] = value;
Server.Transfer("newPage.aspx");

and in your newPage.aspx

if (HttpContext[var]!=null) {
ProcessVarParameter(HttpContext[var]);
}

Keep in mind that Server.Transfer works only for .aspx pages in the
same application domain ...

Tasos
 

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
474,141
Messages
2,570,817
Members
47,364
Latest member
Stevanida

Latest Threads

Top