bhavesh7098
Registered:1454962548 Posts: 56
Posted 1477604807
Reply with quote
#1
How can i use System.Windows.Forms.KeyPressEventArgs? I am getting the error '"System.Windows.Forms.KeyPressEventArgs' is not defined ". How do i fix it?
vmnz
Registered:1423003435 Posts: 39
Posted 1477620772
· Edited
Reply with quote
#2
I guess, System.Windows.Forms .KeyPressEventArgs is not a valid namespace for ASP.NET applications. It can be used in Winform apps only. In ASP.NET you need to use javascript for catching onkeypress events. P.S. Funny reading this from someone using ISD (ASP.NET) for over six years.
bhavesh7098
Registered:1454962548 Posts: 56
Posted 1477687252
Reply with quote
#3
where can i use javascript in Ironspeed designer?
JimiJ
MVP Developer
Registered:1112254853 Posts: 1,958
Posted 1477794582
· Edited
Reply with quote
#4
Js or jQuery can be a good alternative but quite tricky for some. You can place them at Page Directive's Prologue. I would suggest to change your data type to memo and control the length by following my previous recommendation. http://sjc.ironspeed.com/post/how-to-get-message-pop-up-when-user-typeing-more-than-255-words-8288422?pid=1293790396#gsc.tab=0 Cheers, Jimi J
__________________ Jaime Jegonia
Iron Speed MVP Developer ". . . and whoever sows generously will also reap generously" 2 Cor 9:6