Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Using the $Find with DNNUsing the $Find with DNN
Previous
 
Next
New Post
8/8/2008 6:54 AM
 

Hi guys,

 

I am trying to use the $find( with dnn but it seems to append "dnn_ctrlxxx" before, so I can't seem to find the control, unless I find it elsewhere in the code and hardcode it.

 

I am trying to do this

 

http://forums.asp.net/p/1201162/2161341.aspx

http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=14890

 

Cheers for any help.!

 

Sarkie

 
New Post
8/8/2008 10:35 AM
 

In webforms, there's always this kind of prefixing to avoid naming collisions. My first approach to this scenario was to strip the prefix. It worked, but it was too much overhead. I ended up wrapping my control in Div and working my way inside it.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
8/8/2008 8:51 PM
 

This post http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/243027/scope/posts/Default.aspx might help you with javascript and controls.

 
New Post
8/11/2008 6:45 AM
 

Cheers guys, I always forget about ClientID :) Here's the code, I couldn't use RegisterClientBlock as Sys. had not been loaded.

 


                if (!Page.ClientScript.IsStartupScriptRegistered("DDEFix"))
                {
                    string ddeFix = "function DDE_pageLoad(){$find('" +
                        DDE.ClientID +
                        "').unhover = doNothing; $find('" +
                        DDE.ClientID +
                        "')._dropWrapperHoverBehavior_onhover();}function doNothing() {}" +
                        "Sys.Application.add_load(DDE_pageLoad);";


                    Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "DDEFix", ddeFix,true);
                }

 

There you go :) Cheers guys.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Using the $Find with DNNUsing the $Find with DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out