Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondatepicker textbox in asp.net Pin
Praveen Kandari6-Apr-15 1:46
Praveen Kandari6-Apr-15 1:46 
AnswerRe: datepicker textbox in asp.net Pin
wikizhao19-Apr-15 23:14
wikizhao19-Apr-15 23:14 
QuestionSession Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API Pin
Member 115756782-Apr-15 1:17
Member 115756782-Apr-15 1:17 
AnswerRe: Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API Pin
Vasudevan Deepak Kumar2-Apr-15 22:57
Vasudevan Deepak Kumar2-Apr-15 22:57 
AnswerRe: Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API Pin
jkirkerx3-Apr-15 7:05
professionaljkirkerx3-Apr-15 7:05 
AnswerRe: Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API Pin
Member 115596118-Apr-15 18:30
Member 115596118-Apr-15 18:30 
QuestionSetting Textbox value using JQuery Pin
indian1431-Apr-15 12:10
indian1431-Apr-15 12:10 
AnswerRe: Setting Textbox value using JQuery Pin
Richard Deeming2-Apr-15 2:23
mveRichard Deeming2-Apr-15 2:23 
Disabled controls will not be included in the data posted back to the server. This is standard behaviour for all browsers, and has been since HTML forms were first introduced. There is no way to change this, short of removing the disabled attribute just before the form is submitted.

Read-only controls will be included in the data posted back to the server. However, looking at the code[^], if the ReadOnly property is set, the posted value will be ignored.

If you can work with the control being read-only rather than disabled, then you can set the readonly property from Javascript instead:
aspx
<asp:TextBox ID="txtBirthDate" runat="server" />
JavaScript
$(function(){
    $("[id$='txtBirthDate']").prop("readonly", true);
});

Otherwise, you'll need to clear the disabled property before the form is submitted:
JavaScript
$(document).on("submit", "form", function(){
    $("[id$='txtBirthDate']").prop("disabled", false);
});



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Setting Textbox value using JQuery Pin
indian1432-Apr-15 7:27
indian1432-Apr-15 7:27 
AnswerRe: Setting Textbox value using JQuery Pin
jkirkerx3-Apr-15 7:16
professionaljkirkerx3-Apr-15 7:16 
QuestionHow create a cross domain web api? Pin
miss7861-Apr-15 3:49
miss7861-Apr-15 3:49 
AnswerRe: How create a cross domain web api? Pin
Afzaal Ahmad Zeeshan2-Apr-15 1:35
professionalAfzaal Ahmad Zeeshan2-Apr-15 1:35 
AnswerRe: How create a cross domain web api? Pin
jkirkerx3-Apr-15 7:30
professionaljkirkerx3-Apr-15 7:30 
QuestionAbsolutely lost with starting asp.net mvc Pin
Frygreen31-Mar-15 23:20
Frygreen31-Mar-15 23:20 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
King Fisher1-Apr-15 0:18
professionalKing Fisher1-Apr-15 0:18 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:14
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:14 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
King Fisher1-Apr-15 1:19
professionalKing Fisher1-Apr-15 1:19 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:59
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:59 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Frygreen2-Apr-15 3:45
Frygreen2-Apr-15 3:45 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
King Fisher2-Apr-15 5:01
professionalKing Fisher2-Apr-15 5:01 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:13
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:13 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
RajeeshMenoth1-Apr-15 1:16
professionalRajeeshMenoth1-Apr-15 1:16 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Frygreen1-Apr-15 3:02
Frygreen1-Apr-15 3:02 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
jkirkerx1-Apr-15 8:10
professionaljkirkerx1-Apr-15 8:10 
QuestionChance Textmode Date Format Pin
Praveen Kandari31-Mar-15 22:34
Praveen Kandari31-Mar-15 22:34 

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.