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

ASP.NET

 
QuestionTextBox value doesnot update if Calender control placed below the textbox control [modified] Pin
schampacc7-Apr-11 22:13
schampacc7-Apr-11 22:13 
QuestionAJAX Accordion Control Pin
Orcun Iyigun7-Apr-11 14:52
Orcun Iyigun7-Apr-11 14:52 
AnswerRe: AJAX Accordion Control Pin
Pete O'Hanlon7-Apr-11 23:11
mvePete O'Hanlon7-Apr-11 23:11 
GeneralRe: AJAX Accordion Control Pin
Orcun Iyigun8-Apr-11 7:13
Orcun Iyigun8-Apr-11 7:13 
QuestionURL redirection Pin
Member 78129457-Apr-11 1:04
Member 78129457-Apr-11 1:04 
AnswerRe: URL redirection Pin
Viral Upadhyay7-Apr-11 2:03
Viral Upadhyay7-Apr-11 2:03 
Questionjavascript function call using ScriptManager.RegisterStartupScript Pin
anishkannan6-Apr-11 23:41
anishkannan6-Apr-11 23:41 
AnswerRe: javascript function call using ScriptManager.RegisterStartupScript Pin
Arindam Tewary7-Apr-11 1:42
professionalArindam Tewary7-Apr-11 1:42 
Hi,

The code you have written is OK but one problem.

ScriptManager.RegisterStartupScript function's last parameter is a boolean value and it is used for mentioning whether "" tag need to be appened to the rendered script. In your code as you have appended <script> tag already, and while calling the ScriptManager.RegisterStartupScript function, 5th parameter you have mentioned as true, then in client side, system generates script tag twice and rendered. As a result the rendered code is here,

<pre>

&lt;script type="text/javascript">
//&lt;![CDATA[
&lt;script language='javascript' type='text/javascript'>ShowValue();&lt;/script>//]]>
&lt;/script>

</pre>
As you see, it is wrong and if above code is rendered, then surely it gives error. Smile | :)

To correct it, you need to call ScriptManager.RegisterStartupScript with "false" value as the last parameter if from the code behind side you are appending the script tag.

<pre>

ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowValue", script, false);

</pre>

Hope that helps,
<div class="signature">Thanks,
Arindam D Tewary</div>
QuestionWhere is System.Web.Extensions, Version=3.6.0.0 ? Pin
mrquang936-Apr-11 22:23
mrquang936-Apr-11 22:23 
AnswerRe: Where is System.Web.Extensions, Version=3.6.0.0 ? Pin
Parwej Ahamad7-Apr-11 2:45
professionalParwej Ahamad7-Apr-11 2:45 
GeneralRe: Where is System.Web.Extensions, Version=3.6.0.0 ? Pin
mrquang937-Apr-11 16:02
mrquang937-Apr-11 16:02 
Questionon Autocomplete, call ashx page to get data Pin
Ravi Sant6-Apr-11 19:34
Ravi Sant6-Apr-11 19:34 
AnswerRe: on Autocomplete, call ashx page to get data Pin
ktrrzn6-Apr-11 21:12
ktrrzn6-Apr-11 21:12 
QuestionMoveNext is not moving next!! Pin
Bomb_shell6-Apr-11 10:57
Bomb_shell6-Apr-11 10:57 
AnswerRe: MoveNext is not moving next!! Pin
Luc Pattyn6-Apr-11 13:57
sitebuilderLuc Pattyn6-Apr-11 13:57 
AnswerRe: MoveNext is not moving next!! Pin
ktrrzn6-Apr-11 13:58
ktrrzn6-Apr-11 13:58 
AnswerRe: MoveNext is not moving next!! Pin
C#Coudou6-Apr-11 17:00
C#Coudou6-Apr-11 17:00 
AnswerRe: MoveNext is not moving next!! Pin
HaBiX6-Apr-11 21:49
HaBiX6-Apr-11 21:49 
GeneralRe: MoveNext is not moving next!! Pin
Bomb_shell7-Apr-11 8:05
Bomb_shell7-Apr-11 8:05 
Questionhow to use reusuable control in ajax tab control? Pin
Dhyanga6-Apr-11 4:38
Dhyanga6-Apr-11 4:38 
AnswerRe: how to use reusuable control in ajax tab control? Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 11:00
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 11:00 
GeneralRe: how to use reusuable control in ajax tab control? Pin
Dhyanga12-Apr-11 5:25
Dhyanga12-Apr-11 5:25 
GeneralRe: how to use reusuable control in ajax tab control? Pin
Ali Al Omairi(Abu AlHassan)12-Apr-11 20:15
professionalAli Al Omairi(Abu AlHassan)12-Apr-11 20:15 
QuestionDownloading files from server. Pin
sarang_k6-Apr-11 2:18
sarang_k6-Apr-11 2:18 
AnswerRe: Downloading files from server. Pin
meeram3956-Apr-11 2:32
meeram3956-Apr-11 2:32 

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.