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

ASP.NET

 
GeneralRe: Correctly displaying styled label? Pin
Member 87616675-Nov-14 14:39
Member 87616675-Nov-14 14:39 
AnswerRe: Correctly displaying styled label? Pin
Peter Leow5-Nov-14 14:55
professionalPeter Leow5-Nov-14 14:55 
GeneralRe: Correctly displaying styled label? Pin
Member 87616675-Nov-14 15:03
Member 87616675-Nov-14 15:03 
AnswerRe: Correctly displaying styled label? Pin
jkirkerx6-Nov-14 7:14
professionaljkirkerx6-Nov-14 7:14 
GeneralRe: Correctly displaying styled label? Pin
Member 87616676-Nov-14 7:54
Member 87616676-Nov-14 7:54 
GeneralRe: Correctly displaying styled label? Pin
jkirkerx6-Nov-14 8:15
professionaljkirkerx6-Nov-14 8:15 
GeneralRe: Correctly displaying styled label? Pin
Member 87616676-Nov-14 9:09
Member 87616676-Nov-14 9:09 
GeneralRe: Correctly displaying styled label? Pin
jkirkerx6-Nov-14 9:23
professionaljkirkerx6-Nov-14 9:23 
I don't feel comfortable with that, it should be double quote marks.

The iForget was just a placeholder, I wasn't able to remember the name of the CSS class, perhaps you have 2 CSS classes with the same name? Anyways complete your testing using the same name and then change it later, back to something more elegent.

Cleanup the .iForget CSS Class, and just put 1 display statement in it for display: none;
.iForget {
   display: none;
   font: normal 14px 'Droid Sans' , 'Trebuchet MS' , Arial, sans-serif;
   color: #ffffff;
   position: absolute;
   top: 330px;
   border: 1px solid white;
   padding: 15px;
}


In you button code, it should be
Protected Sub uploadButton_Click(sender As [Object], e As EventArgs)
  
  If Page.IsPostback then

   With messageArea //To Show the Message use 'inline-block'
     .style.remove(HtmlTextWriterStyle.display)
     .style.add(HtmlTextWriterStyle.display, "inline-block")
   End With

  End If

End Sub


but remember that the label or span tag will not change until the page posts back to the server and makes the round trip. So I'm not sure what the button click does, if it uploads a file, then the label will not change until the file upload is complete.

So this setup here will make the label not appear. You click the button, the tasks will complete, and then the label will appear.
GeneralRe: Correctly displaying styled label? Pin
Member 87616676-Nov-14 10:04
Member 87616676-Nov-14 10:04 
GeneralRe: Correctly displaying styled label? Pin
jkirkerx6-Nov-14 10:06
professionaljkirkerx6-Nov-14 10:06 
GeneralRe: Correctly displaying styled label? Pin
Member 87616676-Nov-14 10:38
Member 87616676-Nov-14 10:38 
GeneralRe: Correctly displaying styled label? Pin
jkirkerx6-Nov-14 10:50
professionaljkirkerx6-Nov-14 10:50 
GeneralRe: Correctly displaying styled label? Pin
Member 87616676-Nov-14 10:57
Member 87616676-Nov-14 10:57 
Questiondisplay contents of GAC 3.5 and 4.5 versions Pin
pmcm5-Nov-14 5:43
pmcm5-Nov-14 5:43 
QuestionThe future of WCF Pin
josephdoggie5-Nov-14 3:44
josephdoggie5-Nov-14 3:44 
AnswerRe: The future of WCF Pin
ZurdoDev5-Nov-14 5:16
professionalZurdoDev5-Nov-14 5:16 
AnswerRe: The future of WCF Pin
Jameel VM5-Nov-14 18:43
Jameel VM5-Nov-14 18:43 
AnswerRe: The future of WCF Pin
Dominic Burford7-Nov-14 4:43
professionalDominic Burford7-Nov-14 4:43 
Generalneed imideately Pin
Member 112053335-Nov-14 0:48
Member 112053335-Nov-14 0:48 
GeneralRe: need imideately Pin
Garth J Lancaster5-Nov-14 0:54
professionalGarth J Lancaster5-Nov-14 0:54 
GeneralRe: need imideately Pin
Duncan Edwards Jones5-Nov-14 0:54
professionalDuncan Edwards Jones5-Nov-14 0:54 
AnswerRe: need imideately Pin
ZurdoDev5-Nov-14 2:16
professionalZurdoDev5-Nov-14 2:16 
Questionneed imideately Pin
Member 112053335-Nov-14 0:47
Member 112053335-Nov-14 0:47 
AnswerRe: need imideately Pin
Garth J Lancaster5-Nov-14 0:53
professionalGarth J Lancaster5-Nov-14 0:53 
QuestionHow to create a share button on master.master page Pin
Rampreet Sahani3-Nov-14 21:27
Rampreet Sahani3-Nov-14 21:27 

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.