Using below Iframe i want to pass hidden field value to controller action.
This is the Iframe i am using
---------------------------
<!DOCTYPE html>
<html>
<body>
<iframe src="http://localhost:61536/home/commonloginaetm height="200" width="300"></iframe>
<input type="hidden" name="TRAVELLER_FIRST_NAME" value="FirstName">
<input type="hidden" name="TRAVELLER_LAST_NAME" value="Norway">
<input type="hidden" name="TRAVELLER_EMAIL" value="Email">
</body>
</html>
Controller action
-----------------
public ActionResult CommonLoginAETM(FormCollection objForm)
{
string strFirstName = Request.Form["TRAVELLER_FIRST_NAME"];
}
the above code not working at my end. Please kindly help me on this. How to read iframe hidden field value in controller action method.
What I have tried:
Using below Iframe i want to pass hidden field value to controller action.
This is the Iframe i am using
---------------------------
<!DOCTYPE html>
<html>
<body>
<iframe src="http://localhost:61536/home/commonloginaetm height="200" width="300"></iframe>
<input type="hidden" name="TRAVELLER_FIRST_NAME" value="FirstName">
<input type="hidden" name="TRAVELLER_LAST_NAME" value="Norway">
<input type="hidden" name="TRAVELLER_EMAIL" value="Email">
</body>
</html>
Controller action
-----------------
public ActionResult CommonLoginAETM(FormCollection objForm)
{
string strFirstName = Request.Form["TRAVELLER_FIRST_NAME"];
}
the above code not working at my end. Please kindly help me on this. How to read iframe value in controller action method.