10
Answers

which is the best way below

I need to add onclick method to textbox inside grid.In this scenerio i can bind the client id the get the value of that grid item inside javascript method or can bind directly the value to the javascript method which is the best way for implementation



1. binding the client id and getting the value
txtbx1.attributes.add("onclick","Getvalues('txtbx1')");


2. Bind value directly to the method
txtbx1.attributes.add("onclick","Getvalues('20')");

Answers (10)

1
Photo of Frogleg
NA 7.9k 33k 13y
Here vc 2008 version
0
Photo of Suthish Nair
NA 31.7k 4.6m 13y
waw.. great sample 5 out of 5 points...
0
Photo of Frogleg
NA 7.9k 33k 13y

Attachment mousezoom.zip

Here's one way
0
Photo of Farooque Ali
NA 266 202.5k 13y
Hi,

Thanks. Here am doing the Zooming from 25% to 400% how to incorporate my code in to this Event. Can you please tell me.
0
Photo of Frogleg
NA 7.9k 33k 13y
To get mouse wheel use

protected override void OnMouseWheel(MouseEventArgs e)
{
if (e.Delta > 0)
{
MessageBox.Show("up");
}
else if (e.Delta < 0)
{
MessageBox.Show("down");
}

}

One detent = 120

look here for more info
http://msdn.microsoft.com/en-us/library/system.windows.forms.mouseeventargs.delta.aspx#Y526