Asked by:
Web forms in html?

Question
-
User-2138069979 posted
Hello,
I would like to know if it is possible to run a webfoms system inside an html, using something like iframe, and able to navigate the pages without problems?
Because I did and every time he called a new url instead of changing within the iframe, it changed the browser url.
Is there any way to hit this or how the project is unable to do?
regards
Wednesday, September 12, 2018 8:26 PM
All replies
-
User2053451246 posted
Hello,
I would like to know if it is possible to run a webfoms system inside an html, using something like iframe, and able to navigate the pages without problems?
Because I did and every time he called a new url instead of changing within the iframe, it changed the browser url.
Is there any way to hit this or how the project is unable to do?
regards
Wednesday, September 12, 2018 8:43 PM -
User-1716253493 posted
If the problem is opening url inside frames, you need to understand iframe targetting. Default target for the frames.
Give a name for each iframe ie "main", then set default target another frame to "main" for example.
If the link don't have it's own target, it will open to iframe target.
http://netobjects.com/en/nof/9/00/docs/help/creating_a_default_target_frame.htm
Thursday, September 13, 2018 2:53 AM -
User-2138069979 posted
I know, but in code behind using Response.Redirect to open new url.
I need the target be _self in redirect.
Thursday, September 13, 2018 1:16 PM -
User-893317190 posted
Hi AlexandreBispo,
Could you share how you design your page and your code behind?
It is difficult to know clearly about your requirement only by your response.
Best regards,
Ackerly Xu
Friday, September 14, 2018 7:27 AM -
User-1716253493 posted
You can set the target of the form
<form id="form1" runat="server" target="abc"> <div> </div> </form>
AFAIK, response.redirect will goto abc
Friday, September 14, 2018 7:30 AM -
User753101303 posted
Hi,
Response.Redirect tells the browser to point to another url while what is shown inside the frame is determined by a src attribute. AFAIK you have no other solution than to change this redirect approach?
What is the use case ? IMO for iframe the simpler it is, the better it is. If this to have a kind of menu it would be easier to use two Web Form pages...
Friday, September 14, 2018 12:44 PM