Questions tagged [clientscriptmanager]

21 questions
7
votes
3 answers

.net - How do you Register a startup script?

I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined which I tracked down to a known ajax bug. The workaround posted said to: "Register the following as a startup…
mrjrdnthms
  • 1,549
  • 4
  • 24
  • 35
3
votes
3 answers

Using ValidationGroup and Client-Side Validation with ASP.NET Custom Server Control

I am creating a custom server control to generate button elements with specific markup and JavaScript handlers for my Web Forms application. They are, of course, able to cause postbacks, so I would like them to function with any of ASP's validation…
2
votes
2 answers

ASP.NET master pages order of adding scripts

I have a master page that adds the jquery library via a registerclientscriptinclude: Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "JQuery", Page.ResolveUrl("~/Scripts/jquery-1.2.6.min.js")); In a page that uses that…
user53794
  • 3,800
  • 2
  • 30
  • 31
2
votes
2 answers

What replaced ClientScriptManager in MVC?

I'm converting an ASP.NET Forms app (that I didn't write) to an MVC 3 app. The ClientScriptManager is used in the old app. ClientScriptManager doesn't exist in MVC 3. What replaced ClientScriptManager? I've done enough reading to know that CSM has…
bynary
  • 841
  • 2
  • 11
  • 26
1
vote
1 answer

ClientScriptManager.RegisterForEventValidation with HiddenField

I am trying to use to use ClientScriptManager.RegisterForEventValidation to register a hidden field and value that I am adding with ClientScriptManager.RegisterHiddenField. I doing this during the Render event. I get no error, but ASP.NET 2.0 does…
Sigray
1
vote
0 answers

Concurrency issues with ScriptManager

I know that Asp.Net WebForms is pretty old and obsolete, but I hope there are still people around maintaining such a legacy code base... I'm seeing weird errors when load-testing our website, which all seem to boil down to concurrency issues in the…
Gyum Fox
  • 3,287
  • 2
  • 41
  • 71
1
vote
1 answer

ASP.NET - How do I register multiple JavaScript calls to run on PostBack?

I have an ASP.NET page with two instances of the same Web User Control (a simple WYSIWYG editor). On submit, the WUCs do a little JavaScript magic and then proceed with a normal postback. The first instance seems to be working, but the second fails…
1
vote
1 answer

Is there a System.Web.UI.ClientScriptManager method that registers scripts inside the tag?

I know it's strictly OK to put This is used to issue badges on completion of courses. Thus far I have been issuing badges…
Jay
  • 3,012
  • 14
  • 48
  • 99
1
2