Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 repeater ¿Ø¼þÔõô¿ÉÒÔÈ¡µ½×ӿؼþµÄÖµ

asp.net repeater ¿Ø¼þÔõô¿ÉÒÔÈ¡µ½×ӿؼþµÄÖµ£¬ÉèÖöϵãÔÚ ItemDataBound ʼþÔõôûÓÐÓõÄ
Request.Form["name"]

Â¥Ö÷ÄãÒªÔÚ°ÑrepeaterÖÐµÄ Ò»¸öÊôÐÔÉèÖÃһϲÅÄܽøÈëitemdataboundʼþ

¿ÉÒÔ ......

ÈçºÎÉú³ÉASCII¸ñʽÎļþ asp.net

rt  ÎÒÉú³ÉµÄÎļþµÄ±£´æ¶¼ÊÇutf-8 ÈçºÎÄÜÊÖ¶¯¿ØÖƳÉASCII


System.IO.File.WriteAllText(@"c:\a.txt", "hello", Encoding.ASCII);

ÄÇÊ×ÏÈ¿´Äã¶Á½øÀ´µÄÎļþÊǸöʲô±àÂë¸ñʽ,Èç¹ ......

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

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

asp.netÈçºÎ°Ñexcelµ¼Èëµ½sql

Ë­ÖªµÀ£¬×îºÃÊÇʵÀý£¬²âÊÔ¹ýµÄ¸üºÃ£¬Ð»Ð»·ÖÏí£»
http://www.92dotnet.com/showtopic-428.aspxC# code:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using Sy ......

ʲôÊÇasp.net

ÓÃDWдµÄaspxºÍvs C#дµÄÍøÕ¾ÏµÍ³(Ö÷ÒªÒ³ÃæÎļþÒ²ÊÇaspxµÄÎļþ)ÓÐÊ²Ã´Çø±ð,VSдµÄÍøÕ¾·¢²¼ºó,ËùÓеĴúÂ벿·ÖºÏ³ÉÒ»¸öDLLÎļþ,¶øDW¾ÍûÓа취,ÕâÁ½¸ö¹¤¾ßд³öÀ´µÄÍøÕ¾Í¬ÑùÊÇaspxµÄÎļþ,µ«Çø±ðºÜ´ó°¡.
°ïÄã¶¥ÏÂ~£¬Çó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ