Quantcast
Channel: BTSoru.com - Bilisim ve Yazilim Teknolojileri Soru/Cevap Platformu - latest questions
Viewing all articles
Browse latest Browse all 4270

Formdan verileri neden alamıyorum?

$
0
0
@if (Model.IsGiftCard)
{
using (Html.BeginForm("AddToCartProduct", "ShoppingCart", FormMethod.Post))
{
<div class="giftCard">
    @T("Products.GiftCard.Field.Fill")

    <dl>
        <dt>@Html.LabelFor(model => model.RecipientName):</dt>
        <dd>
            @Html.TextBoxFor(model => model.RecipientName)
        </dd>
        @if (Model.GiftCardType == Nop.Core.Domain.Catalog.GiftCardType.Virtual)
        {
        <dt>@Html.LabelFor(model => model.RecipientEmail): </dt>
        <dd>
            @Html.TextBoxFor(model => model.RecipientEmail)
        </dd>
        }

şeklinde devam eden form sayfam var ve bu formu post ettigimde

[HttpPost]
    [ValidateInput(false)]
    public JsonResult AddToCartProduct(AddToCartModel model, FormCollection form)
    {

metodunda yakalıyorum ancak form verilerinin hiçbiri gelmiyor. ancak breakpoint koyunca bu metoda düşüyo. Neden form verileri gelmez ki . Fikriniz var mı ?


Viewing all articles
Browse latest Browse all 4270

Trending Articles


huddam daveti


Tekasür Suresi


"Yâ Kuddûs!" Esması Havâs ve Esrârı


Kasemi Mübelliğa


Peri44


Kuvvetli muhabbet ve aşk tılsımı


El-Mütekebbir


Papaz büyüsü


SCCM 2012 Client Installation issue


Zilhicce Ayının Namaz Duası ÖNEMLİ