Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: grid view Pin
N a v a n e e t h25-Nov-09 14:59
N a v a n e e t h25-Nov-09 14:59 
AnswerRe: grid view Pin
sashidhar25-Nov-09 16:50
sashidhar25-Nov-09 16:50 
GeneralUser Control property not being set. Pin
Brady Kelly25-Nov-09 4:26
Brady Kelly25-Nov-09 4:26 
GeneralRe: User Control property not being set. Pin
Christian Graus25-Nov-09 6:01
protectorChristian Graus25-Nov-09 6:01 
GeneralRe: User Control property not being set. Pin
Abhishek Sur25-Nov-09 8:13
professionalAbhishek Sur25-Nov-09 8:13 
QuestionUpdating Control outside Update pannel Pin
Milind R Chavan25-Nov-09 4:11
Milind R Chavan25-Nov-09 4:11 
AnswerRe: Updating Control outside Update pannel Pin
Christian Graus25-Nov-09 6:02
protectorChristian Graus25-Nov-09 6:02 
AnswerRe: Updating Control outside Update pannel Pin
Abhishek Sur25-Nov-09 8:23
professionalAbhishek Sur25-Nov-09 8:23 
All the content that is inside the Update panel will be posted back to the client and refreshed in the client as response. So it is impossible to update controls outside updatepanel from the server.

As Christian suggested, you need to pass some Javascript to the client which might show the Panel.

But there is another scenario. ASP.NET doesnt render controls that are made Visible=false. So from client side using javascript, you will not going to find the control.

So the solution will be :
1. Use pnl.Style.Add(HtmlTextWriterStyle.Display, "none") to make the panel invisible instead of pnl.Visible=false //To ensure that pnl is rendered in the client.
2. In postback of UpdatePanel use RegisterStartupScript to pass a javascript that resets the pnl.style. Your javascript might look like
"document.getElementById('" + pnl.ClientId + "').style.display='none';"

Big Grin | :-D

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

AnswerRe: Updating Control outside Update pannel Pin
Nishant Singh25-Nov-09 19:41
Nishant Singh25-Nov-09 19:41 
QuestionSetting active link bold in html Pin
shankbond25-Nov-09 2:34
shankbond25-Nov-09 2:34 
AnswerRe: Setting active link bold in html Pin
Abhishek Sur25-Nov-09 3:44
professionalAbhishek Sur25-Nov-09 3:44 
GeneralRe: Setting active link bold in html Pin
shankbond25-Nov-09 4:27
shankbond25-Nov-09 4:27 
GeneralRe: Setting active link bold in html Pin
Abhishek Sur25-Nov-09 10:25
professionalAbhishek Sur25-Nov-09 10:25 
QuestionQuestion about converting CSV stream to XML Format Pin
James Shao25-Nov-09 2:33
James Shao25-Nov-09 2:33 
AnswerRe: Question about converting CSV stream to XML Format Pin
Abhishek Sur25-Nov-09 3:47
professionalAbhishek Sur25-Nov-09 3:47 
GeneralRe: Question about converting CSV stream to XML Format Pin
James Shao25-Nov-09 5:14
James Shao25-Nov-09 5:14 
QuestionI want to implement Windows authentication. Pin
skcdac25-Nov-09 2:14
skcdac25-Nov-09 2:14 
AnswerRe: I want to implement Windows authentication. Pin
Abhishek Sur25-Nov-09 2:17
professionalAbhishek Sur25-Nov-09 2:17 
AnswerRe: I want to implement Windows authentication. Pin
Vimalsoft(Pty) Ltd25-Nov-09 2:19
professionalVimalsoft(Pty) Ltd25-Nov-09 2:19 
QuestionFree WYSIWYG Editors Pin
Abbas_here25-Nov-09 1:36
Abbas_here25-Nov-09 1:36 
AnswerRe: Free WYSIWYG Editors Pin
sashidhar25-Nov-09 1:41
sashidhar25-Nov-09 1:41 
GeneralRe: Free WYSIWYG Editors Pin
Abbas_here25-Nov-09 2:05
Abbas_here25-Nov-09 2:05 
AnswerRe: Free WYSIWYG Editors Pin
Gamzun25-Nov-09 1:55
Gamzun25-Nov-09 1:55 
GeneralRe: Free WYSIWYG Editors Pin
Abbas_here25-Nov-09 2:06
Abbas_here25-Nov-09 2:06 
AnswerRe: Free WYSIWYG Editors Pin
Abhishek Sur25-Nov-09 2:20
professionalAbhishek Sur25-Nov-09 2:20 

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.