teemukeiski.net

Teemu Keiski's .NET site
Welcome to teemukeiski.net Sign in | Join | Help
in
Home Our Blogs BlogRoll Forums Photos Downloads

Browse by Tags

All Tags » ASP.NET   (RSS)
Showing page 5 of 7 (70 total posts)
  • Potential solution for "Validation of viewstate MAC failed"

    Last year, I blogged about the potential for "Validation of viewstate MAC failed" issue in ASP.NET 2.0 when using GridView or any databound control which causes ViewState to be encrypted. E.g basically if you have long-running page which isn't yet downloaded fully, and you make a postback, it may blow up ...
    Posted to Teemu (Weblog) by Anonymous on elokuu 14, 2007
  • Learnt something about registering JavaScript arrays in ASP.NET Ajax...

    Very often with databound controls such as DataGrid or GridView, when I need to do client-side scripting for child controls on the rows of the control, I use JavaScript arrays for that. Reasoning is that they give me simple direct access to the elements I want, on the client-side. They do increase page size but otherwise I'd have to parse DOM ...
    Posted to Teemu (Weblog) by Anonymous on elokuu 11, 2007
  • Issues with ASP.NET Ajax after upgrading web site to Orcas beta 2?

    If that's the case, see following posts ASP.NET AJAX in .NET 3.5 and VS 2008 http://weblogs.asp.net/scottgu/archive/2007/07/30/asp-net-ajax-in-net-3-5-and-vs-2008.aspx Upgrading ASP.NET AJAX 1.0 Websites and Web Applications to .NET Framework 3.5 ...
    Posted to Teemu (Weblog) by Anonymous on heinäkuu 30, 2007
  • ASP.NET cross-page postbacks: PreviousPage and PreviousPage.IsCrossPagePostBack

    There has been some confusion on Forums related to PreviousPage property, especially whether one should check only PreviousPage property for null reference and why there's IsCrossPagePostBack property too. It is so that basically PreviousPage property on target page is non-null in both cases followingPage is loaded by being target page on ...
    Posted to Teemu (Weblog) by Anonymous on heinäkuu 12, 2007
  • ViewState & posting with callbacks

    ASP.NET Ajax makes it easy since UpdatePanel is capable to keep ViewState in sync, but if you insist using callbacks, you might have something to think. Basically first issue is that with callbacks the data to post to the server is gathered at WebForm_InitCallback() method when the Page loads. So first issue you see is that it seems ...
    Posted to Teemu (Weblog) by Anonymous on kesäkuu 30, 2007
  • Updated the post from popup sample for ASP.NET 2.0

    I just updated my post's "ASP.NET: How to create a postback on a main page from a popup window" sample code to work with ASP.NET 2.0's event validation.   Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
    Posted to Teemu (Weblog) by Anonymous on kesäkuu 30, 2007
  • Login control and ViewState on successful logon

    On Forums someone had issues with Login control, as he had custom authentication scheme in use and in Authenticate event handler, set a value to ViewState. And he had hard time figuring why the value wasn't there on next request when user was logged in (he checked it on the login page, e.g. didn't have a redirect page, right ...
    Posted to Teemu (Weblog) by Anonymous on kesäkuu 28, 2007
  • Access Headertemplate and FooterTemplate of a Repeater in code

    Asked on Forums. Point is that say you have a Repeater like this: <asp:Repeater ID="Repeater1" runat="server">             <HeaderTemplate>                 <asp:Label ...
    Posted to Teemu (Weblog) by Anonymous on kesäkuu 5, 2007
  • Lesson: DefaultButton property of HtmlForm or Panel

    Dave asked on list about a case he saw on Forums. Basically you have two Content controls <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">     <asp:Panel ID="Panel1" runat="server" DefaultButton="ButtonOK" ...
    Posted to Teemu (Weblog) by Anonymous on toukokuu 11, 2007
  • Customizing RadioButtonList

    This was asked on forums and result was quite weird control but I post  it here for demonstration purposes, nevertheless. :-) User needed to customize RadioButtonList so that he doesn't need to use RadioButton. He wants to show a DIV or SPAN (probably some image icon in that too). Issue was that overriding ...
    Posted to Teemu (Weblog) by Anonymous on maaliskuu 10, 2007