Hi Praveen,

I dont get  what you actually need..

what i felt is  you want to post the page by pressing the "Enter" key after
filling the text box.
If this is the smething you need to do the following logic.

all a function *onkeypress* of textbox elemnt
-capture the key pressed  in the textbox  and check whether enter key is
pressed.

function CaptureKeypress()

if(window.event && window.event.keyCode==13)

{

/post the page

document.form1.submit();

}

if keycode is 13 then we can say enter key is pressed.



Note : you need to mention the function in code behind of your as it is not
predefined in .net

Let us suppose your textboxname is txtemployee ,i code behind in Page load
event write

the following code.

Me.txtEmployeename.Attributes.Add("onkeypress", "captureKeyPress(');")



Hope this will be helpfull.

-harika











On Fri, Jan 23, 2009 at 1:47 AM, Brandon Betances <[email protected]>wrote:

> Or the poster is the problem.
>
>
> On Thu, Jan 22, 2009 at 2:34 PM, The_Fruitman 
> <[email protected]>wrote:
>
>>
>> Therefore, the whole post is the problem...
>>
>>
>


-- 
Thanks & Regards
Harika
http://harikaworks.blogspot.com

Reply via email to