Click here to Skip to main content
16,017,238 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Accessing properties of a control through Javascript Pin
Crazy Genius23-Sep-08 18:17
Crazy Genius23-Sep-08 18:17 
GeneralRe: Accessing properties of a control through Javascript Pin
Steve Echols23-Sep-08 18:43
Steve Echols23-Sep-08 18:43 
GeneralRe: Accessing properties of a control through Javascript Pin
Crazy Genius23-Sep-08 19:28
Crazy Genius23-Sep-08 19:28 
GeneralRe: Accessing properties of a control through Javascript Pin
Steve Echols23-Sep-08 19:34
Steve Echols23-Sep-08 19:34 
GeneralRe: Accessing properties of a control through Javascript Pin
Crazy Genius23-Sep-08 19:41
Crazy Genius23-Sep-08 19:41 
GeneralRe: Accessing properties of a control through Javascript Pin
Crazy Genius25-Sep-08 17:28
Crazy Genius25-Sep-08 17:28 
Questionreset when tab click Pin
jhyn22-Sep-08 16:34
jhyn22-Sep-08 16:34 
QuestionEnable/Disable Button through javascript [modified] Pin
xfitr222-Sep-08 16:24
xfitr222-Sep-08 16:24 
I have a asp.net page where my button is enabled or disabled depending on whether two textboxes are properly filled out. I enable/disable the button through the onchange events of the textboxes. Once button is enabled and I click it, the postback seems to have disappeared because it does nothing.

I enable/disable the button like this:
function checkBuild() {
    document.getElementById('sMsg').innerHTML = '';
    checkBAL();
    checkINI();
    if ((checkBAL()) && (checkINI())) {
        document.form1.btn1.disabled = false;
        checkWarning();
    } else {
        document.form1.btn1.disabled = true;
    }
}

I've read that in order for the button "btn1" to postback, I must have it enabled onLoad which I have done for testing. Therefore, if I click the button before my javascript fires, it works; only stops working once my checkBuild() function is called by the textboxes javascript onchange event. Can anyone help with this issue? Many thanks.

modified on Monday, September 22, 2008 10:31 PM

AnswerRe: Enable/Disable Button through javascript Pin
Tamer Oz22-Sep-08 21:31
Tamer Oz22-Sep-08 21:31 
QuestionAjax and SQL Pin
Jacob Dixon22-Sep-08 13:51
Jacob Dixon22-Sep-08 13:51 
QuestionReportViewer Pin
kenexcelon22-Sep-08 11:53
kenexcelon22-Sep-08 11:53 
QuestionAdding data using a user control. Pin
udaykatakam22-Sep-08 8:28
udaykatakam22-Sep-08 8:28 
AnswerRe: Adding data using a user control. Pin
ToddHileHoffer22-Sep-08 10:38
ToddHileHoffer22-Sep-08 10:38 
GeneralRe: Adding data using a user control. Pin
udaykatakam22-Sep-08 13:28
udaykatakam22-Sep-08 13:28 
GeneralRe: Adding data using a user control. Pin
ToddHileHoffer23-Sep-08 2:21
ToddHileHoffer23-Sep-08 2:21 
GeneralRe: Adding data using a user control. Pin
udaykatakam23-Sep-08 19:28
udaykatakam23-Sep-08 19:28 
GeneralRe: Adding data using a user control. Pin
ToddHileHoffer24-Sep-08 2:05
ToddHileHoffer24-Sep-08 2:05 
Question[Message Deleted] Pin
strawberrysh22-Sep-08 8:26
strawberrysh22-Sep-08 8:26 
AnswerRe: adding a list to cache(for shoppingcart) Pin
ToddHileHoffer22-Sep-08 10:44
ToddHileHoffer22-Sep-08 10:44 
QuestionConnection Interrupted [modified] Pin
#realJSOP22-Sep-08 5:59
professional#realJSOP22-Sep-08 5:59 
AnswerRe: Connection Interrupted Pin
N a v a n e e t h22-Sep-08 19:49
N a v a n e e t h22-Sep-08 19:49 
Questionchange language Pin
brettokumar22-Sep-08 4:17
professionalbrettokumar22-Sep-08 4:17 
AnswerRe: change language Pin
Caio Kinzel Filho22-Sep-08 4:29
Caio Kinzel Filho22-Sep-08 4:29 
QuestionTextbox causing strange positioning bug in IE6 Pin
Mel Padden22-Sep-08 3:46
Mel Padden22-Sep-08 3:46 
QuestionThe connection name 'MyConnection' was not found in the applications configuration or the connection string is empty. Pin
enthusiastic47722-Sep-08 3:06
enthusiastic47722-Sep-08 3:06 

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.