Connecting Tech Pros Worldwide Help | Site Map

CollapsiblePanelExtender problem for __doPostBack

Newbie
 
Join Date: Jun 2009
Posts: 30
#1: Oct 14 '09
I am using CollapsiblePanelExtender in my page, from the javascript i'm doing post back(ie., __doPostBack) & in my .aspx.cs page, i'm calling javascript function through ClientScript.RegisterStartupScript(typeof(Page), "myscript", "reportOpen();", true); but since i'm using CollapsiblePanelExtender the function in javascript not able to call on click of View button. If i click View button more than once now the popup gets open.

Thanks in advance
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Oct 14 '09

re: CollapsiblePanelExtender problem for __doPostBack


I don't understand what the problem is but you shouldn't be using the Page.ClientScript.RegisterStartupScript() method to register your JavaScript. You should be using the ScriptManager to register your scripts.

-Frinny
Reply