Solved

help biuld dynamic onclick event

Posted on 2010-08-12
11
498 Views
Last Modified: 2012-05-10
  myDeleteButton2.Attributes.Add("onclick","openRadWindow('DataBinder.Eval(e.Item.DataItem, "item").ToString()','DataBinder.Eval(e.Item.DataItem, "co_line").ToString()');")
0
Comment
Question by:Wigging
  • 7
  • 4
11 Comments
 
LVL 51

Expert Comment

by:HainKurt
ID: 33421828
try this

myDeleteButton2.Attributes.Add("onclick","openRadWindow('" & DataBinder.Eval(e.Item.DataItem, "item").ToString() & "','" & DataBinder.Eval(e.Item.DataItem, "co_line").ToString() & "');")
0
 

Author Comment

by:Wigging
ID: 33421992
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
 
LVL 51

Expert Comment

by:HainKurt
ID: 33422158
did you try 33421828
whats the output?
0
 

Author Comment

by:Wigging
ID: 33422161
the ouput was
 <a id="ctl00_ContentPlaceHolder1_DataGrid1_ctl02_LinkButton2" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataGrid1$ctl02$LinkButton2','')">P04185</a>
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 33422662
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Wigging
ID: 33422792
     



  <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
 

Author Comment

by:Wigging
ID: 33422938

@ 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
 
LVL 51

Expert Comment

by:HainKurt
ID: 33423517
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
 
LVL 51

Expert Comment

by:HainKurt
ID: 33423526
do you really need postback when you click the link?
0
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 33423553
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
 
LVL 51

Expert Comment

by:HainKurt
ID: 33423557
post the html if above code does not work for this link
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now