Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
n my project i have 1 DMAT delivery form here in RR no. textbox had text change event when value is true then show gridview popup but this grid view show right side in window and half gridview out of window this part we cant see how to set this in middle or left in window.


ASP.NET
<div style="width: 800px; background-color: white; margin-top: 80px; margin-left: 380px">
<div>
<asp:ImageButton ID="btnClose" runat="server" ImageUrl="~/Images/closebtn.png" OnClick="btnClose_Click" Width="25px" style="float:right;margin-top:5px;" /></div>
<asp:GridView id="rptLotList" runat="server" AutoGenerateColumns="false" Visible="true" Width="800px" CssClass="grid-view"
><%--onrowdatabound="rptLotList_RowDataBound"--%>
<columns>
<asp:TemplateField HeaderText="" HeaderStyle-Width="30px">
<itemtemplate>
<asp:CheckBox runat="server" ID="chkLot" /><%--oncheckedchanged="chkLot_CheckedChanged" --%>


<asp:TemplateField HeaderText="Lot No.">
<itemtemplate>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("LotNumber") %>' />


<asp:TemplateField HeaderText="Quantity">
<itemtemplate>
<asp:Label ID="lblRemainingQuantity" runat="server" Text='<%#Eval("QuantityAvailable") %>' />


<asp:TemplateField HeaderText="Remaining Bags">
<itemtemplate>
<asp:Label ID="lblBagDetails" runat="server" Text='<%#Eval("BagsAvailable") %>'>


<asp:TemplateField HeaderText="With. Quantity">
<itemtemplate>
<asp:TextBox runat="server" Width="100" ID="txtLotDetails" /><%--ontextchanged="txtLotDetails_TextChanged"--%>
<cc1:TextBoxWatermarkExtender ID="txtQuantityectender" runat="server" WatermarkText="Enter Quantity" TargetControlID="txtLotDetails">


<asp:TemplateField HeaderText="With. Bags">
<itemtemplate>
<asp:TextBox runat="server" Width="100" ID="txtBagsQuantity" ><%--ontextchanged="txtBagsQuantity_TextChanged"--%>
<cc1:TextBoxWatermarkExtender ID="txtBagsextender" runat="server" WatermarkText="Enter Bags" TargetControlID="txtBagsQuantity">
<asp:Label ID="lblBagsUnit" runat="server" Font-Bold="true">




<div style="padding-left: 10px"> <asp:Button ID="btnSubmitLots" runat="server" Text="Ok" OnClick="btnSubmitLots_Click" />  <asp:Button ID="btnCancelSubmitLots" runat="server" Text="Cancel" OnClick="btnCancelSubmitLots_Click" /> </div>
</div>


What I have tried:

I am doing all this like alignme , draging this place holder and all but nothing do work.
Posted
Updated 10-Apr-18 16:15pm
v3
Comments
[no name] 11-Apr-18 7:22am    
You probably need to revisit the CSS of this. You can make use of browser debugger to see CSS and test changes first before updating your actual CSS file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900