Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Code for page ranking PinPopular
Sandeep Mewara4-Jun-10 19:57
mveSandeep Mewara4-Jun-10 19:57 
AnswerRe: Code for page ranking Pin
Peace ON4-Jun-10 19:59
Peace ON4-Jun-10 19:59 
GeneralRe: Code for page ranking Pin
Sandeep Mewara4-Jun-10 20:06
mveSandeep Mewara4-Jun-10 20:06 
GeneralRe: Code for page ranking Pin
Peace ON4-Jun-10 21:12
Peace ON4-Jun-10 21:12 
RantRe: Code for page ranking Pin
saini arun4-Jun-10 20:03
saini arun4-Jun-10 20:03 
Questionhow to restrict the user not to redirect to other page when check box is checked in asp.net with c# Pin
developerit4-Jun-10 19:08
developerit4-Jun-10 19:08 
AnswerRe: how to restrict the user not to redirect to other page when check box is checked in asp.net with c# Pin
Peace ON4-Jun-10 19:52
Peace ON4-Jun-10 19:52 
AnswerRe: how to restrict the user not to redirect to other page when check box is checked in asp.net with c# [modified] Pin
Ankur\m/4-Jun-10 21:32
professionalAnkur\m/4-Jun-10 21:32 
I am so sorry. I just saw that answer was not posted. Actually I posted it through my mobile. So may be something went wrong. Posting it again.
You mean if a user checks the CheckBox, he should not be able to click on the button.

You can do this using JavaScript. The logic that you would use here is, if the user checks any CheckBox, you should disable the (next) button. So handle CheckBox's onClick event. And in that even write code to disable the button.
XML
<asp:CheckBox ID="CheckBox1" runat="server" onclick="javascript:disableNavigation();" />


JavaScript
<script type="text/javascript">
function disableNavigation()
    {
        if(document.getElementById("CheckBox1").checked == true)
        {
            document.getElementById("Button1").disabled = true;
        }
        else
        {
            document.getElementById("Button1").disabled = false;
        }
    }
</script>

..Go Green..
modified on Saturday, June 5, 2010 2:58 PM

Questionhow to send all pages from gridview control to email using asp.net with c# Pin
developerit4-Jun-10 19:00
developerit4-Jun-10 19:00 
AnswerRe: how to send all pages from gridview control to email using asp.net with c# Pin
Peace ON4-Jun-10 19:43
Peace ON4-Jun-10 19:43 
Questiondatetime question Pin
Edward Topalian4-Jun-10 14:14
Edward Topalian4-Jun-10 14:14 
AnswerRe: datetime question Pin
Rutvik Dave4-Jun-10 14:24
professionalRutvik Dave4-Jun-10 14:24 
QuestionRe: datetime question Pin
Edward Topalian4-Jun-10 14:37
Edward Topalian4-Jun-10 14:37 
AnswerRe: datetime question Pin
Rutvik Dave4-Jun-10 15:51
professionalRutvik Dave4-Jun-10 15:51 
GeneralRe: datetime question Pin
Edward Topalian5-Jun-10 6:06
Edward Topalian5-Jun-10 6:06 
QuestionHow to make fixed header in gridView inside asp:panel? Pin
mittalpa4-Jun-10 8:34
mittalpa4-Jun-10 8:34 
AnswerRe: How to make fixed header in gridView inside asp:panel? Pin
Yusuf4-Jun-10 13:38
Yusuf4-Jun-10 13:38 
GeneralRe: How to make fixed header in gridView inside asp:panel? Pin
Sandeep Mewara4-Jun-10 20:07
mveSandeep Mewara4-Jun-10 20:07 
GeneralRe: How to make fixed header in gridView inside asp:panel? Pin
Yusuf5-Jun-10 11:38
Yusuf5-Jun-10 11:38 
GeneralRe: How to make fixed header in gridView inside asp:panel? Pin
Sandeep Mewara5-Jun-10 23:31
mveSandeep Mewara5-Jun-10 23:31 
AnswerRe: How to make fixed header in gridView inside asp:panel? Pin
Sandeep Mewara4-Jun-10 20:03
mveSandeep Mewara4-Jun-10 20:03 
QuestionDynamically setting width of controls Pin
mark_me4-Jun-10 8:25
mark_me4-Jun-10 8:25 
AnswerRe: Dynamically setting width of controls Pin
Peace ON4-Jun-10 22:57
Peace ON4-Jun-10 22:57 
QuestionWhat is photosynthesis example like bingmaps site Pin
somasekhara7774-Jun-10 8:23
somasekhara7774-Jun-10 8:23 
AnswerRe: What is photosynthesis example like bingmaps site Pin
T M Gray4-Jun-10 9:04
T M Gray4-Jun-10 9:04 

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.