help biuld dynamic onclick event

  myDeleteButton2.Attributes.Add("onclick","openRadWindow('DataBinder.Eval(e.Item.DataItem, "item").ToString()','DataBinder.Eval(e.Item.DataItem, "co_line").ToString()');")
WiggingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HainKurtSr. System AnalystCommented:
try this

myDeleteButton2.Attributes.Add("onclick","openRadWindow('" & DataBinder.Eval(e.Item.DataItem, "item").ToString() & "','" & DataBinder.Eval(e.Item.DataItem, "co_line").ToString() & "');")
0
WiggingAuthor Commented:
right now its creating this

   <a id="ctl00_ContentPlaceHolder1_DataGrid1_ctl02_LinkButton2" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataGrid1$ctl02$LinkButton2','')">P04185</a>


 <a   onclick="openRadWindow('P04185','1')"    href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataGrid1$ctl02$LinkButton2','')" >
                            P04185 </a>

but i need to create this
0
HainKurtSr. System AnalystCommented:
did you try 33421828
whats the output?
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

WiggingAuthor Commented:
the ouput was
 <a id="ctl00_ContentPlaceHolder1_DataGrid1_ctl02_LinkButton2" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataGrid1$ctl02$LinkButton2','')">P04185</a>
0
HainKurtSr. System AnalystCommented:
can you please post aspx code for this link
and are you sure the code 33421828 runs without any error and output is 33422161?
does not make sense, either code is not running, or html output you post is not up-to-date
0
WiggingAuthor Commented:
     



  <asp:datagrid id="DataGrid1" tabIndex="10" runat="server" AutoGenerateColumns="False" CssClass="dataGrid" >                              
                                <AlternatingItemStyle CssClass="DataGridAlternate"></AlternatingItemStyle>
                                <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                <HeaderStyle CssClass="DataGrid1HeaderStyle"></HeaderStyle>
                                              <Columns>
                                                    <asp:ButtonColumn Text="Remove" CommandName="Delete"></asp:ButtonColumn>
                                                    <asp:TemplateColumn HeaderText="Part#">
                                                          <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" ><%# DataBinder.Eval(Container, "DataItem.item") %></asp:LinkButton>
                                                               
                                                            
                                                          </ItemTemplate>
                                                          <EditItemTemplate>
                                                                <asp:Label id="Label13" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.item") %>' CssClass="textbox1">
                                                                </asp:Label>
                                                          </EditItemTemplate>
                                                    </asp:TemplateColumn>
0
WiggingAuthor Commented:

@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site1.Master" CodeBehind="OMcart.aspx.vb" Inherits="WebApplication1.OMcart" %>
<%@ Register src="cartSteps.ascx" tagname="cartSteps" tagprefix="uc1" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   <script type="text/javascript">
        function OpenPositionedWindow(oButton, url, windowName)
        {
            var oWnd = window.radopen(url,windowName);
        }
        function openRadWindow(item,Line)
        {
            var oWnd = radopen("DialogCS.aspx?item=" + item + "&Line=" + Line, "RadWindow1");
            oWnd.center();
        }
        </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

   

    <table cellspacing="0" cellpadding="3" width="100%" border="0">
  
	    <tr>
		    <td align="left" class="subHeading">  <telerik:RadWindowManager ShowContentDuringLoad="False" Skin="Vista"  AutoSize="true"
            ID="RadWindowManager2" Width="400px"  runat="server" 
                 BehaviorsAutoSize="true"   
           Left="" style="display: none;" Top="" InitialBehaviors="Move,Close" >
        </telerik:RadWindowManager><asp:label id="Label10" runat="server">Shopping Cart</asp:label></td>
	    </tr>
	    <tr>
		    <td align="center">
                <uc1:cartSteps ID="cartSteps1" runat="server" />
            </td>
	    </tr>	    
	    <tr>
		    <td align="right">
			    <table id="Table6" cellspacing="0" cellpadding="0" border="0" width="70%">
				    <tr>
				        <td>
                            <asp:HyperLink ID="HyperLink10" runat="server" Target="_blank" Visible="False" 
                                ImageUrl="~/images/configquote.png"></asp:HyperLink>

                        </td>
				        <td> <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" 
                                ImageUrl="~/images/quickprint.png"></asp:HyperLink>
                        </td>
                        					    <td>
                            <asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/images/upsell.png" />
                        </td>
					    <td>
                            <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/images/convert.png" />
                        </td>
					    <td>
                            <asp:ImageButton ID="ImageButton6" runat="server" 
                                ImageUrl="~/images/partselector.png" />
                        </td>
					    <td><asp:ImageButton ID="ImageButton1" runat="server" Visible="False" ImageUrl="~/images/addsawmill.png"  /></td>
				    </tr>
			    </table>
            </td>
	    </tr>
	    <tr>
		    <td>
			    <table id="Table3" cellspacing="0" cellpadding="0" width="100%" border="0">
				    <tr>
					    <td colspan="2">
					        <asp:datagrid id="DataGrid1" tabIndex="10" runat="server" AutoGenerateColumns="False" CssClass="dataGrid" >					
                                <AlternatingItemStyle CssClass="DataGridAlternate"></AlternatingItemStyle>
                                <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                <HeaderStyle CssClass="DataGrid1HeaderStyle"></HeaderStyle>
							    <Columns>
								    <asp:ButtonColumn Text="Remove" CommandName="Delete"></asp:ButtonColumn>
								    <asp:TemplateColumn HeaderText="Part#">
									    <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" ><%# DataBinder.Eval(Container, "DataItem.item") %></asp:LinkButton>
										   
										
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:Label id="Label13" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.item") %>' CssClass="textbox1">
										    </asp:Label>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Product">
									    <ItemTemplate>
										    <asp:Label id="lblItemDesc" runat="server" >
										   
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="itemDesc" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.description") %>' MaxLength="40" CssClass="textbox1">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Qty">
									    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									    <ItemStyle HorizontalAlign="Center"></ItemStyle>
									    <ItemTemplate>
										    <asp:TextBox id="itemQty" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.qty") %>' CssClass="textbox1">
										    </asp:TextBox>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="itemQty1" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.qty") %>' CssClass="textbox1">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Unit Price"  ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label15" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.unitPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="TextBox5" runat="server" Width="63px" Text='<%# DataBinder.Eval(Container, "DataItem.unitPrice", "${0:N2}") %>' CssClass="textbox1">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Total Price" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label16" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:Label id="Label17" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    

								    		    <asp:TemplateColumn Visible="False" HeaderText="List Price" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label161" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.listPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:Label id="Label171" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.listPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    
								    		    <asp:TemplateColumn Visible="False" HeaderText="Total List Price" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label1611" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalListPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:Label id="Label1711" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalListPrice", "${0:N2}") %>'>
										    </asp:Label>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    	
								    
								    
								    
								    
								    
								    
								    
								    
								    <asp:TemplateColumn Visible="False" HeaderText="Line">
									    <ItemTemplate>
										    <asp:Label id="co_line" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.co_line") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:Label id="co_line1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.co_line") %>'>
										    </asp:Label>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Whse" ItemStyle-HorizontalAlign="Center">
									    <ItemTemplate>
										    <asp:Label id="lblWhse" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.whse") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:DropDownList id="lstWhse" runat="server" Width="63px" SelectedIndex='<%# DataBinder.Eval(Container, "DataItem.whsei") %>' DataValueField="whsei" DataTextField="whse" CssClass="textbox1">
											    <asp:ListItem Value="GA">GA</asp:ListItem>
											    <asp:ListItem Value="MO">MO</asp:ListItem>
											    <asp:ListItem Value="NY">NY</asp:ListItem>
											    <asp:ListItem Value="OR">OR</asp:ListItem>
											    <asp:ListItem Value="SALE" Selected="True">SALE</asp:ListItem>
											    <asp:ListItem Value="123">123</asp:ListItem>
										    </asp:DropDownList>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Warr Item">
									    <ItemTemplate>
										    <asp:Label id="lblWarrItem" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.warrItem") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="warrItem" runat="server" Width="70px" Text='<%# DataBinder.Eval(Container, "DataItem.warrItem") %>' CssClass="textbox1" MaxLength="30">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:TemplateColumn HeaderText="Disc%" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label14" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.disc") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="itemDisc" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.disc") %>' CssClass="textbox1" MaxLength="6">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>								    
								    <asp:TemplateColumn HeaderText="Stock" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label25" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.StockQty") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="StockQty" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.StockQty") %>' CssClass="textbox1" MaxLength="10">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>	
								    <asp:TemplateColumn HeaderText="Blade Length" ItemStyle-HorizontalAlign="Right">
									    <ItemTemplate>
										    <asp:Label id="Label26" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.item_length") %>'>
										    </asp:Label>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:TextBox id="item_length" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.item_length") %>' CssClass="textbox1" MaxLength="10">
										    </asp:TextBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>									    
								    <asp:TemplateColumn HeaderText="Urgent" ItemStyle-HorizontalAlign="Center">
									    <ItemTemplate>
										    <asp:CheckBox id="ur1" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.urgent") %>'>
										    </asp:CheckBox>
									    </ItemTemplate>
									    <EditItemTemplate>
										    <asp:CheckBox id="ur2" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.urgent") %>'>
										    </asp:CheckBox>
									    </EditItemTemplate>
								    </asp:TemplateColumn>
								    <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
							   <asp:TemplateColumn >
                    <ItemTemplate>
                        <a href="#" onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "item").Tostring()%>','<%# DataBinder.Eval(Container.DataItem, "co_line").Tostring() %>')">
                            <asp:Image ID="Image1" runat="server" ImageUrl="images/i.png" /></a>&nbsp;
                            <asp:Image ID="Image2"  runat="server" ImageUrl="images/n.png" Visible="False" /> </ItemTemplate> 
                </asp:TemplateColumn>

	
							 			 	   <asp:TemplateColumn  Visible="false">
                    <ItemTemplate>
       <asp:TextBox  id="NoteExistsFlag"  Width="10" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoteExistsFlag") %>' />
                      
                         </ItemTemplate>
                         	    <EditItemTemplate>
										    <asp:TextBox  id="NoteExistsFlag2"  runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoteExistsFlag") %>' />
										   
									    </EditItemTemplate>
                </asp:TemplateColumn>
             
                
							    </Columns>
						    </asp:datagrid>
						</td>
				    </tr>
				    <tr>
				        <td></td>
					    <td class="subHeading" align="right">
					        <asp:label id="subLabel" runat="server">Sub Total:</asp:label>
						    <asp:label id="subTotal" runat="server"></asp:label>
						</td>
				    </tr>
				    <tr>
				        <td colspan="2">&nbsp;</td>
				    </tr>
				    <tr>
					    <td colspan="2">
					        <table cellpadding="0" cellspacing="0" border="0" width="100%">
					            <tr>
					                <td>
                                        <asp:ImageButton ID="ImageButton2" runat="server" 
                                            ImageUrl="~/images/updatecart.png" />
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="ImageButton3" runat="server" 
                                            ImageUrl="~/images/continue.png" />
                                    </td>
						            <td align="right">
                                        <asp:ImageButton ID="ImageButton7" runat="server" 
                                            ImageUrl="~/images/estimatedfinancing.png" Visible="False" />
                                    </td>
						            <td align="right">
                                        <asp:ImageButton ID="ImageButton4" runat="server" 
                                            ImageUrl="~/images/checkout.png" />
                                    </td>
						        </tr>
						    </table>
						</td>
				    </tr>
				    <tr id="trTaxDisc" runat="server">
					    <td align="left"><asp:label id="lblTaxDisc" runat="server" >Note: The tax discount value will dynamically fluctuate as items are added and removed from cart and as a shipping method is chosen.</asp:label></td>
					    <td></td>
				    </tr>
				    <tr>
				        <td colspan="2">&nbsp;</td>
				    </tr>
				    <tr valign="top" >
					    <td nowrap>
						    <table id="Table2" cellspacing="0" cellpadding="2" border="0" style="border: 1px solid #808080">
							    <tr>
								    <td><asp:label id="Label3" runat="server" Font-Bold="true">Quick Add to Cart</asp:label></td>
								    <td><asp:label id="Label5" runat="server">Part#</asp:label></td>
								    <td><asp:label id="Label9" runat="server">Qty</asp:label></td>
								    <td></td>
								    <td><asp:label id="lblBldLen" runat="server" Visible="False">Length</asp:label></td>
								    <td></td>
							    </tr>
							    <tr>
								    <td><asp:label id="Label4" runat="server">Enter a WM Part# & click Add</asp:label></td>
								    <td><asp:textbox id="quickItem" runat="server" Width="88px" CssClass="textbox1" MaxLength="30"></asp:textbox></td>
								    <td><asp:textbox id="quickQty" runat="server" Width="32px" CssClass="textbox1" MaxLength="10"></asp:textbox></td>
								    <td><asp:linkbutton id="btnQuickAdd" runat="server">Add</asp:linkbutton></td>
								    <td><asp:textbox id="bldLen" runat="server" Width="40px" Visible="False" CssClass="textbox1"></asp:textbox></td>
								    <td></td>
							    </tr>
							    <tr><td colspan="6">&nbsp;</td></tr>
							    <tr>
								    <td><asp:label id="Label1" runat="server" Font-Bold="true">Shipping Estimator</asp:label></td>
								    <td></td>
								    <td></td>
								    <td></td>
								    <td></td>
								    <td></td>
							    </tr>
							    <tr valign="top">
								    <td><asp:label id="Label2" runat="server">Enter a Zip Code & click Estimate</asp:label></td>
								    <td><asp:textbox id="zipcode" runat="server" Width="88px" CssClass="textbox1" MaxLength="10"></asp:textbox></td>
								    <td></td>
								    <td colspan="2"><asp:linkbutton id="btnShipEst" runat="server">Estimate</asp:linkbutton></td>
								    <td><asp:Panel ID="tblShipOptions" runat="server">                                        
                                        <asp:label id="lblZipCity" runat="server" Font-Bold="true"></asp:label>
								        <asp:radiobuttonlist id="lstShipOptions" runat="server" CellPadding="0" CellSpacing="0">
										    <asp:ListItem Value="UPS" Selected="True">UPS Ground</asp:ListItem>
										    <asp:ListItem Value="ORA">UPS 3rd Day</asp:ListItem>
										    <asp:ListItem Value="BLU">UPS 2nd Day</asp:ListItem>
										    <asp:ListItem Value="RED">UPS Next Day</asp:ListItem>
									    </asp:radiobuttonlist></asp:Panel></td>
							    </tr>
							    <tr><td colspan="6">&nbsp;</td></tr>
							    <tr>
								    <td><asp:label id="Label11" runat="server" Font-Bold="true">Coupons & Promotions</asp:label></td>
								    <td></td>
								    <td></td>
								    <td colspan="2"></td>
								    <td></td>
							    </tr>
							    <tr>
								    <td><asp:label id="Label18" runat="server">Enter Coupon Code & click Apply</asp:label></td>
								    <td><asp:textbox id="couponNum" runat="server" Width="88px" CssClass="textbox1" MaxLength="30"></asp:textbox></td>
								    <td></td>
								    <td colspan="2"><asp:linkbutton id="btnApplyCoupon" runat="server">Apply</asp:linkbutton></td>
								    <td></td>
							    </tr>
							    <tr>
								    <td><asp:label id="lblCoupErr" runat="server" ForeColor="Red"></asp:label></td>
								    <td></td>
								    <td></td>
								    <td colspan="2"></td>
								    <td></td>
							    </tr>
						    </table>
					    </td>
					    <td  align="right" width="25%" >		
                            <asp:Panel ID="Panel1" runat="server" Visible="False" Width="100%">
                                <table cellspacing="2" cellpadding="2" style="border: 1px solid #808080" width="100%">
                                    <tr>
                                        <td><div align="left" class="titlebolditem">Estimated Financing</div></td>
                                        <td><asp:LinkButton ID="LinkButton1" runat="server">Refresh</asp:LinkButton></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <div align="left">
                                                <asp:GridView ID="GridView1" runat="server" CellPadding="0" CellSpacing="0" AutoGenerateColumns="False" ShowHeader="False" CssClass="opciones" GridLines="None" Width="100%">       
                                                    <Columns>	
                                                    	<asp:Boundfield DataField="line" HeaderText="Line" ItemStyle-HorizontalAlign="Left"></asp:Boundfield>                
                	                                    <asp:Boundfield DataField="code" HeaderText="Value" ItemStyle-HorizontalAlign="Right">
                	                                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                                        </asp:Boundfield>
                                                    </Columns>
                                                </asp:GridView>       
                                                 <telerik:RadWindowManager ShowContentDuringLoad="false" AutoSize="true" EnableShadow="true" Skin="Black" ID="RadWindowManager1" Width="900px" Height="200px" runat="server">
        </telerik:RadWindowManager>

                                            </div>
                                        </td>
                                    </tr>
                                </table>
                           
                            </asp:Panel>				    
					           
					    </td>
				    </tr>
			    </table>
		    </td>
	    </tr>
    </table>
</asp:Content>

Open in new window

0
HainKurtSr. System AnalystCommented:
try

<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" onClick="openRadWindow('<%# DataBinder.Eval(e.Item.DataItem, "item").ToString() %>','<%# DataBinder.Eval(e.Item.DataItem, "co_line").ToString() %>');"><%# DataBinder.Eval(Container, "DataItem.item") %></asp:LinkButton>
0
HainKurtSr. System AnalystCommented:
do you really need postback when you click the link?
0
HainKurtSr. System AnalystCommented:
oops, you should use onClientClick

<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" onClientClick="openRadWindow('<%# DataBinder.Eval(e.Item.DataItem, "item").ToString() %>','<%# DataBinder.Eval(e.Item.DataItem, "co_line").ToString() %>');"><%# DataBinder.Eval(Container, "DataItem.item") %></asp:LinkButton>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HainKurtSr. System AnalystCommented:
post the html if above code does not work for this link
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.