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

ºÏ²¢model²¢ÇÒ³ÊÏÖ£¨asp.net MVC£©

public ActionResult LoadRegionPerformance(TGProject.Models.WModels.TgsOutachiveCondition condition)
{
Account account = (Account)Session["Account"];
var questions = SP.TgsAreaShow(int.Parse(account.AREAID.ToString()));

List<TGProject.Models.WModels.TGSOUTACHIVEAREA> models=new List<TGProject.Models.WModels.TGSOUTACHIVEAREA>();
TGSAREASHOW a;
IEnumerator ie = (System.Collections.IEnumerator)questions.GetEnumerator();
while (ie.MoveNext()) {
a = (TGSAREASHOW)ie.Current;
condition.AREAID = a.AREAID;
List<TGProject.Models.WModels.TGSOUTACHIVEAREA> middlemodels = TGProject.Helpers.SP.TGSOutAchiveArea(condition);
foreach (TGProject.Models.WModels.TGSOUTACHIVEAREA middlemodel in middlemodels)
models.Add(middlemodel);
}
return GetRegionPerformanceModelData(condition, models);
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GetRegionPerformanceModelData(TGProject.Models.WModels.TgsOutachiveCondition condition, List<TGProject.Models.WModels.TGSOUTACHIVEAREA> models)
{
int pageIndex = Convert.ToInt32(condition.Page) - 1;
int pageSize = condition.Rows;
int totalRecords = models.Count;
int totalPages = (int)Math.Ceiling((float)totalRecords / (float)pageSize);
AddField(models, totalPages, condition.Page, totalRecords);
ViewData["RegionPerformance"] = models.Skip(pageIndex * pageSize).Take(pageSize).ToList();
return View();
}
public static void AddField(List<TGProject.Models.WModels.TGSOUTACHIVEAREA> models, int totalPages, int page, int records)
{
foreach (TGProject.Models.WModels.TGSOUTACHIVEAREA model in models)
{
PropertyI


Ïà¹ØÎĵµ£º

ASP.NET¿Ø¼þ¿ª·¢Ö®ÊôÐÔ

Ò»¡¢Ð§¹ûͼ
1.¼òµ¥ÊôÐÔ
2.ÏÂÀ­¿òÊôÐÔ
3.ÑÕÉ«ÊôÐÔ
4.°üº¬ÊôÐÔ
5.¼¯ºÏÊôÐÔ
±à¼­Æ÷
6.ÈÕÆÚÊôÐÍ
¶þ¡¢³ÌÐò´úÂë
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Draw ......

ÕÐƸ£ºasp.net(c#)¸ß¼¶Èí¼þ¹¤³ÌʦһÃû

ÈÎÖ°×ʸñ:
1. ´óѧ±¾¿ÆÒÔÉÏѧÀú£¬ÈýÄêÒÔÉÏÈí¼þ¿ª·¢¹¤×÷¾­Ñé»ò»¥ÁªÍø¿ª·¢¾­Ñ飻¾ßÓжþ¸ö¼°ÒÔÉÏÖÐÐÍÏîÄ¿µÄ³É¹¦ÊµÊ©¾­Ñ飻
2. ÓÐ׼ȷÀí½âÐèÇ󡢼ܹ¹ÄÜÁ¦£¬ÓнÏÇ¿µÄ³ÌÐòÉè¼ÆÄÜÁ¦, ÊìϤÃæÏò¶ÔÏó·ÖÎö¡¢Èí¼þ¹¤³Ì¡¢UMLµÈÏà¹Ø¼¼Êõ£»
3. ÊìÁ·ÕÆÎÕ¼ÆËã»ú±à³ÌÒ»°ã˼ÏëºÍ·½·¨£»ÊìϤһÖÁÁ½ÖÖÃæÏò¶ÔÏó±à³ÌÓïÑÔ£»¾«Í¨.NET¡¢ C#¡¢ASP.net¡ ......

ASP.NET 2.0 ÖеÄSqlCacheDependencyÌØÐÔ


   
   Ëü»¹»áÔÚÖ¸¶¨µÄÊý¾Ý¿âÖÐÔö¼Ó¼¸¸ö´æ´¢¹ý³Ì£¬ÓÃÀ´ÈÃASP.NETÒýÇæ²éѯ׷×ÙµÄÊý¾Ý±íµÄÇé¿ö¡£
   
   È»ºó£¬Ëü»á¸øÎÒÃÇҪ׷×ÙµÄTable¼ÓÉϼ¸¸öTrigger£¬·Ö±ð¶ÔÓ¦µ½Insert¡¢Update¡¢Delete²Ù×÷£¬Õ⼸¸öTriggerµÄÓï¾ä·Ç³£¼òµ¥£¬¾ÍÊÇ°Ñ“AspNet_SqlCacheTablesF ......

asp.netÌá½»html±ê¼ÇºóµÄ×îÓÅ°²È«´¦Àí

ASP.Net 1.1ºóÒýÈëÁ˶ÔÌá½»±íµ¥×Ô¶¯¼ì²éÊÇ·ñ´æÔÚXSS(¿çÕ¾½Å±¾¹¥»÷)µÄÄÜÁ¦¡£µ±Óû§ÊÔͼÓÃÖ®ÀàµÄÊäÈëÓ°ÏìÒ³Ãæ·µ»Ø½á¹ûµÄʱºò£¬ASP.NetµÄÒýÇæ»áÒý·¢Ò»¸ö HttpRequestValidationExceptioin¡£Ä¬ÈÏÇé¿öÏ»᷵»ØÈçÏÂÎÄ×ÖµÄÒ³Ã棺
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
Server Error in '/YourApplicationPath' Application
A potentially dangerou ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ