By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,033 Members | 1,285 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,033 IT Pros & Developers. It's quick & easy.

Link datagrid edit button

P: n/a
Hello,

In Visual studio .NET 2003,

On datagrid object :
How can I link the button element : edit, to do a some client events (such
as message box,
and do another event just after that to the server (do some manipulation on
the database).

If I cannot - how can I do that anyway in some tricky way ?

Thanks :)
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
John,

I think that you have for this question more change in the newsgroup

Aspnet
news://msnews.microsoft.com/microsof...amework.aspnet

Web interface:
http://communities2.microsoft.com/co...amework.aspnet

It does not mean that you are not welcome here or that you won't get an
answer.
However probably needs it some client side JavaScript from the button from
the grid.

(I think that I know how to do it controlling it from the serverside however
than we are probably too late)

I hope this helps a little bit?

Cor
Nov 21 '05 #2

P: n/a
.... so, how can I enforce that server side will run some client side code ?
Need a sample how doing so, please.

Thanks :)

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eA**************@TK2MSFTNGP14.phx.gbl...
John,

I think that you have for this question more change in the newsgroup

Aspnet
news://msnews.microsoft.com/microsof...amework.aspnet

Web interface:
http://communities2.microsoft.com/co...amework.aspnet

It does not mean that you are not welcome here or that you won't get an
answer.
However probably needs it some client side JavaScript from the button from
the grid.

(I think that I know how to do it controlling it from the serverside
however than we are probably too late)

I hope this helps a little bit?

Cor

Nov 21 '05 #3

P: n/a
John,

Something as this
\\\\
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") =
"window.location='mailto:no*@non.com?subject=C or demo&body=I hope this
helps?';"
End If
End Sub
////

I hope this helps a little bit?

Cor
Nov 21 '05 #4

P: n/a
For this individual problem,
how can I access the the specific line in dataGrid ?
(datagrid1 is datagrid),
How can I access the "edit" cell on the datagrid (the one that I click on it
for edit/update/cancel).

me.datagrid1. ... what ?

Thanks :)
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uX**************@TK2MSFTNGP10.phx.gbl...
John,

Something as this
\\\\
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") =
"window.location='mailto:no*@non.com?subject=C or demo&body=I hope this
helps?';"
End If
End Sub
////

I hope this helps a little bit?

Cor

Nov 21 '05 #5

P: n/a
John,

What see I wrong is that not this standard event?
\\\\
Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As _
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles _
DataGrid1.EditCommand
'do your things
End Sub
/////

Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.