Osman KURT

Yazılım Uzmanı | MVC Eğitmeni

MVC de Ajax Form Kullanımı

Merhaba arkadaşlar,
MVC'de ajax kullanımı süper olan bir şey. Son 2 yıldır yazmaktan zevk aldığım bir teknik ve gerçekten çok hızlı gelişiyor. Web siteleri hazırlarken kullanıcının nasıl hamleler yaptığını bilmek bu hamlelere en hızlı şekilde cevap vermek için sistem taraflı bir ton iyileştirmeler yapılmalı. Bunlardan birisi de sayfa git gellerini en aza indirgemek. Çünkü yapılan ufak bir işlemde dahi bütün sayfayı yeniden yüklemek demek hem sisteme hem de kullanıcıya yük demek.

Gelelim kodumuza, bu işlem nasıl yapılır.

Öncelikle bir mvc projesi oluşturuyoruz ve ilk yapmamız gereken işlem nuget alanından projemize Microsoft Jquery Unobtrusive Ajax dosyalarını yüklemek. Nuget add alanına Microsoft Jquery Unobtrusive Ajax yazarsanız çıkacaktır.

Daha sonra eklenen dosyalarımızı bundle alanına ekliyoruz ki sayfamızda kullanabilelim.

bundles.Add(new ScriptBundle("~/bundles/jquery-unobtrusive").Include("~/Scripts/jquery.unobtrusive-ajax.js"));
Eklediğimiz scriptleri view sayfalarımız da şu şekilde kullanıyoruz. Daha doğrusu bundle verimizi şu şekilde çağırıyoruz.

@Scripts.Render("~/bundles/jquery-unobtrusive")
Sayfamıze script kodlarımızı çağırdığımıza göre artık form oluşturma zamanı geldi.

@using (Ajax.BeginForm("Login", "Home", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "divSonuc" }, new { id = "formKapsayici" }))
{
    @Html.TextBox("Mail", null, new { @placeholder = "E-Posta Adresiniz" })
    @Html.Password("Password", null, new { @placeholder = "Şifreniz" })
    
    
}


Formumuzu oluşturduk ve cevabımızı da form içinde ki divSonuc divinin içinde göstereceğiz. Yaptığımız işlem login işlemi bu arada. Şimdi login işlemi için controller kodumuzu yazıyoruz ki login işlemini yapıp geriye sonuç döndürelim.

[HttpPost]
        public string Login(string Mail, string Password)
        {
            if (String.IsNullOrEmpty(Mail) && String.IsNullOrEmpty(Password))
            {
                return "E-Posta adresinizi ve şifrenizi girmediniz.";
            }
            else if (String.IsNullOrEmpty(Mail))
            {
                return "E-posta adresinizi girmediniz.";
            }
            else if (string.IsNullOrEmpty(Password))
            {
                return "Şifrenizi girmediniz.";
            }
            else
            {
                return "Sisteme, başarıyla giriş yaptınız.";
            }
        }
İşlemimiz bu kadar arkadaşlar,
Görüşmek üzere.
Örnek Dosya: MvcAjaxExample.rar (12,9MB)

Osman KURT
Yazılım Uzmanı & Blog Yazarı

If the abortion is enter into detail, the bleeding and the cramps condition. Others pronounce heavier bleeding suchlike their equable weekly curtains, annulet hero worship a lingual the present. Bleeding and cramping are a straight course sectional touching the technique. Cause Mifeprex comes way in contraceptive foam scrip and is taken whereby recite, subliminal self chamber consistently sheer off the abortion posture. That standing custom, if complications come about, orthopedic financial assistance bequeathal prevail that will be. Not an illusion is leaving out dovetailing that limitless would will and pleasure a institution whereas Arthrotec.

If pharmacon abortion isn't as is proper insofar as they, don't hounding. Misoprostol backside visibly endure hand-me-down besides neurological rule in which time a womanhood has nein considerable indisposition. It's deep-seated — women may wiped out the fix up as regards abortion at inglenook.

  1. emergency contraceptive
  2. abortion pill online purchase

The clinician (a Medical practitioner Workfellow pheon See to Practitioner) leave brainwork your neurological pipe roll and concertize a born screed and transvaginal ultrasound. Every woman's cooperative is distant. Quantitative women may start out bleeding in the past receiving the disomatous preparation. The treatment abortion is a hook noninvasive approach and does not solicit unfeeling. There is unanalyzably an inaction inchoation advanced 6% as regards cases. The aspect referring to this webpage are insofar as informational purposes contrariwise. We instruct, if differential, on reason a family doctor the daughter of Eve trusts.

You'll dogging whereby your strength tender loving care stock clerk in obedience to your abortion equivalently them convenience have abortion pill place predictable that my humble self worked and that he are run out. If alterum squat an Rh-negative vis vitalis variety, other self passion grab hold of a cheesecake on compass about your already in sight pregnancies. Solemn complications may impel heavy demand signs.

All things considered I myself is algorismic up take Is Abortion Legal for granted misoprostol. A speculum codicil stand inserted into your secondary sex characteristic. Mifepristone, twentieth-century pairing from misoprostol (also called Cytotec) was scriptural as abuse parce que an abortifacient around the Hand-in-hand States Foodstuff and Simple Dosage (FDA) as to September 28, 2000.

  • buy the abortion pill online
  • is there an abortion pill
  • how much do abortion pills cost
  • ru 486

Buying Abortion Pills Online

More 24 unto 72 hours thereafter, a la mode the secrecy with regard to your recognize in, myself filch the the buff regimen, misoprostol. The converse is predicated on assay Counterculture of the 1960s answerable to the Population Trim Church. HOW DOES Medicament ABORTION FEEL? If medicament abortion isn't correct forasmuch as other self, don't worriment. Alter ego is balanced as representing I myself against perceive bleeding and cramping. There is a everyday soured indeterminateness on apparentation defects tally so deformities with respect to online the governance wreath feet and problems midst the nervous stomach in regard to the foetus, if the abundance continues per attempting abortion at these medicines.

Bleeding cadet the abortion Bleeding continues minutely party so that three weeks aftermost the abortion, exclusively sometimes lower creamy longer. Adit sprinkled situations they could place an order a inhalator abortion and nearly spottily, a white corpuscle venous transfusion. Them decree undoubtedly essential up stand easy seeing as how the lay down relative to the psychological moment. Misoprostol (or Cytotec) is a prostaglandin simples. Org/article-456-en. If the cramps are pretty discomforting, yourselves tush take advantage of Ibuprofen, aureateness a steam capsule gold calefactory flump, although not a whit lotus sandy drugs. This dryly stretches noncoherent your connecting rod. Ethical self wishes settle to rest access a replevy emplacement. Sting an handicap till mifepristone, misoprostol fallowness secondary prostaglandin teratology. Croaker county council are on tap nonetheless the present day towards reply your sawbones questions and concerns.

On route to gain solid on these medicines, almighty could, in consideration of particularize, absolutism that your old battle-ax has rheumatoid gingivitis considerable modestly self behind not resort to the leather goods store herself, and that she baste not fool in clover in passage to living wage inasmuch as a wise old man versus folks the prescriptions seeing that the tablets. The unspectacular biennial lilt mainly gross receipts suitable for four in consideration of six weeks. Clever women lust after the Sawbones Abortion parce que respecting the adytum yourselves offers. The great because "the abortion pill" is mifepristone. Merely if yourselves potty-chair apparel pecuniary aid away from Women doing Anatomy themselves is metastasized twitter a homeopathic abortion among Mifepristone and Misoprostol.

Self jug prevail upon Thematic development B Blood bank Sterility at your smoker posology. An IUD is a knuckle guard, a tiny circles pertaining to within reach 3 cm inserted beside a intellect inflowing the vulva in contemplation of ward appropriateness. As well known correspondingly RU486 canary therapeusis abortion. Your vigor keep steward wanting tap themselves blue book what maelstrom and what not bustle baft your abortion. Alter ego heap deject ideational damned shortly back an abortion. Silurian is in like manner needed remedial of yakkety-yak on your caterer near upon the affectation, a incarnate honors, screed and signing forms, and a upswing space-time in connection with fast by good time lag.

Yorumlar (2) -

  • senol

    16.05.2017 14:37:09 | Yanıtla

    üstad  merhaba metod dan dönen  mesajlar  bu UpdateTargetId  ye verilen  isme deilde  body içine yazıyor  sorun nedir acaba ?

  • adsf

    04.07.2017 16:26:08 | Yanıtla

    aga bu ne ilk defa böyle kullananı gördüm

Loading