asoft

Hello

I want to open a new page in iframe using with ajax . It is done very well by hyperlink but I have no idea to how to implement ajax. If any body have any idea to open new page in iframe even on asp:button linkbutton or hyperlink. Plz help me urgent. Thanks in advance.



Re: Visual C# General open new page in frame

AndreyDev

Hi!

you don't need Ajax for it.

Use simple javascript instead.

to change location in Iframe use:

Code Block

1.document.getElementById('testiframe').src="http://location/page.html"

or

2. frames['testiframe'].location.href="http://location/page.html"






Re: Visual C# General open new page in frame

asoft

Thanks

I solved this problem by literal control on the event of button click

litframe.Text = "<iframe id='myframe' src='../secure/signup.aspx' runat='server' style='width: 566px; height: 275px'></iframe>";

another problem is that is want put ajax on datalist control. Have any idea for that

again thanks for your reply