0

I have a application that running both classic asp and asp net. inside the classic asp page, I have a combo box and depends on the selection of the combo box I need to do something inside my asp.net page. For instance, if inside my classic asp page, I have a combo box and inside the combo box; book is selected than when I enter a price for book as a zero inside my asp.net page I supposed to get an alert. Is there any way to do that?

asp.net code

 if (Convert.ToDecimal(Values["myBookPrice"]) == 0)
{
 //You cannot use 0 price for books!
}
4
  • You post the selection from asp to asp.net ? Commented Dec 27, 2013 at 0:52
  • select from classic asp and use that selection criteria inside asp net Commented Dec 27, 2013 at 0:54
  • Ok, you select it on asp, but the asp.net is not there... when you move to asp.net page ? and how you move from asp to asp.net page ? With a redirect ? with post ? with a link ? Commented Dec 27, 2013 at 0:55
  • The problem is there is no link, redirect or post to go to asp.net page . They are separated page and my task is; if inside the classic asp combo box, book is selected than do not accept the 0 price on asp.net page. Commented Dec 27, 2013 at 1:01

1 Answer 1

0

Let say that you have some input control on any page, html, asp what ever, with some parametre that you wish to pass to an asp.net page

if the input control have a name attribute like

<form method="post" action="thenewpage.aspx">
    <input name="nameOfInput" type="text" id="idofinput" />
    <input type="submit" name="btnGo" value="Create Box" id="btnGo" />
</form>

and you have a button that make post back to an asp.net page, then you get that parametre on asp.net side using the Request.Form and the name of the input control as:

Request.Form["nameOfInput"]

If you make a call the page with url parameter, you need to use some kind of javascript to dynamically create the URL string for the call.

The issue that you have here, is that the asp.net page will hit the validation of the page security because is not going to find the page validation informations he needed to secure the page.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.