Login
Register
25-07-2008

Resources for the DotNetNuke Community
Join WebHost4Life.com
Support this site

  Support forums  

You need to be logged in in order to post to this forums.
SearchForum Home
  DotNetNuke Development  Templates  Help regarding ...
 Help regarding iframe
 
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Help regarding iframe
Posted: 07 Mar 06 9:55 PM

hello,

im  pretty new to this dnn thing. i have started it only a week ago, i have only learnt how to create modules in it and insert update delete data using the stored procedures (using the SQL Server 2000). now i have to use an iframe in an ascx page of  a module and load an aspx file in it. the problem is, i have tried evrything to use as the src in the iframe, bu tnothing seems to work.sometimes, the iframe is displayed empty and sometimes it shows another iframe inside it and sometimes it gives error. please let me know on how to do this thing. i have to develop the follwoing type of module. can u let me know how much time this would take using dnn approximately.

 

Connect to a SQL datasource and execute a stored procedure, display the data. Should be able to pass any of the session variable value as the parameter to the stored procedure. For example if the datacommand is like 'sp_GetData {userName}' the module should replace {username} with

Session("UserNae") and then call the stored precedure sp_GetData. For testing you can create a test stored procedure that will resturn you some test records from the pubs or northwind database. The datagrid should be in an Iframe so the whole page is not refreshed on post back just the grid in the iframe.

The datagrid should be generic enough to

- specify how may records to diaply per page

- Specify the width and height of the datagrid

- Have a record selector

- Allow to control the layout and style using the module.css

- Allow the Datagrid to auto-refresh (requery the data) based on a parameter speified in the module options page.

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 08 Mar 06 12:13 AM
Maria I absolutely don't understand why you need that IFrame ???
And Iframe is used to integrate in dnn a second web page, from outside dnn. So if you want to develop a page with a datagrid and all the features to need in it, just do so. But as a separate project from dnn. Then link that second "external" web site on the iframe.



Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 08 Mar 06 1:05 AM
actually i have to refresh only the area of the page where the datagrid is loaded and i have to reload the datagrid only, so i need to use the iframe, becuase otherwise the whole page is refreshed and i dont want that.
imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 08 Mar 06 1:21 AM
Then do as I pointed earlier: create that page completely outside dnn, not as a dnn module (see www.datagridgirl.com for good example of datagrid programming).

Or you can try looking at AJAX and use a different approach for the datagrid.

Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 08 Mar 06 1:47 AM

i have done that already..

i give the path

http://localhost/docs/gridform.aspx

but i get the error ...that this path is inaccessible or doesnot exist

docs is a virtual directory and i have full control over it i have also checked the windows permissions and i m the administrator of the system

what would be causing the problem?

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 08 Mar 06 9:07 AM

Can you view that page from a usual browser? I mean from outside dnn?


Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 08 Mar 06 10:02 PM

actually i can view this page outside dnn

since im using s,net 2005 i  get an automatically created devlopment server by vs.net 2005, and when i run the website i get the following url that runs the page

http://localhost:2431/TestingGridForm/gridform.aspx

but when i use this path in iframe nothing is displayed in the iframe rather i get an error that says that could not find the page,  the error i get is :

The page cannot be displayed

The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

Please try the following:

  • Click the refresh.gif (82 bytes) Refresh button, or try again later.
  • If you typed the page address in the Address bar, make sure that it is spelled correctly.
  • To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
  • See if your Internet connection settings are being detected. You can set Microsoft Windows to examine your network and automatically discover network connection settings (if your network administrator has enabled this setting).
    1. Click the Tools menu, and then click Internet Options.
    2. On the Connections tab, click LAN Settings.
    3. Select Automatically detect settings, and then click OK.
  • Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed.
  • If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
  • Click the Back button to try another link.


Cannot find server or DNS Error
Internet Explorer

i dont know how can i solve this problem :(

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 12 Mar 06 1:26 AM
 
since im using s,net 2005 i  get an automatically created devlopment server by vs.net 2005, and when i run the website i get the following url that runs the page


That's exactly what I was refering too: you cannot assume that since your page is browsable from withing vs.net 2005 it will be accessible without it.
You have to configure your IIS web server using a virtual directory that points to this page and then use the url for the page using that virtual path on the iframe module.

Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 12 Mar 06 10:31 PM

i have even tried to do that

i created a virtual directory and created a project within that directory, then i created the page e.g. dgmod.aspx and the url with which i could run it was http://localhost/docs/dgmod.aspx. the file was running like this but when i tries to pass  the url to the builtin iframe module of dnn, it said please enter a valid url :S \

the only time when this url field does not give error is when i use only the filename iu.e. dgmod.aspx in the url field. and that makes it unable to access it since it doesnt know its actual path ... what should i do  now?

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 15 Mar 06 1:33 AM Modified By dnnjungle  on 3/15/2006 1:33:58 AM)
I think your problem is on the url validation on the IFRAME. I think it validates if the url is correct, but it does wrongly :(

You could try disabling the validator on the IFRAME and try again or changing the validtion expression:

<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>

(this is on the EditIFrame.ascx file)

Disgrafic.com
  DotNetNuke Development  Templates  Help regarding ...
© Vicenç Masanas Terms Of Use Privacy Statement   
.