I did a currency converter. but i have a problem. when i click the calculate the page refreshing and the datas which entered by user is cleaning. i think it is because of using return View(); :) .How can i solve this problem? Thanks
{
ViewBag.Result = frmAmount;
}
return View();
View
</p>
<p>
<label for="text3">Amount:</label>
<input type="text" name="frmAmount" />
</p>
<p>
<input type="submit" value="Calculate" />
</p>
<p>
<label for="text3">Sonuç:@ViewBag.Result</label>
</p>
For Example the amount be wiped when button clicked
Ajax.BeginFrominsteadHtml.BeginForm