1). what is view stae? what are the pros and cons of using view stae?2). what is .Net remoting?3).please write an example of declaring a function as web services?4). what is web services?

Showing Answers 1 - 19 of 19 Answers

shankar

  • Aug 24th, 2006
 

view state:

view state is natively by the asp.net web controls. it allows them to retain their properties between post backs. You can add your own data to the view state using a built in page.

viewstate("shankar")=1

  Was this answer useful?  Yes

Imran Parvez

  • Aug 30th, 2006
 

.net Remoting:-

.NET Remoting is an enabler for application communication. It is a generic system for different applications to use to communicate with one another. .NET objects are exposed to remote processes, thus allowing interprocess communication. The applications can be located on the same computer, different computers on the same network, or even computers across separate networks.

Imran Parvez

9871555021

  Was this answer useful?  Yes

srikanth

  • Sep 4th, 2006
 

good

  Was this answer useful?  Yes

prppdeepak

  • Sep 28th, 2006
 

hello friend,

can u send the code for how to retrieve the values that are stored in viewstate

pls its urgent.

pls send pls ...

  Was this answer useful?  Yes

Hi Friend,Code to retrieve the values that are stored in viewstateTo store values in the viewstateC#ViewState["count"] = 1;int counts = (int)ViewState["count"];We must know what type of data we stored in the ViewState under the given key.Expecting the feedback on this answer:-) Good bye

  Was this answer useful?  Yes

Hi Friend,
Code to retrieve the values stored in viewstate is as follows.
To store values in the viewstate
ViewState["count"] = 1;
int counts = (int)ViewState["count"];
We must know what type of data we stored in the ViewState under the given key.Expecting the feedback on this answer.
:-) Good bye

  Was this answer useful?  Yes

learner

  • Nov 6th, 2007
 

View state is used to maintain the state of control and it is stored in the hidden field called _VIEWSTATE.

It enables to see all previously entered values in the view state -enabled control

Web services facilitated data transfer independent of platform.When you want to send and receive data to different platforms(e.g java to .net or another) - use web services.
When u want to send and receive data within same platform-use .NEt Remoting as remoting is platform dependent.


  Was this answer useful?  Yes

rk51131

  • Nov 15th, 2009
 

A ViewState has the details or values of the control in encrypted format. This encrypted details are passed to and fro between the requests to server and hence help in retaining the state of the control. The disadvantage is that it will create an overhead and increase the size of data being transeferred hence increasign the network traffic.

.Net Remoting helps to connect to different systems on the same network.

Web Services are programs which run on different servers in the internet and provide some defined functionality, thus providing reusability. The communication though http:// and the communication of the request-reply form.

  Was this answer useful?  Yes

View State is used to maintain the values of Controls in a particular webpage during its subsecutive postbacks in the same page.  It is generally stored in the Hidden field control.  It expires upon traversing to another webpage.

Remoting is used to run Dotnet applications in remote environments.  Whenever the application domain is shared by many clients we use remoting.

The function for a webservice is declared the same as any other function with the attribute [Web Method] and imports System.Web.Services.WebService.

When we want to traverse functionalities over internet and be used by someone in a internet connection we use webservices.  Webservice communicates through SOAP protocol.  SOAP is also used for communicating methods through the internet instead of only simple text and data.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions