Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi how can I define and use view in asp.net ?
thanks
Posted
Comments
Vani Kulkarni 20-Jun-12 7:45am    
What View are you talking about?
1) ViewState
2) MultiView Control
3) ASP.Net MVC - View
4) SQL View?
Sandeep Mewara 20-Jun-12 8:07am    
Good question! :)
veusk 20-Jun-12 23:51pm    
use of sql view in asp.net

View State is one of the most important and useful client side state management mechanism.

It can store the page value at the time of post back (Sending and Receiving information from Server) of your page.

ASP.NET pages provide the ViewState property as a built-in structure for automatically storing values between multiple requests for the same page.

View state data is encrypted and cannot be viewed with software like FireBug

Understanding ASP.NET View State[^]
Here you can get detailed description with how you can interpret (and protect) the data stored in View State.

Also refer:
An Introduction to View State[^]
 
Share this answer
 
look these article i hope it will help you

1.[^]
2.[^]
3.[^]
 
Share this answer
 
Comments
Sandeep Mewara 20-Jun-12 8:07am    
How do you know which View OP is talking of?
XML
<%@ Page Language="VB" %>

<script runat="server">

    Sub Button1_Click(s as Object, e as EventArgs)
        MultiView1.SetActiveView(View1)
    End Sub

    Sub Button2_Click(s as Object, e as EventArgs)
        MultiView1.SetActiveView(View2)
    End Sub

    Sub Button3_Click(s as Object, e as EventArgs)
        MultiView1.SetActiveView(View3)
    End Sub

</script>

<html>

<head>
<title>Panels in ASP.NET 2.0 (as MultiView)</title>
</head>

<body>

<form runat="server">
    <asp:Button id="Button1" runat="server" Text="Panel one" OnClick="Button1_Click" /> &nbsp;
    <asp:Button id="Button2" runat="server" Text="Panel two" OnClick="Button2_Click" /> &nbsp;
    <asp:Button id="Button3" runat="server" Text="Panel three" OnClick="Button3_Click" />
    <br /><br />

    <asp:MultiView id="MultiView1" runat="server" ActiveViewIndex=0>
        <asp:View id="View1" runat="server">
            Content Here (View 1)...
        </asp:View>
        <asp:View id="View2" runat="server">
            Content Here (View 2)...
        </asp:View>
        <asp:View id="View3" runat="server">
            Content Here (View 3)...
        </asp:View>
    </asp:MultiView>
</form>

</body>

</html>
 
Share this answer
 
Comments
fjdiewornncalwe 4-Apr-13 15:25pm    
Plagiarized from source

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