Click here to Skip to main content
15,889,595 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: persist changes by javascript on postback in asp.net Pin
F-ES Sitecore9-Aug-15 1:08
professionalF-ES Sitecore9-Aug-15 1:08 
QuestionConsole Application in C# Pin
PRAKAS PANDEY8-Aug-15 4:09
PRAKAS PANDEY8-Aug-15 4:09 
AnswerRe: Console Application in C# Pin
Ravi Bhavnani8-Aug-15 5:00
professionalRavi Bhavnani8-Aug-15 5:00 
AnswerRe: Console Application in C# Pin
User 418025410-Aug-15 9:11
User 418025410-Aug-15 9:11 
QuestionHow to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 118937297-Aug-15 8:27
Member 118937297-Aug-15 8:27 
AnswerRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx7-Aug-15 8:55
professionaljkirkerx7-Aug-15 8:55 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 118937297-Aug-15 9:19
Member 118937297-Aug-15 9:19 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx7-Aug-15 12:41
professionaljkirkerx7-Aug-15 12:41 
Look in the database DAL, there are private and public members in it.
Most MVC Apps use a database model to describe the database and fields when using Entity Framework. You can say this column is required to write a record.

Also, I think in the Models folder, you can say a field is required for validation, so check there as well. The model tells the view that these fields are required for validation.

Technically, makes no sense to me why you would want the user to leave the page without filling in the form first, unless it's a search box or something, and the user has no interest in searching, and the form submit triggers the validation and postback event, and validation fails.

I'm leaving now so I won't back back till tomorrow, but take a peek around in your app.

Database in VB
<Required>
<StringLength(80)>
<MaxLength(80)>
Public Property LoginID As String
   Get
      Return mLoginID
   End Get
   Set(value As String)
      mLoginID = value
   End Set

End Property

Model in C#
public class RegisterExternalLoginModel
{
    [Required]
    [Display(Name = "User name")]
    public string UserName { get; set; }        
    public string ExternalLoginData { get; set; }
}

GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx8-Aug-15 8:30
professionaljkirkerx8-Aug-15 8:30 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 8:31
Member 1189372910-Aug-15 8:31 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx10-Aug-15 9:48
professionaljkirkerx10-Aug-15 9:48 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 9:57
Member 1189372910-Aug-15 9:57 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx10-Aug-15 11:09
professionaljkirkerx10-Aug-15 11:09 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 11:32
Member 1189372910-Aug-15 11:32 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx10-Aug-15 12:10
professionaljkirkerx10-Aug-15 12:10 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 14:01
Member 1189372910-Aug-15 14:01 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
jkirkerx11-Aug-15 6:50
professionaljkirkerx11-Aug-15 6:50 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372911-Aug-15 7:25
Member 1189372911-Aug-15 7:25 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 11:32
Member 1189372910-Aug-15 11:32 
GeneralRe: How to go to next Page while hitting the next button without selecting a value in the current page? Pin
Member 1189372910-Aug-15 9:59
Member 1189372910-Aug-15 9:59 
QuestionDatalist control Pin
Otekpo Emmanuel7-Aug-15 2:28
Otekpo Emmanuel7-Aug-15 2:28 
AnswerRe: Datalist control Pin
User 418025410-Aug-15 9:13
User 418025410-Aug-15 9:13 
GeneralRe: Datalist control Pin
Otekpo Emmanuel12-Aug-15 11:00
Otekpo Emmanuel12-Aug-15 11:00 
GeneralRe: Datalist control Pin
User 418025413-Aug-15 3:44
User 418025413-Aug-15 3:44 
QuestionForms and Master Pages - Best Practice Pin
JBHowl6-Aug-15 6:50
JBHowl6-Aug-15 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.