Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 17, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Events and RegisterClientScriptBlock
Jeffrey Johnson
Posts: 69
 
Events and RegisterClientScriptBlockYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Apr 09 2:25 PM
Which event (from a User control perspective devired from EntityBoundSmartPartInfoProvider) is like page_load ? is it OnLoad(). if so, can i use the Page.IsPostBack boolean to not recreate and reinit controls on postbacks...

also, where do i invoke RegisterClientScriptBlock in this case. I dont have access to ScriptManager or ClientScript?
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Events and RegisterClientScriptBlockYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 09 3:35 AM
Yes, OnLoad is similar - Page_Load would be from the Page as a whole (the aspx and master page etc), OnLoad would be from your control (ascx) I think.

You can use Page.IsPostBack boolean to do whatever you want - when you say not recreate/reinit what exactly do you not want to do with the control?

ClientScriptBlock registration should always use ScriptManager (ajax aware..) - all the quickforms have access to this - it may not be in Intellisense in App Architect but you can use it.
[Reply][Quote]
Jeffrey Johnson
Posts: 69
 
Re: Events and RegisterClientScriptBlockYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 09 9:23 AM
Thanks Nick. I actually put messages in the event to figure out the firing order. I have that part working, but what I dont have working is injecting Javascript into the Page from my user control. If i try to reference ScriptManager, then I cant compile the control in VS (Not sure what dll if any to reference)

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Events and RegisterClientScriptBlockYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 09 9:29 AM
Ah, when you said user control I though you meant custom smartpart. The dll I believe you need is System.Web.UI - although the way you are using it is new to me so I dont know if it will work or not. So try adding System.Web.UI as a reference.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Events and RegisterClientScriptBlockYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 09 9:30 AM
Thinking about it, I doubt you would ever have to add System.Web.UI as a reference so it must be something else..
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/17/2025 4:55:47 PM