Note that there are some explanatory texts on larger screens.

plurals
  1. PORun asp.net code in Wordpress
    primarykey
    data
    text
    <p>I've written some simple code in asp.net:</p> <pre><code>Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If TextBox1.Text = "30%off" Then Response.Redirect("http://www.google.com") Else MsgBox("Please Enter a Valid Coupon!") End If End Sub End Class </code></pre> <p>Now what I have done is from the source of the debug output i got:</p> <pre><code>&lt;form method="post" action="Default.aspx" id="form1"&gt; &lt;div class="aspNetHidden"&gt; &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="OsC7M9VmZwGOYizZOWtmabCIp4X2NQYfYRFcdzfKSxsD49xOULNCTlEoDVRN+YXcWGszYY8WFsSxjzPjpz2y7ibXajRjMSlVqKd6QRRLU8A=" /&gt; &lt;/div&gt; &lt;div class="aspNetHidden"&gt; &lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="7ypvqvaBZUfanEsFUMFtxAPFZCwRdYQbqGVJokLWdjwcfQ7ZvJx3zMwTvTvPmbzwDzuI6vbSwPSJhS4u5RX6OZHOxyXMabjHe+TtQ//Ium5NXK/5orWrR3k5816LVHY+CBovAFHhcndnueiaWFcrxQ==" /&gt; &lt;/div&gt; &lt;div&gt; &amp;nbsp;&lt;span id="Label1"&gt;PROMOTION CODE :&lt;/span&gt; &lt;input name="TextBox1" type="text" id="TextBox1" style="height:16px;width:211px;margin-left: 3px; margin-bottom: 0px" /&gt; &lt;input type="submit" name="Button1" value="Enter" id="Button1" style="width:101px;margin-left: 1px" /&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>Now what I want to do is just paste this as a snippet in Wordpress. However when I paste the code and press the submit button I get a 404 not found; is there a way out like running iframes etc?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload