Marc Mertens [mailto:[EMAIL PROTECTED]] wrote:
> Because I want to write a client which can interact not only > with a IIS server with dotnet but with som general webforms > (using PHP, CGI, ASP , JSP ..) and I'm assuming that I have > no control over the server side. By the way I thought > viewstate is specific for ASP.NET so how do you proceed if > the other side is not using ASP.NET Viewstate is just a hidden input field. Your client has to make sure to post back all fields that contain data, including hiddens. So if the application spits back a form like this: <form action="foo.php" method="POST"> <input type="text" name="Name" value="" /> <input type="submit" name="Submit" value="Go" /> <input type="hidden" name="ImportantData" value="my important data here" /> </form> You need to post back: "Name=Whatever Name They Typed&Submit=Go&ImportantData=my important data here" In the ASP.NET case, the Viewstate field is equivalent to ImportantData. HTH, Drew .NET MVP You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.