Click here to Skip to main content
16,010,301 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sys.WebForms.PageRequestManagerServerErrorException:Specified argument was out of the range of valid values. Pin
eyeseetee2-Jun-08 21:48
eyeseetee2-Jun-08 21:48 
Questiononline payment by PayPal Pin
trilokharry2-Jun-08 18:58
trilokharry2-Jun-08 18:58 
AnswerRe: online payment by PayPal Pin
Mogaambo2-Jun-08 20:03
Mogaambo2-Jun-08 20:03 
AnswerRe: online payment by PayPal Pin
eyeseetee2-Jun-08 21:47
eyeseetee2-Jun-08 21:47 
GeneralRe: online payment by PayPal Pin
Baran M3-Jun-08 1:12
Baran M3-Jun-08 1:12 
QuestionCreating Custom Button control using Asp.Net Pin
VijaySofist2-Jun-08 18:38
VijaySofist2-Jun-08 18:38 
AnswerRe: Creating Custom Button control using Asp.Net Pin
N a v a n e e t h2-Jun-08 20:40
N a v a n e e t h2-Jun-08 20:40 
QuestionAccessing a javascript function from within an ascx Pin
Christiaan Laubscher2-Jun-08 17:38
Christiaan Laubscher2-Jun-08 17:38 
Hi
I am wondering what the best way is to access jscript from within an ascx control?

If you have a button or another object; then you can simply use one of the pre - existing attributes such as for instance "onclientclick" to access your script.

Another way would be to fire another controls event that we use as a caller - object. Maybe change the style of the control to "style = "display:none" or something like that, then just call its event to trigger execution.

I am uncertain as to how this method works. The ascx is part of html page so maybe because the ascx is parsed in the html - parent; one could reference that page and point to the script that contains the code that we wish to execute.

If someone could please give me an example of how this would work; it would be greatly appreciated. Big Grin | :-D



Thanking you in advance

ChristiaanS

AnswerRe: Accessing a javascript function from within an ascx Pin
Christian Graus2-Jun-08 17:55
protectorChristian Graus2-Jun-08 17:55 
QuestionIIS 6.0, ASP.NET 2.0 Web Application, and Custom Errors. Pin
Zerox MXI2-Jun-08 15:34
Zerox MXI2-Jun-08 15:34 
QuestionWhat could be executing after PreRender?? Pin
geekfromindia2-Jun-08 12:54
geekfromindia2-Jun-08 12:54 
AnswerRe: What could be executing after PreRender?? Pin
Christian Graus2-Jun-08 17:31
protectorChristian Graus2-Jun-08 17:31 
QuestionHow to adjust the height of the dropdownlist in asp.net 1.1 dynamically Pin
Manu11142-Jun-08 9:47
Manu11142-Jun-08 9:47 
AnswerRe: How to adjust the height of the dropdownlist in asp.net 1.1 dynamically Pin
Sankar Komma 2-Jun-08 12:23
Sankar Komma 2-Jun-08 12:23 
Questionis including and external vb file not allowed? Pin
excaliber2-Jun-08 9:23
excaliber2-Jun-08 9:23 
AnswerRe: is including and external vb file not allowed? Pin
Christian Graus2-Jun-08 17:33
protectorChristian Graus2-Jun-08 17:33 
GeneralRe: is including and external vb file not allowed? Pin
excaliber3-Jun-08 9:25
excaliber3-Jun-08 9:25 
QuestionUninstall Virtual Directory Pin
PMAC2-Jun-08 8:16
PMAC2-Jun-08 8:16 
QuestionHow can I show label inside Radiobutton list ? Pin
mdpavel2-Jun-08 6:31
mdpavel2-Jun-08 6:31 
AnswerRe: How can I show label inside Radiobutton list ? Pin
Christian Graus2-Jun-08 6:32
protectorChristian Graus2-Jun-08 6:32 
GeneralRe: How can I show label inside Radiobutton list ? Pin
mdpavel2-Jun-08 7:04
mdpavel2-Jun-08 7:04 
GeneralRe: How can I show label inside Radiobutton list ? Pin
Christian Graus2-Jun-08 8:22
protectorChristian Graus2-Jun-08 8:22 
QuestionUser controls -vs- WebParts Pin
Member 39190492-Jun-08 6:06
Member 39190492-Jun-08 6:06 
AnswerRe: User controls -vs- WebParts Pin
Christian Graus2-Jun-08 6:34
protectorChristian Graus2-Jun-08 6:34 
QuestionCompiling ASP.NET using ClientBuildManager class Pin
celebmor2-Jun-08 5:05
celebmor2-Jun-08 5:05 

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.