468,272 Members | 2,035 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

Grid selection need to run routine

I have a need to automatically save a record when a user leaves me form.
Everything works great unless the user uses the grid and selects an item via
a link column. Then I can't capture the record save (whihc I do via images
buttons; save and add detail record). The routine runs the btn_save command
for me (then I determine is save new or modify).

Any ideas on how to run my routine if the user selects a grid item (detail
item)?
Here's the template column:

<asp:TemplateColumn HeaderText="view" HeaderStyle-CssClass="gridqtext"
ItemStyle-CssClass="gridtext">
<ItemTemplate>
<asp:Hyperlink Width="55" runat="server" Text= 'view detail'
NavigateUrl='<%# "concern_detail.aspx?cn=" &
DataBinder.Eval(Container.DataItem,"Concern_Number ").tostring & _
"&d=" & DataBinder.Eval(Container.DataItem,"Concern_DID"). tostring %>'
ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>

Thanx!
Nov 19 '05 #1
1 940
solved by replacing with a linkButton and keying off the Command name,
arument, etc.

"Chris" wrote:
I have a need to automatically save a record when a user leaves me form.
Everything works great unless the user uses the grid and selects an item via
a link column. Then I can't capture the record save (whihc I do via images
buttons; save and add detail record). The routine runs the btn_save command
for me (then I determine is save new or modify).

Any ideas on how to run my routine if the user selects a grid item (detail
item)?
Here's the template column:

<asp:TemplateColumn HeaderText="view" HeaderStyle-CssClass="gridqtext"
ItemStyle-CssClass="gridtext">
<ItemTemplate>
<asp:Hyperlink Width="55" runat="server" Text= 'view detail'
NavigateUrl='<%# "concern_detail.aspx?cn=" &
DataBinder.Eval(Container.DataItem,"Concern_Number ").tostring & _
"&d=" & DataBinder.Eval(Container.DataItem,"Concern_DID"). tostring %>'
ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>

Thanx!

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bhom | last post: by
reply views Thread by Steve | last post: by
1 post views Thread by Steve | last post: by
3 posts views Thread by Tina | last post: by
3 posts views Thread by Wayne | last post: by
3 posts views Thread by Chris Marsh | last post: by
1 post views Thread by Suresh Kumar | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.