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

ASP.NET

 
Questioncheckboxes not working Pin
netJP12L8-Jun-10 4:34
netJP12L8-Jun-10 4:34 
AnswerRe: checkboxes not working Pin
Sandeep Mewara8-Jun-10 5:00
mveSandeep Mewara8-Jun-10 5:00 
QuestionRestriction of new password generated using PasswordRecovery control Pin
sahana.C.R8-Jun-10 3:11
sahana.C.R8-Jun-10 3:11 
AnswerRe: Restriction of new password generated using PasswordRecovery control Pin
Peace ON8-Jun-10 4:17
Peace ON8-Jun-10 4:17 
GeneralRe: Restriction of new password generated using PasswordRecovery control Pin
sahana.C.R9-Jun-10 0:00
sahana.C.R9-Jun-10 0:00 
QuestionDisplay message on asp label by using Javascript. Pin
AndieDu7-Jun-10 21:39
AndieDu7-Jun-10 21:39 
AnswerRe: Display message on asp label by using Javascript. Pin
Sandeep Mewara7-Jun-10 21:57
mveSandeep Mewara7-Jun-10 21:57 
AnswerRe: Display message on asp label by using Javascript. Pin
Brij8-Jun-10 0:25
mentorBrij8-Jun-10 0:25 
As you made your Label visible false, it wont render on the page and can not be made visible fron javascript.

So better make it like
<asp:label ID="Label1" runat="server" text="Label" style="display:none;"></asp:label>

Now you would be able to show from javascript.
Add onClientClick as Sandeep suggested like

OnClientClick="ShowLabel();"
and your js function would be
function ShowLabel()
    {
        document.getElementById("<%=Label1.ClientID %>").style.display='';
        document.getElementById("<%=Label1.ClientID %>").innerHTML="Updated Text";
    }


Let me know for any query

Questioncan i handle in Global.asax Pin
koolprasad20037-Jun-10 18:56
professionalkoolprasad20037-Jun-10 18:56 
AnswerRe: can i handle in Global.asax Pin
Venkatesh Mookkan7-Jun-10 19:11
Venkatesh Mookkan7-Jun-10 19:11 
AnswerRe: can i handle in Global.asax Pin
Abhijit Jana7-Jun-10 19:16
professionalAbhijit Jana7-Jun-10 19:16 
AnswerRe: can i handle in Global.asax Pin
Manas Bhardwaj7-Jun-10 21:43
professionalManas Bhardwaj7-Jun-10 21:43 
AnswerRe: can i handle in Global.asax Pin
T M Gray8-Jun-10 10:47
T M Gray8-Jun-10 10:47 
AnswerRe: can i handle in Global.asax Pin
koolprasad20038-Jun-10 18:45
professionalkoolprasad20038-Jun-10 18:45 
QuestionAll sessions expire when system time changes. Why? How to solve it? Pin
jahfer7-Jun-10 18:32
jahfer7-Jun-10 18:32 
AnswerRe: All sessions expire when system time changes. Why? How to solve it? Pin
Venkatesh Mookkan7-Jun-10 18:58
Venkatesh Mookkan7-Jun-10 18:58 
QuestionRe: All sessions expire when system time changes. Why? How to solve it? Pin
jahfer7-Jun-10 19:05
jahfer7-Jun-10 19:05 
AnswerRe: All sessions expire when system time changes. Why? How to solve it? Pin
Venkatesh Mookkan7-Jun-10 19:10
Venkatesh Mookkan7-Jun-10 19:10 
AnswerRe: All sessions expire when system time changes. Why? How to solve it? Pin
Anurag Gandhi7-Jun-10 22:25
professionalAnurag Gandhi7-Jun-10 22:25 
QuestionGridView Session Pin
Illegal Operation7-Jun-10 15:52
Illegal Operation7-Jun-10 15:52 
AnswerRe: GridView Session Pin
Venkatesh Mookkan7-Jun-10 17:42
Venkatesh Mookkan7-Jun-10 17:42 
AnswerRe: GridView Session Pin
Anurag Gandhi7-Jun-10 22:33
professionalAnurag Gandhi7-Jun-10 22:33 
QuestionExport Crystal Report to Excel/pdf in asp.net 3.5 Pin
sekannak7-Jun-10 10:00
sekannak7-Jun-10 10:00 
AnswerRe: Export Crystal Report to Excel/pdf in asp.net 3.5 Pin
geeeeeeeetha7-Jun-10 17:53
geeeeeeeetha7-Jun-10 17:53 
GeneralRe: Export Crystal Report to Excel/pdf in asp.net 3.5 Pin
sekannak7-Jun-10 22:03
sekannak7-Jun-10 22:03 

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.