Saturday, March 24, 2012
the dreaded WAT is not working
I'm using a file based ASP.net web type on my local machine
I've not had this problem before, but I started a brand new website and I
clicked on the ASP.net configuration icon in solution explorer and I get thi
s
message
'An error was encountered. Please return to the previous page and try again.
'
when I click the link that says 'how do I use this tool' I get the message
that 'the tool has timed out'
how can I make this flaky heap of junk show me the normal 4 tabs
regards and many thanks in advance
CharlesAASP.Net requires a web server running the ASP.Net ISAPI to work. It is
HTTP-Protocol-based, and can not be run as a file-based web.
HTH,
Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com
If you have little, is that your lot?
"CharlesA" <CharlesA@.discussions.microsoft.com> wrote in message
news:4AAB887E-3954-47D4-A51B-62FE56C43B60@.microsoft.com...
> Hi folks, using ASP.net 2.0 VS 2005 and C# on XP pro
> I'm using a file based ASP.net web type on my local machine
> I've not had this problem before, but I started a brand new website and I
> clicked on the ASP.net configuration icon in solution explorer and I get
> this
> message
> 'An error was encountered. Please return to the previous page and try
> again. '
> when I click the link that says 'how do I use this tool' I get the message
> that 'the tool has timed out'
> how can I make this flaky heap of junk show me the normal 4 tabs
> regards and many thanks in advance
> CharlesA
Did you create the membership database with the aspnet_regsql tool ?
If you have not yet created the membership database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to create
and configure the database, and then return to the WAT to set the provider.
aspnet_regsql.exe is located in the .Net Framework directory :
Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.com> wrote in message
news:4AAB887E-3954-47D4-A51B-62FE56C43B60@.microsoft.com...
> Hi folks, using ASP.net 2.0 VS 2005 and C# on XP pro
> I'm using a file based ASP.net web type on my local machine
> I've not had this problem before, but I started a brand new website and I
> clicked on the ASP.net configuration icon in solution explorer and I get t
his
> message
> 'An error was encountered. Please return to the previous page and try agai
n. '
> when I click the link that says 'how do I use this tool' I get the message
> that 'the tool has timed out'
> how can I make this flaky heap of junk show me the normal 4 tabs
> regards and many thanks in advance
> CharlesA
Kevin, are you sure about that? I seem to remember using it on a machine the
other day (not my home one) with a file based system
Juan, surely I don't have to create the database first, how does the WAT
tool know that I want to do data stuff, I might just want to change some
config type things
I'm willing to give it a go, but I thought that the WAT tool itself created
the databases in App_data and that you used aspnet_regsql to change the
location of the database
Thanks for your posts so far any further reaction to what I've said here
would be really appreciated
Regards
CharlesA
Hi,
CharlesA wrote:
> Kevin, are you sure about that? I seem to remember using it on a machine t
he
> other day (not my home one) with a file based system
You can use file-based web in ASP.NET 2.0 only (not 1.1), and only from
Visual Studio, because it has a built-in development web server. You
cannot however run ASP.NET based pages/services using the file:// protocol.
So you're both right ;-)
HTH,
Laurent
> Juan, surely I don't have to create the database first, how does the WAT
> tool know that I want to do data stuff, I might just want to change some
> config type things
> I'm willing to give it a go, but I thought that the WAT tool itself create
d
> the databases in App_data and that you used aspnet_regsql to change the
> location of the database
> Thanks for your posts so far any further reaction to what I've said here
> would be really appreciated
> Regards
> CharlesA
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
thanks Laurent,
i am indeed using http://
I moved to a local IIS based website (through a virtual dir) and there I
can't even see my default.aspx let alone use the WAT
this is the error I get
This error (HTTP 500 Internal Server Error) means that the website you are
visiting had a server problem which prevented the webpage from displaying.
despite having used added in MAIN\ASPNET (main is my machine name) into the
directory security tab
I had none of these security probs in .net 1.1, now with VS 2005 I can't use
my local IIS anymore and if I try to use the WAT I'm told that it has timed
out, what am I missing (I'm at home and I'm the admin) any ideas on the
missing steps that I failed to take after installing both VS2005 with .net
2.0 and SServer 2005 on an XP pro machine?
Regards and thanks again for any help
CharlesA
just out of interest folks...if I go for a complete reinstall of all this (t
o
sort it out) what do I install first,
a) .Net2.0/Visual Studio 2005 and then SQL server 2005
b) the othe way round
c) it doesn't matter
Regards
CharlesA
re:
> I might just want to change some config type things
There's very little you can change in web.config using the WAT.
If that's all you want to do, change the website to http-based,
and use the ASP.NET configuration manager in the MMC.
Using the WAT for minor web.config configuration changes is spotty,
at best, since there's a lot of settings you don't have access to from the W
AT tool.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.com> wrote in message
news:DC414BA9-AF4E-41B2-A50B-D35C2C6C38A2@.microsoft.com...
> Kevin, are you sure about that? I seem to remember using it on a machine t
he
> other day (not my home one) with a file based system
> Juan, surely I don't have to create the database first, how does the WAT
> tool know that I want to do data stuff, I might just want to change some
> config type things
> I'm willing to give it a go, but I thought that the WAT tool itself create
d
> the databases in App_data and that you used aspnet_regsql to change the
> location of the database
> Thanks for your posts so far any further reaction to what I've said here
> would be really appreciated
> Regards
> CharlesA
re:
> a) .Net2.0/Visual Studio 2005 and then SQL server 2005
.Net2.0, SQL Server 2005 (Express, presumably), then Visual Studio 2005
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.com> wrote in message
news:D26EC97F-863C-4476-A551-36D330EDBDE4@.microsoft.com...
> just out of interest folks...if I go for a complete reinstall of all this
(to
> sort it out) what do I install first,
> a) .Net2.0/Visual Studio 2005 and then SQL server 2005
> b) the othe way round
> c) it doesn't matter
> Regards
> CharlesA
ah yes Juan, but I needed to follow some steps in a tutorial so that
eventually I can use the Membership stuff, now either my website full stop
doesn't work with IIS or my WAT doesn't work with either the built-in web
server or IIS
Regards and thanks,
Charles
the dreaded WAT is not working
I'm using a file based ASP.net web type on my local machine
I've not had this problem before, but I started a brand new website and I
clicked on the ASP.net configuration icon in solution explorer and I get this
message
'An error was encountered. Please return to the previous page and try again. '
when I click the link that says 'how do I use this tool' I get the message
that 'the tool has timed out'
how can I make this flaky heap of junk show me the normal 4 tabs
regards and many thanks in advance
CharlesAASP.Net requires a web server running the ASP.Net ISAPI to work. It is
HTTP-Protocol-based, and can not be run as a file-based web.
--
HTH,
Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com
If you have little, is that your lot?
"CharlesA" <CharlesA@.discussions.microsoft.comwrote in message
news:4AAB887E-3954-47D4-A51B-62FE56C43B60@.microsoft.com...
Quote:
Originally Posted by
Hi folks, using ASP.net 2.0 VS 2005 and C# on XP pro
>
I'm using a file based ASP.net web type on my local machine
>
I've not had this problem before, but I started a brand new website and I
clicked on the ASP.net configuration icon in solution explorer and I get
this
message
>
'An error was encountered. Please return to the previous page and try
again. '
>
when I click the link that says 'how do I use this tool' I get the message
that 'the tool has timed out'
>
how can I make this flaky heap of junk show me the normal 4 tabs
>
regards and many thanks in advance
>
CharlesA
Did you create the membership database with the aspnet_regsql tool ?
If you have not yet created the membership database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to create
and configure the database, and then return to the WAT to set the provider.
aspnet_regsql.exe is located in the .Net Framework directory :
Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.comwrote in message
news:4AAB887E-3954-47D4-A51B-62FE56C43B60@.microsoft.com...
Quote:
Originally Posted by
Hi folks, using ASP.net 2.0 VS 2005 and C# on XP pro
>
I'm using a file based ASP.net web type on my local machine
>
I've not had this problem before, but I started a brand new website and I
clicked on the ASP.net configuration icon in solution explorer and I get this
message
>
'An error was encountered. Please return to the previous page and try again. '
>
when I click the link that says 'how do I use this tool' I get the message
that 'the tool has timed out'
>
how can I make this flaky heap of junk show me the normal 4 tabs
>
regards and many thanks in advance
>
CharlesA
Kevin, are you sure about that? I seem to remember using it on a machine the
other day (not my home one) with a file based system
Juan, surely I don't have to create the database first, how does the WAT
tool know that I want to do data stuff, I might just want to change some
config type things
I'm willing to give it a go, but I thought that the WAT tool itself created
the databases in App_data and that you used aspnet_regsql to change the
location of the database
Thanks for your posts so far any further reaction to what I've said here
would be really appreciated
Regards
CharlesA
Hi,
CharlesA wrote:
Quote:
Originally Posted by
Kevin, are you sure about that? I seem to remember using it on a machine the
other day (not my home one) with a file based system
You can use file-based web in ASP.NET 2.0 only (not 1.1), and only from
Visual Studio, because it has a built-in development web server. You
cannot however run ASP.NET based pages/services using the file:// protocol.
So you're both right ;-)
HTH,
Laurent
Quote:
Originally Posted by
Juan, surely I don't have to create the database first, how does the WAT
tool know that I want to do data stuff, I might just want to change some
config type things
>
I'm willing to give it a go, but I thought that the WAT tool itself created
the databases in App_data and that you used aspnet_regsql to change the
location of the database
>
Thanks for your posts so far any further reaction to what I've said here
would be really appreciated
>
Regards
CharlesA
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
thanks Laurent,
i am indeed using http://
I moved to a local IIS based website (through a virtual dir) and there I
can't even see my default.aspx let alone use the WAT
this is the error I get
This error (HTTP 500 Internal Server Error) means that the website you are
visiting had a server problem which prevented the webpage from displaying.
despite having used added in MAIN\ASPNET (main is my machine name) into the
directory security tab
I had none of these security probs in .net 1.1, now with VS 2005 I can't use
my local IIS anymore and if I try to use the WAT I'm told that it has timed
out, what am I missing (I'm at home and I'm the admin) any ideas on the
missing steps that I failed to take after installing both VS2005 with .net
2.0 and SServer 2005 on an XP pro machine?
Regards and thanks again for any help
CharlesA
just out of interest folks...if I go for a complete reinstall of all this (to
sort it out) what do I install first,
a) .Net2.0/Visual Studio 2005 and then SQL server 2005
b) the othe way round
c) it doesn't matter
Regards
CharlesA
re:
Quote:
Originally Posted by
I might just want to change some config type things
There's very little you can change in web.config using the WAT.
If that's all you want to do, change the website to http-based,
and use the ASP.NET configuration manager in the MMC.
Using the WAT for minor web.config configuration changes is spotty,
at best, since there's a lot of settings you don't have access to from the WAT tool.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.comwrote in message
news:DC414BA9-AF4E-41B2-A50B-D35C2C6C38A2@.microsoft.com...
Quote:
Originally Posted by
Kevin, are you sure about that? I seem to remember using it on a machine the
other day (not my home one) with a file based system
>
Juan, surely I don't have to create the database first, how does the WAT
tool know that I want to do data stuff, I might just want to change some
config type things
>
I'm willing to give it a go, but I thought that the WAT tool itself created
the databases in App_data and that you used aspnet_regsql to change the
location of the database
>
Thanks for your posts so far any further reaction to what I've said here
would be really appreciated
>
Regards
CharlesA
re:
Quote:
Originally Posted by
a) .Net2.0/Visual Studio 2005 and then SQL server 2005
..Net2.0, SQL Server 2005 (Express, presumably), then Visual Studio 2005
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"CharlesA" <CharlesA@.discussions.microsoft.comwrote in message
news:D26EC97F-863C-4476-A551-36D330EDBDE4@.microsoft.com...
Quote:
Originally Posted by
just out of interest folks...if I go for a complete reinstall of all this (to
sort it out) what do I install first,
>
a) .Net2.0/Visual Studio 2005 and then SQL server 2005
b) the othe way round
c) it doesn't matter
>
Regards
CharlesA
ah yes Juan, but I needed to follow some steps in a tutorial so that
eventually I can use the Membership stuff, now either my website full stop
doesn't work with IIS or my WAT doesn't work with either the built-in web
server or IIS
Regards and thanks,
Charles
FYI
"Kevin Spencer"
Quote:
Originally Posted by
ASP.Net requires a web server
Not really - just a process to handle:
HttpRuntime.ProcessRequest Method
Drives all ASP.NET Web processing execution
Quote:
Originally Posted by
running the ASP.Net ISAPI to work. It is
HTTP-Protocol-based, and can not be
run as a file-based web.
>
Well it all depends on what your goal is:
perhaps a sales CD (etc.) that looks like
it is using a "web server", or whatever!
Anyway here are two oldies but goodies:
"HTML is often thought of as the sole
domain for Web applications. But HTML's
versatile display attributes are also
very useful for handling data display of
all sorts in desktop applications. "
Hosting the ASP.Net Runtime in desktop applications
http://www.west-wind.com/presentati...pnetruntime.asp
Executing ASPX pages without a web server
http://radio.weblogs.com/0105476/st...AWebServer.html
I stand corrected! Or at least, adjusted!
--
;-),
Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com
If you have little, is that your lot?
"Flowering Weeds" <floweringnoweedsno@.hotmail.comwrote in message
news:Od3tmiQBHHA.3536@.TK2MSFTNGP03.phx.gbl...
Quote:
Originally Posted by
>
>
FYI
>
"Kevin Spencer"
>
Quote:
Originally Posted by
>ASP.Net requires a web server
>
Not really - just a process to handle:
>
HttpRuntime.ProcessRequest Method
Drives all ASP.NET Web processing execution
>
Quote:
Originally Posted by
>running the ASP.Net ISAPI to work. It is
>HTTP-Protocol-based, and can not be
>run as a file-based web.
>>
>
Well it all depends on what your goal is:
perhaps a sales CD (etc.) that looks like
it is using a "web server", or whatever!
>
Anyway here are two oldies but goodies:
>
"HTML is often thought of as the sole
domain for Web applications. But HTML's
versatile display attributes are also
very useful for handling data display of
all sorts in desktop applications. "
>
Hosting the ASP.Net Runtime in desktop applications
http://www.west-wind.com/presentati...pnetruntime.asp
>
Executing ASPX pages without a web server
http://radio.weblogs.com/0105476/st...AWebServer.html
>
>
>
>
Tuesday, March 13, 2012
The magical button? Declarative parameters tutorial
Hey folks,
Long time follower, first time poster.
I'm going through the"Working with Data in ASP.NET 2.0" tutorials, and this one bit has me mystified.
Page 4-6 (or about half way down, section "Setting the Parameter Value to the Property Value of a Web Control"
http://www.asp.net/learn/dataaccess/tutorial05cs.aspx?tabid=63
I've been through all the steps, and they all work - I just don't understand why. The mystery lies in the "Show suppliers" button. How does
my datagrid know I have clicked this button? How can it figure out, by this button click, to grab what's in the textfield, and send to the datagrid?
I haven't specified any code on the "on click" event for the button, and the markup source doesn't seem to reveal any kind of relationship between the textfield and the button.
If I put more buttons on the form, they all seem to behave in the same way - populating the datagrid.
Magic?
I believe you will find the answer to that question in this part of Scott's tutorial:
When visiting the page for the first time the CountryName TextBox is empty. The ObjectDataSource's Select method is still invoked by the GridView, but a value of null is passed into the GetSuppliersByCountry(country) method. The TableAdapter converts the null into a database NULL value (DBNull.Value), but the query used by the GetSuppliersByCountry(country) method is written such that it doesn't return any values when a NULL value is specified for the @.CategoryID parameter. In short, no suppliers are returned.
Once the visitor enters in a country, however, and clicks the Show Suppliers button to cause a postback, the ObjectDataSource's Select method is requeried, passing in the TextBox control's Text value as the country parameter.
tmorton:
Once the visitor enters in a country, however, and clicks the Show Suppliers button to cause a postback, the ObjectDataSource's Select method is requeried, passing in the TextBox control's Text value as the country parameter.
Thanks for the reply. I'm figuring the operative here is "postback" - the button causes a postback, but I still can't see the relationship between the button's postback, the textfield, and the datagrid.
My appoligies for newbie-ness, but I'm really trying to understand the workings of ASP.NET, coming from a Java Swing world, everything is new to me!
mortdk:
Thanks for the reply. I'm figuring the operative here is "postback" - the button causes a postback, but I still can't see the relationship between the button's postback, the textfield, and the datagrid.
Hi there,
The relation is set when you configure the newly created ObjectDataSource, see in Figure 8, where the parameter source is set to a "control" and then you specify that the ID of the control to use is "CountryName". CountryName is the textbox and effectivly what you're doing is to tell the method the ObjectDataSource is calling (GetSuppliersByCountry()) to use the value from the "CountryName" text box as the value to pass along to the method.
You can physically see this in the markup (in the code view of your .aspx page) as shown in the code between Figure 8 and 9 of the article, in the ControlParameters tag inside the SelectParameters you can see that the ControlID is set to the ID of the text box and the type and property are set to string/text.
Hopefully this makes sense
mortdk:
Thanks for the reply. I'm figuring the operative here is "postback" - the button causes a postback, but I still can't see the relationship between the button's postback, the textfield, and the datagrid.
Well, I doubt that I can do a better job at explaining things than Scott Mitchell can, but I'll give it a go. :-) For reference, here is the pertinent part of the DelcarativeParameters.aspx page:
<h3>View Suppliers By Country</h3>
<p>
Enter a country:
<asp:TextBox ID="CountryName" runat="server"></asp:TextBox> <asp:Button ID="Button1"
runat="server" Text="Show Suppliers" />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="SupplierID"
DataSourceID="ObjectDataSource2" EnableViewState="False">
<Columns>
<asp:BoundField DataField="CompanyName" HeaderText="Company" SortExpression="CompanyName" />
<asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
<asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
<asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetSuppliersByCountry" TypeName="SuppliersBLL" UpdateMethod="UpdateSupplierAddress">
<UpdateParameters>
<asp:Parameter Name="supplierID" Type="Int32" />
<asp:Parameter Name="address" Type="String" />
<asp:Parameter Name="city" Type="String" />
<asp:Parameter Name="country" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="CountryName" Name="country" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
On that page you have 4 server controls coming into play for the "View Suppliers by Country" functionality:
Textbox (ID=CountryName)
Button (ID=Button1)
GridView (ID=GridView1)
ObjectDataSource (ID=ObjectDataSource2)
As you can see, GridView1's DataSource is ObjectDataSource2. That means that GridView1's data comes from the data supplied by ObjectDataSouce2's SelectMethod, which is method GetSuppliersByCountry. Any parameters needed by that method are passed into it from the ObjectDataSource's SelectParameters. In this case, there is one SelectParameter, and a ControlParameter is being used. This means that the value stored in a server control is used as the parameter value. The server control whose value is being passed is the CountryName Textbox.
So, the first time this page is accessed, the CountryName Textbox does not hold any value. The GridView asks the ObjectDataSource to load it up with data, the ObjectDataSource uses the CountryName value as a parameter to the GetSuppliersByCountry method, and since the CountryName is empty, the method returns no results. As a result, the GridView is empty.
Now, when the site visitor keys a value into the CountryName Textbox, and presses the button, the button causes a postback since it is a server control. So, once again, the GridView asks the ObjectDataSource to load it up with data, the ObjectDataSource uses the CountryName value as a parameter to the GetSuppliersByCountry method. This time, the CountryName is not empty, so the method returns results, and the GridView is populated.
Does this help at all?
Thanks for the excelent explanations. I understand the bindingbetween the textfield and the datagrid, this seems logical - take theCountryName.Text and use this as a parameter to look for data. Myproblem is understanding how the button1 can know anything about anytextfields or datagrids, when I haven't told it to do anything. All Idid was drop a button on the form, and it works "out of the box".
Now, when the site visitor keys a value into the CountryName Textbox,and presses the button, the button causes a postback since it is aserver control. So, once again, the GridView asks the ObjectDataSourceto load it up with data,
After fiddling a little with the tutorial, however odd I find the behavior, I think I might understand... please, correct me if I'm wrong:
The button only causes a postback. It's the postback that actually triggers the "reload" of the datasouce? I've tried with a LinkButton, a CheckBox (set to postback), and they all trigger a reload. Maybe it's just the tutorial's simplicity that caught me off guard. What if I have 3 other controls on the form that also need to perform postbacks, but must not change the contents of the mentioned gridview?
tmorton:
Now, when the site visitor keys a value into the CountryName Textbox, and presses the button, the button causes a postback since it is a server control. So, once again, the GridView asks the ObjectDataSource to load it up with data, the ObjectDataSource uses the CountryName value as a parameter to the GetSuppliersByCountry method.
Looks like I mucked up the quotes - sorry, hope you can decipher.
mortdk:
After fiddling a little with the tutorial, however odd I find the behavior, I think I might understand... please, correct me if I'm wrong:
The button only causes a postback. It's the postback that actually triggers the "reload" of the datasouce? I've tried with a LinkButton, a CheckBox (set to postback), and they all trigger a reload. Maybe it's just the tutorial's simplicity that caught me off guard. What if I have 3 other controls on the form that also need to perform postbacks, but must not change the contents of the mentioned gridview?
Sounds like you've got the hang of how the postback gets triggered and the data getting loaded.
In regards to having other controls that also trigger postbacks on a page, keeping the value of a control in ASP.NET is done with something called viewstate. If you enable viewstate on a control the values will get stored in a hidden field and then used to re-populate the control after the postback. I'm no expert on the use of viewstate but I guess in the example case, you could enable viewstate for the country textbox so that it keeps the value you input and therefore use that value as a parameter again after the postback. Or you could just enable viewstate on the gridview, I think both ways has positives and negatives.
More info on viewstate:
http://aspalliance.com/909
http://www.extremeexperts.com/Net/Articles/ViewState.aspx