Click here to Skip to main content
15,880,651 members

Comments by Rashid Choudhary (Top 52 by date)

Rashid Choudhary 7-Oct-13 4:21am View    
first row of my table is blank
Rashid Choudhary 3-Jan-13 1:57am View    
aspx

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="3" ForeColor="#333333" GridLines="None"
CellSpacing="4" Width="92%" Visible="False" BorderColor="#DEBA84"
BackColor="#DEBA84" BorderStyle="None" BorderWidth="1px" AllowPaging="True"
onpageindexchanging="GridView1_PageIndexChanging" DataKeyNames="P_id"
onrowdatabound="GridView1_RowDataBound"
>
<columns>
<asp:BoundField HeaderText="Username" DataField="Uname" />
<asp:BoundField HeaderText="Product name" DataField="Product_name" />
<asp:BoundField HeaderText="Product Quantity" DataField="Product_quan" />
<asp:BoundField HeaderText="Delivery Date (MM/DD/YYYY)" DataField="Delivery_date" />
<asp:BoundField HeaderText="Extend Date (MM/DD/YYYY)" DataField="Extend_date" />
<asp:BoundField HeaderText="Product Information" DataField="check_bit" />
<asp:TemplateField>
<itemtemplate>
<asp:LinkButton ID="click" runat="server" Text="Dispatch">

<asp:TemplateField>
<itemtemplate>
<asp:LinkButton ID="lnkbtn" runat="server" Text="InvDisp" ForeColor="Blue">


<footerstyle backcolor="#990000" font-bold="True" forecolor="White">
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="White" BorderColor="#738A9C" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" Height="30%" />
<alternatingrowstyle backcolor="White">



.cs


protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView row = (DataRowView)e.Row.DataItem;
string eid = ((LinkButton)e.Row.FindControl("click")).Text;

string lnkbtn = ((LinkButton)e.Row.FindControl("lnkbtn")).Text;
string param = "challan_report.aspx?P_id=" + row["P_id"] + "&Uname=" + row["Uname"];
((LinkButton)e.Row.FindControl("click")).Attributes.Add("OnClick", "window.open('" + param + "','PopupWindow','toolbar=no, location=no, directories=no,titlebar=no, status=no, menubar=no,resizable=NO,scrollbars=NO,copyhistory=no,width=600,height=600,top=20,left=20')");
string caram = "Invoice.aspx?P_id=" + row["P_id"] + "&Uname=" + row["Uname"];
((LinkButton)e.Row.FindControl("lnkbtn")).Attributes.Add("OnClick", "window.open('" + caram + "','PopupWindow','toolbar=no, location=no, directories=no,titlebar=no, status=no, menubar=no,resizable=NO,scrollbars=NO,copyhistory=no,width=600,height=600,top=20,left=20')");

}


}
Rashid Choudhary 15-Oct-12 5:57am View    
<Web:ChartControl ID="ChartControl1" runat="server" BorderStyle="None" BorderWidth="2px"
Width="800px" HasChartLegend="False" Height="700px" ChartPadding="50" LeftChartPadding="20"
TopPadding="40" Padding="20">

<yaxisfont stringformat="Far,Near,Character,LineLimit" font="Tahoma, 8pt, style=Bold">
<xtitle stringformat="Center,Near,Character,LineLimit" font="Tahoma, 10pt, style=Bold">
<charttitle stringformat="Center,Near,Character,LineLimit" font="Arial, 14pt, style=Bold">
<xaxisfont stringformat="Center,Near,Character,LineLimit" font="Tahoma, 8pt, style=Bold">
<background color="LightSteelBlue" centercolor="DimGray" endpoint="200, 100" hatchstyle="DottedGrid">
<ytitle stringformat="Center,Near,Character,DirectionVertical" font="Tahoma, 10pt,style=Bold">

Rashid Choudhary 15-Oct-12 5:57am View    
Deleted
<Web:ChartControl ID="ChartControl1" runat="server" BorderStyle="None" BorderWidth="2px"
Width="800px" HasChartLegend="False" Height="700px" ChartPadding="50" LeftChartPadding="20"
TopPadding="40" Padding="20">

<yaxisfont stringformat="Far,Near,Character,LineLimit" font="Tahoma, 8pt, style=Bold">
<xtitle stringformat="Center,Near,Character,LineLimit" font="Tahoma, 10pt, style=Bold">
<charttitle stringformat="Center,Near,Character,LineLimit" font="Arial, 14pt, style=Bold">
<xaxisfont stringformat="Center,Near,Character,LineLimit" font="Tahoma, 8pt, style=Bold">
<background color="LightSteelBlue" centercolor="DimGray" endpoint="200, 100" hatchstyle="DottedGrid">
<ytitle stringformat="Center,Near,Character,DirectionVertical" font="Tahoma, 10pt,style=Bold">

Rashid Choudhary 8-Oct-12 8:07am View    
my first table
item_code stock_on_hand Product_name
P001 4 T
P002 3 P
P003 3 L

and second table is

Collapse | Copy Code
Product_name Product_quan Delivery_date Uname P_id Extend_date st_bit flag check_bit item_code
1 T 1 2012-10-22 00:00:00.000 nitin123 16 2012-10-30 0 0 0 P001
2 P 2 2012-10-22 00:00:00.000 nitin123 17 NULL 0 0 1 P002
3 L 1 2012-10-25 00:00:00.000 nitin123 18 NULL 0 0 0 P003
4 P 3 2012-10-22 00:00:00.000 nupur123 19 NULL 0 0 1 P002
5 L 2 2012-10-26 00:00:00.000 nupur123 20 NULL 0 0 1 P003
6 L 2 2012-10-20 00:00:00.000 nitin123 21 2012-10-30 0 0 0 P003
7 T 3 2012-10-23 00:00:00.000 nupur123 22 NULL 0 0 1 P001

i want the table o/p is

item_code stock_on_hand Product_name
P001 7 T
P002 11 P
P003 6 L