• Microsoft MVP ASP.NET/IIS (Profile)



  • Microsoft MVP ASP.NET/IIS (Profile)




Articles selected as “Article of the day” @ Microsoft official website


15 thoughts on “Awards

  1. thnx for quick reply,sir bcoz i m a beginner so i m thinking to do MCTS: .NET Framework 3.5 Windows Forms Applications or MCTS: .NET Framework 3.5 Applications 70-536 .Is it a right thing to do.which one is good for me ?.
    sir if u know any link to provide study material then please send me link.

  2. hi sir,
    one of your postings helped me a lot..i m very thankful to you..
    i had a page with large amount of data in view-state which made my page performance to degrade drastically.. i saw one article posted by you containing compression and decompression of view state …
    i ‘m checking on your posted code…i liked it very much..hope your code increases my project performance ….

      • hi sir
        the code what you have posted works good for pages…In my project i created a usercontrol where i created a listbox for multiselection purpose and brought that list box to the my page…when i used your code viewstate is compressed only for page…the usercontrol’s viewstate is not compressed…

        Is there any method for compressing viewstate for usercontrols……
        please notify would be very useful to me…

      • To compress the viewstate of control, you can override the methods (LoadPageStateFromPersistenceMedium, SavePageStateToPersistenceMedium) for UserControl. You can create a generic BaseControl that inherits System.Web.UI.UserControl and override the methods.

        Let me know if you face any issue.


  3. HI SIR,
    thanxs for the reply..the problem is I have taken a class (Class1.cs) and wrote two methods which you have specified in earlier post…but the problem is In usercontrol when i tried to inherit the class1.cs …it was showing error…

    public partial class WebUserControl :Class1

    Error: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).

    Is this the correct format to make inherit the class …if not please reply me…

    Awaiting for your reply…

      • Hi Brij,

        I’m facing similar issue. I’ve override SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium for my Page. It is working fine.

        However, i create another .cs, use back the same overriding code, and inherit System.Web.UI.UserControl, it doesn’t for usercontrol. It shows “no suitable method found to override” error message.

        Is it possible to give me some lights?
        Thanks in advance.

  4. but when i try to inherit the class it was showing error for the methods(ie..LoadPageStateFromPersistenceMedium, SavePageStateToPersistenceMedium)….

    and one more problem is the view state compression is working only for gridviews…when i tried to add some more controls in the page …those controls view state is not compressing…

    so IS there any way for reducing viewstate for all controls of the page..
    Awaiting for your reply..

  5. Hello Rakesh,

    Sorry for late reply, but How did you come to know that your usercontrol’s view state is not getting compressed. Did you able to see many view state fields on page source?

  6. yes ..and one more thing …compressed classes are working only for gridview……so if u please let me know how to handle compression of viewstate for all controls.

    Thanks for your reply

    • Can you share your code? Actually there is only one Viewstate field render on the page. There is only __VIEWSTATE hidden form field is rendered on the entire page.
      I wonder, how did you find many viewstate fields on your page? Did you write some custom code for this?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s