Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
bhavesh7098

Registered:
Posts: 56
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:
Posts: 32
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:
Posts: 56
Reply with quote  #3 
where can i use javascript in  Ironspeed designer?
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,929
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
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement