Workarounds to access the Readonly Textbox value on server side when changed through client side script

I have a Date Textbox in each row of a Grid View. As the users must not be allowed to put their own values in the text box, we have set the property as ReadOnly=”true”. And provided a calender java-script plug-in which sets the Textbox value. Now when I am trying to access the date Textbox on save click, the Textbox value is not persisted.

How do I disable viewstate for a specific control?

<asp:TextBox ID="TextBox1" runat="server" EnableViewState="false" /> <asp:Button ID="Button1" runat="server" Text="Button" /> I have set the EnableViewState property to false, but when I click on the button the value in the textbox persists after the postback. Why does the value persist? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers … Read more

WebBrowser.DrawtoBitmap() generating blank images for few sites consistently

I’ve been using WebBrowser.DrawtoBitmap() in my asp.net page running in separate STA thread to capture web pages as an image. But I found that I’m getting blank images for few sites consistently. I’m aware that the method is not ‘officially’ supported but it would be nice if someone can provide me any reason or a work around for these blank images issue.

Send XML String as Response

I am getting my Request from a third party application(different domain) to my ASP application. I am handling the request and doing the business part in my application and as a acknowledgement I need to send XML string as Response to the same Page which POSTED the request to my Application. I was successful in retrieving the input from Request using the following code