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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Inquiry About DotNetNukeInquiry About DotNetNuke
Previous
 
Next
New Post
6/30/2006 1:15 AM
 

http://127.0.0.1/sample/sample.asp

still won't work. The error is Invalid URL still. Is there other way around?... Thanks for the help. I really appreciate.

 

 

 
New Post
6/30/2006 2:17 AM
 

the most probable cause for this error is that the page does not actually exist.. have you tried visiting http://127.0.0.1/sample/sample.asp or http://localhost/sample/sample.asp directly from your browser? The IFrame module does nothing fancy, it just puts an iframe in a page, with as source attribute the page you want to display.

Can you try this in just a plain html file:

<iframe src="http://127.0.0.1/sample/sample.asp"></iframe>

if this is working, you probably entered the wrong parameters in the iframe module.

Cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
6/30/2006 2:40 AM
 

Erik,

 

Thank you very much! I use Text/HTML module to load my ASP files, and it works!

Thanks!

 

Jherson

 
New Post
6/30/2006 6:33 AM
 
jherson_catubigan wrote

http://127.0.0.1/sample/sample.asp

still won't work. The error is Invalid URL still. Is there other way around?... Thanks for the help. I really appreciate.



I had learnt this through a thread in the forums, that Iframe module tries to validate the URLs entered, by using a 'regular expression'. This RegEx does not accept the string  "http://localhost..." (i don't know why was it designed like that). The work around mentioned in the thread was...

1. open EditIframe.ascx (in the folder C:/dotnetnuke/DesktopModules/) in notepad.

2. near the top of the file locate the section-

<td width="400"><asp:textbox id="txtSrc" cssclass="NormalTextBox" columns="50" runat="server" />
            <asp:regularexpressionvalidator id="valURL" runat="server" cssclass="NormalRed" controltovalidate="txtSrc" errormessage="You Must Enter a Valid URL"
                display="Dynamic" resourcekey="valURL.ErrorMessage" validationexpression="^((http|https)\://)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&amp;%\$#\=~])*[^\.\,\)\(\s]$"></asp:regularexpressionvalidator>
</td>

3. delete the section in bold i.e.
<asp:regularexpressionvalidator .. .. ... ..</asp:regularexpressionvalidator>

4. Save it.

URLs wont be validated in iframe module now.

However i dont know how healthy is this approach ...

Raghu.

Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
New Post
6/30/2006 6:36 AM
 

If it's working in a text/html module, then it should work in the iframe module as well. If not, try to see what the module is doing different by looking at the source of the page.

cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Inquiry About DotNetNukeInquiry About DotNetNuke


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