Login with MVC3 Razor

  1. #1

    Login with MVC3 Razor

    Hello,

    I'm looking for login code for my mvc 3 application.
    I'm using Razor view there is a lot of examples with .aspx files but i m coding in .cshtml files with HtmlHelpers.
    Can any one provide me with such a code?
    I need an example like this one https://examples2.ext.net/#/Layout/FormLayout/Login/

    thanks
  2. #2
    Hi

    Any Ext.Net aspx sample can be easly transformed to Razor syntax
    What exactly problems do you have?

    Please see the following sample
    http://mvc.ext.net/#/Desktop/Overview/
  3. #3
    Thank you Vladimir,
    I want to do some verification on the client side before going the DirectEvent.
    For example if the username field is empty, i will not be able to click the button Login and i will display a message instead.
  4. #4
    You can use a DirectEvent's Before handler. Returning false from a handler prevents a DirectEvent.

    Another way is to listen a TextField's Change or ValidityChange client side and disable/enable a Button.

    Also you could use a FormBind option.
    http://docs.sencha.com/extjs/4.2.1/#...t-cfg-formBind
  5. #5
    validityChange just what i need.
    Thanks

Similar Threads

  1. Display DatePicker On Razor Syntax MVC3
    By 4L4Y in forum 2.x Help
    Replies: 2
    Last Post: Apr 02, 2013, 5:50 AM
  2. MVC3 Razor: Desktop button is not working
    By nahuel2203 in forum 2.x Help
    Replies: 0
    Last Post: Jun 24, 2012, 3:02 AM
  3. Ajax Problem - MVC3 RAZOR
    By chrono in forum 2.x Help
    Replies: 2
    Last Post: Jun 04, 2012, 10:49 PM
  4. [CLOSED] CalendarPanel Razor MVC3
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 02, 2012, 11:43 AM
  5. Ext.Net with MVC3(Razor)
    By abanikumar in forum 1.x Help
    Replies: 4
    Last Post: Jan 16, 2012, 9:55 AM

Tags for this Thread

Posting Permissions