Forum  Community Devel...  Community Frame...  TimedTextBox doesnt fire textchanged event
Previous Previous
 
Next Next
New Post 9/1/2009 7:29 AM
  rdhatch
635 posts
1st Level Poster




Re: TimedTextBox doesnt fire textchanged event 
Modified By rdhatch  on 9/1/2009 9:33:46 AM)

Hi Tom -

Yes, but please try adding an test messagebox to a Javascript event (onkeypress or onkeydown) in the XSLT.

 

  alert.('test');

 

This will prove your control is registered properly & being interpreted.

Ryan

PS.  Remove the period between alert and the parentheses.  DNN wouldn't let me write it without some character in between.


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 9/2/2009 1:05 AM
  rdhatch
635 posts
1st Level Poster




Re: TimedTextBox doesnt fire textchanged event 
Modified By rdhatch  on 9/2/2009 3:06:25 AM)

Hi Tom -

After looking at your code - the problem is namespaces.  Namespaces for custom controls MUST follow the exact folder structure of your Project.  This is how Embedded Resources are referenced in the .DLL.  You can verify this using RedGate/Lutz Reflector to examine your .DLL file.

So, for Embedded Resources (XSLT/JS, etc.) to be found for your control, the Control's namespace must match the folder structure where the Embedded Resources reside.

For example:

/ (Project Root)

/ Controls

/ MyCustomControl

MyCustomControl.cs

MyCustomControl.xslt

MyCustomControl.js

The namespace within your .CS file must also be:  (AssemblyName).Controls.MyCustomControl

Pretty simple, once you understand that the folder structure is how the Embedded Resources are referenced from the DLL.

Hope this helps!

Ryan


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 9/3/2009 1:01 AM
  Visualizer
665 posts
1st Level Poster




Re: TimedTextBox doesnt fire textchanged event 

Hi Ryan,

Great! I looked allready with the reflector but that thing about the folder structure i didnt know about it. But yes it solved the problems in my demo project. In my production project i still havent got it working there is some really wierd problem with the registration. In the properties / registration tab i see something diffrent as in my web.config. Changes in the registration tab doesnt reflect in the web.config and vise versa so i still have to figure that out.

I definitly have to study that xslt and js part for overiding standard controls, its a nice feature but i still dont know to much about it.

Thank you verry much again for your excelent support,

Tom

 
New Post 9/10/2009 2:06 PM
  ori.cohen
4383 posts
1st Level Poster




Re: TimedTextBox doesnt fire textchanged event 

Hello Tom,

You mean that when you register a control in VWG Visual Studio intergration you do not see the control registered in the Web.config?
Can you please provide some more information?
Are you using sources or not?
What VWG version are you using?
What control are you registering?

If you could send us a sample application with this control (including the VWG assemblies you are using) to Support [at] VisualWebGui [dot] com, with a link to this forum thread, that would be great.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 9/14/2009 12:53 PM
  jr365
93 posts
No Ranking


Re: TimedTextBox doesnt fire textchanged event 

 Visualizer wrote

I definitly have to study that xslt and js part for overiding standard controls, its a nice feature but i still dont know to much about it.

Hi Tom,

Our inheritance approach was incorrect with the TimedTextBox.  We have switched to a javascript approach that can be seen here:

 

 
Previous Previous
 
Next Next
  Forum  Community Devel...  Community Frame...  TimedTextBox doesnt fire textchanged event
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS