Protected Sub GridView2_RowDataBound( ByVal senderīyVal e As .WebControls.GridViewRowEventArgs)Īs HyperLink = DirectCast (e.Row.FindControl( "idTracking" ), HyperLink) hl.NavigateUrl =īut still the illusive thing is just getting the ItemID into the ' NavigateUrl ="popUp('./ItemDetail/Default.aspx?ItemID=')">įollowed by the VB code behind. So far Source Page has these peices of code, Me.odsSubCat.SelectParameters("Cat_ID").DefaultValue = CInt(Cat_id) I would assume rsSearch is a function defined as rsSearch(var id) LnkTicket.NavigateUrl = "javascript:window.open(" + () + If e.Row.RowType = DataControlRowType.DataRowĪs HyperLink = DirectCast (e.Row.FindControl( "lnkTicketLink" ), HyperLink) Protected Sub GridView2_RowDataBound( ByVal sender Robet care to take a look at what I have, or anyone else and take a guess at what I am doing incorectly. The code that Robert put up is a little more familar to me and I am on a time crunch with this project I will likely look more closely into AJAX When the link button is clicked it runs the window.open command and inserts the ItemIDĭk the problem is right now I am a little more familar with Java (not much) then I am with the workings of AJAX. Hl.OnClientClick = "javascript:window.open('./ItemDetail/Default.aspx?ItemID=" & hl.OnClientClick & Handles ItemData.ItemDataBound Dim hl As LinkButton =ĭirectCast (e.Item.FindControl( "ItemLink" ), LinkButton) I was able to figure this out and it works like a charm.įist I replace my Gridview with a Repeater, I just created the same look as the gridview using a table then dropped the table into the Repeater template.Īnd the code beside looks like this, Protected Sub ItemData_ItemDataBound( ByVal senderīyVal e As .WebControls.RepeaterItemEventArgs) "window.open('./ItemDetail/Default.aspx?ItemID=" & Key & Protected Sub GridView2_SelectedIndexChanged( ByVal senderĭim Key As String = GridView2.SelectedValue Dim ItemDetail As HyperLink = DirectCast (GridView2.FindControl( "ItemDetail" ), HyperLink) So far this is as much as I have gotten, and it doesn't work. I have a gridview with a bunch of date, I would like the user to select one of the items in the gridview to be shown a detailed breakdown of the item they selected, and I would like the details to display in a pop-up window. I can't seem to find much working new references to this and I have tried many different way to achive this all without success, here is what I am trying to do.
0 Comments
Leave a Reply. |