Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:879152
More Search Options
RSS Available
Matching Posts
HttpUtility.HtmlEncode
Hi all, I have some textboxes where data will be populated into these textboxes. I found that if these textboxes contain html or html-liked texts (e.g. <xxx>) or if I enter these texts into the textboxes, when the program gets the data thru the TextBox1.Text, error "Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500" will come up. I know that I can use HttpUtility
Posted to
Web Forms
(Forum)
by
john.lam
on 12/12/2009
Re: HttpUtility.HtmlEncode
So which means disabling ValidateRequest is the only way if I want to get these values pass?
Posted to
Web Forms
(Forum)
by
john.lam
on 12/12/2009
Re: HttpUtility.HtmlEncode
Thanks mbanavige. Maybe I should add regular expression validator to all the input fields if I disable ValidateRequest?
Posted to
Web Forms
(Forum)
by
john.lam
on 12/12/2009
Re: delete and edit confirmation
Thanks for your suggestion. I applied ModalPopup on Delete method without problem, but when I do the same thing on the Update method, it just returns the following error message: Message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/6/2009
Re: delete and edit confirmation
Thanks Aquaren. I figured out that I need to put all the things inside a single UpdatePanel, then it solved my problem. But I found that the textbox values in the ModalPopupExtender will not be cleared after clicking the OK/Cancel button, even I set "textboxid.Text = String.Empty"...
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/6/2009
Re: delete and edit confirmation
Finally got all the things done with the following lines: $get('<%=ConfirmationUserName.ClientID %>').value = ''; $get('<%=ConfirmationPassword.ClientID %>').value = ''; Thanks heaps!
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/6/2009
delete and edit confirmation
Hi all, I have the following gridview: <asp:GridView ID="ProductEnquiryGridView" runat="server" AutoGenerateColumns="false" DataSourceID="ObjectProductList" DataKeyNames="Barcode" SelectedIndex="0" OnPageIndexChanging="ProductEnquiryGridViewOnPageIndexChanging" OnRowDataBound="ProductEnquiryGridViewOnRowDataBound" OnRowDeleting="ProductEnquiryGridViewOnRowDeleting" OnSelectedIndexChanged="ProductEnquiryGridViewOnSelectedIndexChanged">
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/5/2009
Re: delete and edit confirmation
Hi Aquaren, Thanks for your input, but I'm afraid it's not a solution for my case. This is because normal users can access the page but they need someone with higher access right to gain the permission for them to perform edit/delete function. They can change whatever that want, IF those who with higher access right to approve them to do so.
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/5/2009
Re: delete and edit confirmation
Hi Aquaren, Thanks for your input, but I'm afraid it's not a solution for my case. This is because normal users can access the page but they need someone with higher access right to gain the permission for them to perform edit/delete function. They can change whatever that want, IF those who with higher access right to approve them to do so.
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/5/2009
Re: delete and edit confirmation
Yes, any suggestion that which approach should I use?
Posted to
Data Presentation Controls
(Forum)
by
john.lam
on 12/5/2009
Page 1 of 13 (122 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Developing an installer for your Surface application
ASP.NET:
Visual Studio 2010 and .NET 4 Update
WindowsClient:
Microsoft’s product placements in The Big Bang Theory
Channel 9:
Channel 9 Live at PDC09: Martin Cron
Channel 9:
Channel 9 Live at PDC09: Erik Meijer and Thomas Lewis
WindowsClient:
Download Data Services Update for .NET 3.5 SP1
Silverlight:
Extending the SMF for the HVP
Silverlight:
Extending the SMF for the HVP
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 12 of 13
Channel 10:
Bing Maps Update: Map Embeds and Draggable Routes
WindowsClient:
New WPF Showcase: WEB Touch
ASP.NET:
ASP.NET MVC 2 RC Released
WindowsClient:
Very exciting Microsoft Pivot from Live Labs
WindowsClient:
XAML for UI & .rc files
TechNet Edge:
DNS Security (DNSSec) Overview
Silverlight:
Silverlight 4 demos from my PDC Keynote now available
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online