|
|
|
การ UPDATE ข้อมูลครับ คือว่า มันไม่รับค่าจาก TextBox ที่แก้ไขจาก ดาต้ากิด ไม่ได้ครับ ใครพอรู้ช่วยบอกที่ครับ |
|
|
|
|
|
|
|
Code (C#)
protected void myDataGrid_UpdateCommand(object source, DataGridCommandEventArgs e)
{
TextBox txtOPD = (TextBox)e.Item.FindControl("EditOPD");
TextBox txtER_IPD = (TextBox)e.Item.FindControl("EditER_IPD");
TextBox txtEmergency = (TextBox)e.Item.FindControl("EditEmergency");
TextBox txtUrgency = (TextBox)e.Item.FindControl("EditUrgency");
TextBox txtNon_urgency = (TextBox)e.Item.FindControl("EditNon_urgency");
TextBox txtIN_Province = (TextBox)e.Item.FindControl("EditIN_Province");
TextBox txtIN_Zone = (TextBox)e.Item.FindControl("EditIN_Zone");
TextBox txtOut_Zone = (TextBox)e.Item.FindControl("EditOut_Zone");
TextBox txtCenter = (TextBox)e.Item.FindControl("EditCenter");
TextBox txtScorn_IN_Province = (TextBox)e.Item.FindControl("EditScorn_IN_Province");
TextBox txtScorn_IN_Zone = (TextBox)e.Item.FindControl("EditScorn_IN_Zone");
TextBox txtScorn_Out_Zone = (TextBox)e.Item.FindControl("EditScorn_Out_Zone");
TextBox txtScorn_Center = (TextBox)e.Item.FindControl("EditScorn_Center");
TextBox txtMax_30 = (TextBox)e.Item.FindControl("EditMax_30");
TextBox txtMin_30 = (TextBox)e.Item.FindControl("EditMin_30");
int NN = Convert.ToInt32(txtOPD.Text.Trim()) + Convert.ToInt32(txtER_IPD.Text.Trim());
int NN2 = Convert.ToInt32(txtIN_Province.Text.Trim()) + Convert.ToInt32(txtIN_Zone.Text.Trim()) + Convert.ToInt32(txtOut_Zone.Text.Trim()) + Convert.ToInt32(txtCenter.Text.Trim());
int NN3 = Convert.ToInt32(txtScorn_IN_Province.Text.Trim()) + Convert.ToInt32(txtScorn_IN_Zone.Text.Trim()) + Convert.ToInt32(txtScorn_Out_Zone.Text.Trim()) + Convert.ToInt32(txtScorn_Center.Text.Trim());
int O = Convert.ToInt32(txtOPD.Text.Trim());
int E = Convert.ToInt32(txtER_IPD.Text.Trim());
strSQL = "UPDATE refer SET OPD = '" + txtOPD.Text.Trim() + "'" +
",ER_IPD = '" + txtER_IPD.Text.Trim() + "' " +
",Refer_sum = '" +NN + "' " +
",Emergency = '"+ txtEmergency.Text+"' " +
",Urgency = '"+txtUrgency.Text+"' " +
",Non_urgency = '" + txtNon_urgency.Text + "' " +
",IN_Province = '" + txtIN_Province.Text + "' " +
",IN_Zone = '" + txtIN_Zone.Text + "' " +
",Out_Zone = '" + txtOut_Zone.Text + "' " +
",Center = '" + txtCenter.Text+ "' " +
",Sum_Solder = '" + NN2+ "' " +
",Scorn_IN_Province = '" + txtScorn_IN_Province.Text + "' " +
",Scorn_IN_Zone = '" + txtScorn_IN_Zone.Text + "' " +
",Scorn_Out_Zone = '" + txtScorn_Out_Zone.Text + "' " +
",Scorn_Center = '" + txtScorn_Center.Text + "' " +
",Scorn_Sum = '" + NN3 + "' " +
",Max_30 = '" +txtMax_30.Text + "' " +
",Min_30 = '" + txtMin_30.Text + "' " +
" WHERE Refer_id='" + myDataGrid.DataKeys[e.Item.ItemIndex] + "'" +
" AND user_id = @id";
Cmd = new MySqlCommand(strSQL, Conn);
Cmd.Parameters.AddWithValue("id",id);
Cmd.ExecuteNonQuery();
myDataGrid.EditItemIndex = -1;
myDataGrid.ShowFooter = true;
BindData();
BindDataAll();
}
Code (C#)
<asp:DataGrid id="myDataGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="Refer_id"
DataKeyField = "Refer_id" OnCancelCommand="myDataGrid_CancelCommand"
OnEditCommand="myDataGrid_EditCommand" OnUpdateCommand="myDataGrid_UpdateCommand"
Width="930px" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
BorderWidth="1px" CellPadding="1" ForeColor="Black" GridLines="None"
Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
HorizontalAlign="Center" Height="120px">
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White"
BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Top" />
<AlternatingItemStyle BackColor="#CCCCCC" />
<Columns>
<asp:TemplateColumn HeaderText="รหัส">
<ItemTemplate>
<asp:Label id="Refer_id" runat="server"
Text='<%# DataBinder.Eval(Container, "DataItem.Refer_id") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Width="48px" Font-Bold="True" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ชื่อ ร.พ." Visible="False">
<ItemTemplate>
<asp:Label id="name_hos" runat="server"
Text='<%# DataBinder.Eval(Container, "DataItem.name_hos") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Width="80px" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Refer IN">
<ItemTemplate>
<asp:Label id="OPD" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OPD") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditOPD" size="1" runat="server"> </asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Font-Size="Small" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Refer OUT">
<ItemTemplate>
<asp:Label id="ER_IPD" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ER_IPD") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditER_IPD" size="1" runat="server" ></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Font-Size="Small" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ส่งต่อทั้งหมด">
<ItemTemplate>
<asp:Label id="Refer_sum" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Refer_sum") %>'></asp:Label>
</ItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="...E...">
<ItemTemplate>
<asp:Label id="Emergency" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Emergency") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditEmergency" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Emergency") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="...U...">
<ItemTemplate>
<asp:Label id="Urgency" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Urgency") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditUrgency" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Urgency") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="...N...">
<ItemTemplate>
<asp:Label id="Non_urgency" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Non_urgency") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditNon_urgency" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Non_urgency") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ในจังหวัด">
<ItemTemplate>
<asp:Label id="IN_Province" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IN_Province") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditIN_Province" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IN_Province") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ในเขต">
<ItemTemplate>
<asp:Label id="IN_Zone" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IN_Zone") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditIN_Zone" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IN_Zone") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="นอกเขต">
<ItemTemplate>
<asp:Label id="Out_Zone" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Out_Zone") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditOut_Zone" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Out_Zone") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ส่วนกลาง">
<ItemTemplate>
<asp:Label id="Center" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Center") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditCenter" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Center") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ประสานงานทั้งหมด">
<ItemTemplate>
<asp:Label id="Sum_Solder" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Sum_Solder") %>'></asp:Label>
</ItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ในจังหวัด">
<ItemTemplate>
<asp:Label id="Scorn_IN_Province" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_IN_Province") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditScorn_IN_Province" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_IN_Province") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ในเขต">
<ItemTemplate>
<asp:Label id="Scorn_IN_Zone" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_IN_Zone") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditScorn_IN_Zone" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_IN_Zone") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="นอกเขต">
<ItemTemplate>
<asp:Label id="Scorn_Out_Zone" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_Out_Zone") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditScorn_Out_Zone" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_Out_Zone") %>'></asp:TextBox>
</EditItemTemplate>
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ส่วนกลาง">
<ItemTemplate>
<asp:Label id="Scorn_Center" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_Center") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditScorn_Center" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_Center") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="ถูกปฏิเสธ ทั้งหมด">
<ItemTemplate>
<asp:Label id="Scorn_Sum" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Scorn_Sum") %>'></asp:Label>
</ItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="มากกว่า 30 นาที">
<ItemTemplate>
<asp:Label id="Max_30" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Max_30") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditMax_30" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Max_30") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="น้อยกว่า 30 นาที">
<ItemTemplate>
<asp:Label id="Min_30" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Min_30") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="EditMin_30" size="1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Min_30") %>'></asp:TextBox>
</EditItemTemplate>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
</asp:TemplateColumn>
<asp:EditCommandColumn ItemStyle-BackColor=Azure UpdateText="บันทึก"
CancelText="ยกเลิก" EditText="แก้ไข" HeaderText="แก้ไข" FooterStyle-HorizontalAlign="Center">
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
Wrap="False" />
<ItemStyle BackColor="Azure" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
HorizontalAlign="Center" Wrap="False"></ItemStyle>
</asp:EditCommandColumn>
</Columns>
<EditItemStyle BorderStyle="None" HorizontalAlign="Center"
VerticalAlign="Top" />
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True"
ForeColor="White" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
BorderStyle="None" Height="55px" VerticalAlign="Bottom" />
</asp:DataGrid>
Tag : .NET, MySQL, HTML/CSS, Web (ASP.NET), C#, VS 2010 (.NET 4.x)
|
|
|
|
|
|
Date :
2012-02-24 09:10:07 |
By :
noi014 |
View :
1601 |
Reply :
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ช่วยทีครับๆ ดูจากตัวอย่างโค๊ดเก่าๆๆมันน่าจะได้น่ะครับๆ แต่ไม่รู้ทำไหมถึงไม่ได้ๆๆๆ ใครได้บอกหน่อยน่ะครับ ด่วนๆๆครับ
|
|
|
|
|
Date :
2012-02-24 09:21:35 |
By :
noi014 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ช่วยกันตอบหน่อยครับๆๆๆ
|
|
|
|
|
Date :
2012-02-24 15:05:03 |
By :
noi014 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เงียบทีสุด
|
|
|
|
|
Date :
2012-02-24 18:21:18 |
By :
noi014 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|