| |

VerySource

 Forgot password?
 Register
Search
View: 620|Reply: 1

How to pop up a window in DataGrid1_ItemCommand ?????

[Copy link]

4

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-14 14:40:01
| Show all posts |Read mode
How to make
Sub DataGrid1_ItemCommand (sender As Object, e As DataGridCommandEventArgs)
    if e.commandname = "sss" then

   dim itemtype as listitemtype
   itemtype = e.item.itemtype
  if itemtype = listitemtype.item or itemtype = listitemtype.alternatingitem then

    dim button as linkbutton
    button = ctype (e.Item.FindControl ("linkbutton1"), linkbutton)
    '' '' '
    button.attributes.add ("onclick", "MM_openBrWindow ('mrg.aspx', 'aaa', 'scrollbars = yes, width = 400, height = 250')")

    end if
  end if
End Sub
A new window pops up?
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-18 17:18:01
| Show all posts
Use a script
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list