Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Why my redirect not work?Why my redirect not work?
Previous
 
Next
New Post
2/7/2009 3:14 AM
 

hi all,

im create a module and add control(to another ascx), and write code below:
Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "viewCompanyDetail", "recordID=" + id))

why it doesn't work?
m i missing simething ?
any idea?
thx you

 
New Post
2/7/2009 4:32 AM
 

I think the code is correct, but it could be the code is not triggered at all by event.
Can you try Response.Write("test")
and see if it is printed?

If not, when you add a control (ascx), do you use condition if it is not postback?
If yes, try to remove that if condition.
Let me know if this works.

 
New Post
2/7/2009 9:39 AM
 

it can print out the word..

now i trying using another way:

Response.Redirect(EditUrl("ViewDetailAncment", "ViewDetailAncment", "ViewDetailAncment", "recordID=" + rid))

it work...i don't know what happen on this...

and, can i make this as popup window?

 
New Post
2/19/2009 8:53 AM
 

The pop up required a javascript, it can not be done in behind code.
What you can do use a literal control or label control.

Now try to get the url and paste into the control above.
 

ex: Dim str As string = EditUrl("ViewDetailAncment", "ViewDetailAncment", "ViewDetailAncment", "recordID=" + rid) <=== you get the url already

search on the internet how to do a pop up.

then just add the script in your control ex:

Lets say the literal control named litText
Then litText.Text = "<a href='" & str & "'>Pop me up</a>"

Hope this help

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Why my redirect not work?Why my redirect not work?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out