Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I have four .asp forms and i want to show all form one by one in iframe on next button click
 
please help me to do this
Posted 8-May-13 1:52am
Comments
   
Hi Susheel can you please explain your need as I am understanding your need is to create a screen like wizard. If I am right please tell me so that I can help you....
Susheel Kumar Verma at 8-May-13 7:14am
   
hi satyendra my senario is i want to open a popup window using jquery ifram and i have four .asp forms for some validation step i am storing all forms in array and i hava a while loop until my button flag is next the next form should come and at last finish button clicked then popup should close
plz help..

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
You can use Multiview like tihs:-
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            View1
            <asp:Button ID="btnView1" runat="server" Text="Next" onclick="btnView1_Click" />
        </asp:View>
        <asp:View ID="View2" runat="server">
            View2
            <asp:Button ID="btnView2" runat="server" Text="Next" onclick="btnView1_Click" />
        </asp:View>
        <asp:View ID="View3" runat="server">
            View3
            <asp:Button ID="btnView3" runat="server" Text="Next" />
        </asp:View>
    </asp:MultiView
 
And in code behind please write like this:-
 
protected void btnView1_Click(object sender, EventArgs e)
        {
            MultiView1.ActiveViewIndex += 1;
        }
 
Please modify it according to your need and handle all cases so that it will not generate errors.
 
Thanks
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 381
1 Praneet Nadkar 237
2 Marcin Kozub 225
3 Sergey Alexandrovich Kryukov 195
4 Shweta N Mishra 161
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 8 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100