Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Satyendra Kumar(Analyst Programmer) 8-May-13 7:01am    
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....
[no name] 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

Hi,

You can use Multiview like tihs:-
XML
<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:-

C#
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900