request.form

how to use request.form[] in inherited web form

早过忘川 提交于 2019-12-13 03:44:29
问题 I have a Master page and one web form inherited from that master page, the tag is in master page which contains a content place holder inside Master Page: <form runat="server"> <asp:ContentPlaceHolder ID="MainContent" runat="server" /> </form> the web form implement that content place holder. WebForm.aspx: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <asp:TextBox ID="tbAmount" runat="server" /> </asp:content> in the code behind web form, I wanna use Request

ASP classic - how do I join an array of strings / join / implode do not work

陌路散爱 提交于 2019-12-11 02:16:31
问题 Dim stringIdCollection stringIdCollection = Join( Request.Form( "id" ), "', '" ) ) Dim whereStatement whereStatement = "WHERE id IN ('" & stringIdCollection & "');" I get this error: Microsoft VBScript compilation error '800a0401' Expected end of statement /includes/Process.asp, line 49 stringIdCollection = Join( Request.Form( "id" ), "', '" ) ) ------------------------------------------------------------------------^ Is it even possible to use Join on a Request.Form? I would like the output

Difference between Request.Form and Request.QueryString?

坚强是说给别人听的谎言 提交于 2019-12-02 23:21:25
Can some tell me the exact difference between Request.Form and Request.QueryString ? I know one difference, like If the HTTP request method is POST, the user submitted data is in the Request.Form() collection If the HTTP request method is GET, then user submitted data is in the Request.QueryString() collection any other difference? and Any example would be greatly appreciated. In Request.Form the data is posted in http header whereas in QueryString data is sent through url. I found some other difference Request("id") will first try to locate Request.Form("id") then Request.Querystring("id")

ASP.NET Request.Form Performance

为君一笑 提交于 2019-11-30 05:21:34
I used a HttpHandler to implement a light-weight web service targeted for high performance. It requires a POST with content-type application/x-www-form-urlencoded . The web service does many tasks including decryption, database work, business logic and so on. During load testing, the performance monitor (ANTS and Visual Studio) point to a single line of code that is taking the majority of time, in fact 67%. string value = context.Request.Form[MY_FORM_KEY]; At the bottom of the call stack for this line of code, the performance monitor, says this call: System.Web.Hosting.UnsafeIISMethods

ASP.NET Request.Form Performance

不问归期 提交于 2019-11-29 03:50:17
问题 I used a HttpHandler to implement a light-weight web service targeted for high performance. It requires a POST with content-type application/x-www-form-urlencoded . The web service does many tasks including decryption, database work, business logic and so on. During load testing, the performance monitor (ANTS and Visual Studio) point to a single line of code that is taking the majority of time, in fact 67%. string value = context.Request.Form[MY_FORM_KEY]; At the bottom of the call stack for

Why is ValidateInput(False) not working?

一个人想着一个人 提交于 2019-11-27 00:38:41
I am converting an application I created using webforms to the asp.net mvc framework using vb.net. I have a problem with one of my views. I get the yellow screen of death saying "A potentially dangerous Request.Form value was detected from the client" when I submit my form. I am using tinymce as my RTE. I have set on the view itself ValidateRequest="false" I know that in MVC it doesn't respect it on the view from what I've read so far. So I put it on the controller action as well. I have tried different setups: <ValidateInput(False), AcceptVerbs(HttpVerbs.Post)> _ ...and... <AcceptVerbs

Why is ValidateInput(False) not working?

喜夏-厌秋 提交于 2019-11-26 09:27:10
问题 I am converting an application I created using webforms to the asp.net mvc framework using vb.net. I have a problem with one of my views. I get the yellow screen of death saying \"A potentially dangerous Request.Form value was detected from the client\" when I submit my form. I am using tinymce as my RTE. I have set on the view itself ValidateRequest=\"false\" I know that in MVC it doesn\'t respect it on the view from what I\'ve read so far. So I put it on the controller action as well. I

A potentially dangerous Request.Form value was detected from the client

一笑奈何 提交于 2019-11-25 21:40:56
问题 Every time a user posts something containing < or > in a page in my web application, I get this exception thrown. I don\'t want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because somebody entered a character in a text box, but I am looking for an elegant way to handle this. Trapping the exception and showing An error has occurred please go back and re-type your entire form again, but this time please do not use < doesn\'t seem