Click here to Skip to main content
15,891,908 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ScriptManager.RegisterClientScriptBlock issue Pin
Sandeep Mewara11-Jun-10 6:48
mveSandeep Mewara11-Jun-10 6:48 
QuestionBind asp.net menu control with treeview Pin
yesu prakash11-Jun-10 3:21
yesu prakash11-Jun-10 3:21 
AnswerRe: Bind asp.net menu control with treeview Pin
Sandeep Mewara11-Jun-10 6:57
mveSandeep Mewara11-Jun-10 6:57 
QuestionExport data to excel in formatted way Pin
Karan_TN11-Jun-10 1:21
Karan_TN11-Jun-10 1:21 
AnswerRe: Export data to excel in formatted way Pin
Peace ON11-Jun-10 2:28
Peace ON11-Jun-10 2:28 
QuestionHtmlTabHTleRow Pin
siva45511-Jun-10 0:11
siva45511-Jun-10 0:11 
AnswerRe: HtmlTabHTleRow Pin
saini arun11-Jun-10 3:20
saini arun11-Jun-10 3:20 
QuestionLoading controls on page with UpdatePanel Pin
Łukasz Nowakowski10-Jun-10 23:50
Łukasz Nowakowski10-Jun-10 23:50 
I have a page with several controls that are shown or hidden depending on some checkboxes being checked or unchecked by user. The problem is that I have to run some JavaScript function in window load event for each of those controls. When I place those calls in the ascx they aren't called. Also JavaScript functions defined in those controls aren't visible.
Example:
<br />
<%@ Control Language="C#" AutoEventWireup="true" Inherits="SomeControl" CodeBehind="SomeControl.ascx.cs" %><br />
<br />
<script type="text/javascript"><br />
<br />
function test() {<br />
alert('Testing call');<br />
}<br />
</script><br />
<br />
<asp:CheckBox runat="server" Text="Label" onclick="javascript:test();" /><br />


In the above code (when control is loaded to the page with UpdatePanel (on first page call it has Visible = false and on some event Visible is set to true)) clicking checkbox does nothing or in IE8 triggers error, that object was null.

The question: how to register function test in this scenario so it was visible to the browser?
AnswerRe: Loading controls on page with UpdatePanel Pin
Brij10-Jun-10 23:56
mentorBrij10-Jun-10 23:56 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:26
Łukasz Nowakowski11-Jun-10 0:26 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:37
Łukasz Nowakowski11-Jun-10 0:37 
GeneralRe: Loading controls on page with UpdatePanel Pin
Brij11-Jun-10 2:22
mentorBrij11-Jun-10 2:22 
QuestionCreating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
vishnukamath10-Jun-10 23:28
vishnukamath10-Jun-10 23:28 
AnswerRe: Creating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
Peace ON11-Jun-10 0:00
Peace ON11-Jun-10 0:00 
QuestionFusion Chart Pin
KhandelwalA10-Jun-10 22:47
KhandelwalA10-Jun-10 22:47 
QuestionHow display Custom Error Page when Javascript Page redirect fails Pin
netnest10-Jun-10 21:46
netnest10-Jun-10 21:46 
AnswerRe: How display Custom Error Page when Javascript Page redirect fails Pin
Peace ON10-Jun-10 22:17
Peace ON10-Jun-10 22:17 
Questionhow to decide..how much time user use my website...? Pin
koolprasad200310-Jun-10 19:40
professionalkoolprasad200310-Jun-10 19:40 
AnswerRe: how to decide..how much time user use my website...? Pin
Brij10-Jun-10 20:15
mentorBrij10-Jun-10 20:15 
AnswerRe: how to decide..how much time user use my website...? Pin
Peace ON10-Jun-10 21:14
Peace ON10-Jun-10 21:14 
Questionhelp needed with passing parameters Pin
Farraj10-Jun-10 19:07
Farraj10-Jun-10 19:07 
AnswerRe: help needed with passing parameters Pin
m@dhu10-Jun-10 19:40
m@dhu10-Jun-10 19:40 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:26
Farraj10-Jun-10 20:26 
AnswerRe: help needed with passing parameters Pin
Brij10-Jun-10 20:39
mentorBrij10-Jun-10 20:39 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:55
Farraj10-Jun-10 20:55 

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.