Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÎÊÒ»¸ö¼òµ¥¹ØÓÚÔÚASP.NET ת»» numeric

ÎÊÒ»¸ö¼òµ¥µÄÎÊÌ⣬ÔÚÕâµÀ³ÌÐòÀïÃæ
string goodsName = this.GridView1.DataKeys[e.RowIndex][0].ToString();
string  salePrice = ((TextBox)this.GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text.ToString();
string discount = ((TextBox)this.GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text.ToString();
salePrice discount¶ÔÓ¦µÄÊý¾Ý¿â ÀàÐÍÊÇnumeric ,µ«ÎÒÔÚÕâÀï²»ÖªµÀÓ¦¸ÃÔõô°ÑstringÈ¥°ÑËüת»»ÎªÊý¾Ý¿âËùÐèÒªµÄnumeric

C# code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace WebTest
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

public void getData()
{
SqlConnection cn = new SqlConnection("server=localhost;database=student;user=xie;password=xie");
SqlCommand cmd = new SqlCommand("select*from goods", cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds, "goods");
this.GridView1.DataSource = ds.Tables[0].DefaultView;
this.DataBind();
}

protected void Button1_Click(objec


Ïà¹ØÎÊ´ð£º

³ö×âASP.NET³ÌÐòÔ±

±¾ÈËÔÚ±±¾©,ÐÕ³Â
ÓÐ2ÄêÒÔÉϹ¤×÷¾­Ñé.
ÓÐÐèÒªµÄÇëÁªÏµ13683175921,´ýÓöÏê̸.
(·Ç³ÏÎðÈÅ!)
Good Luck£¡~ ÓÑÇéUp£¡~

How Much? ~ ÓÑÇéUp£¡~



Óе㱯¾ç°¡


ÓÑÇéUp£¡~

ÈÕ×ÓÄѻ찡

Ö§³ÖÂ¥Ö ......

asp.net Ï̵߳ÄÎÊÌ⣿ - .NET¼¼Êõ / ASP.NET

ǰ¶Îʱ¼äÅöµ½Ò»µÀÃæÊÔÌâÈçÏ£º
test.aspxÒ³ÃæÓÐÈçÏ´úÂ룺
 Response.Write(Test.GetDate());
TestÀàÈçÏ£º
public class Test
{
  static string dt="";
  public static s ......

°ïÃ¦ÍÆ¼öÒ»±¾ASP.NETµÄÊ飬лл£¡

±È½ÏºÃµÄѧϰasp.netµÄÊéÍÆ¼öһϰɣ¬Ð»Ð»~~~
書µÄ話µÈ¸ßÈËÍÆ薦, ÎÒ認為¶àÉÏÉÏwww.asp.net對Äã幫Öúͦ´ó, ÄÇÀïÓкܶà視頻, Èç¹ûÊÇÐÂÊÖµÄ話, 視& ......

ÇëÎÊASP.NETÖÐdllÔõôÐ޸ģ¿


 °ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸쬴ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
 ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ

LZºÃÀ÷º¦

Ó÷´±àÒëÈí¼þ

ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿

ÓÐÃ ......

asp.net·ÖÒ³ÖÐÒ»µãÊý¾Ý°ó¶¨ÎÊÌâ

ÎÒÔÚдasp.net·ÖÒ³´úÂëµÄʱºòÓöµ½ÕâÑùÒ»¸öÎÊÌ⣺µã»÷ÏÂÒ³£¨ÏµÍ³×Ô´øµÄÊý×ÖÒ³Â룩ûÓÐÏÔʾÊý¾Ýµ«ÊÇ·µ»Øµ½µÚһҳȴ¿ÉÒÔÕý³£ÏÔʾµÚÒ»Ò³µÄÊý¾Ý.......

Ô´´úÂëÈçÏ£º

protected void GridView1_PageIndexCh ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ