partialview?MVC3调用分部视图PartialView的几种方式
大家好,今天小编来为大家解答以下的问题,关于partialview,MVC3调用分部视图PartialView的几种方式这个很多人还不知道,现在让我们一起来看看吧!
MVC3调用分部视图PartialView的几种方式
一、1、在Test控制器下,创建Message方法
public class TestController: Controller{public ActionResult Message(){var testObj= new List<string(){aaa, bbb, ccc};//将testObj对象,传入MessageControl分部视图,返回分部视图对象
return PartialView(MessageControl, testObj);}}
2、创建 MessageControl分部视图
在Views文件夹-Shared文件夹,Shared文件夹右键添加视图,选中“创建分部视图”,文件名:MessageControl
@model List<string<ul@foreach(var item in Model){<li@item</li}</ul
3、视图调用,分部视图MessageControl
@{Html.RenderPartial(MessageControl);}
二、指定Controller和Action
@Html.Action(方法名,
控制器名)@{Layout= null;}
<!DOCTYPE html<html<head<titleIndex</title</head<body<div@Html.Action(Message, Test)</div</body</html
但Controller和Action不是必须的,你也可以新建一个对象传给分部视图 MessageControl
<!DOCTYPE html<html<head<titleIndex</title</head<body<div@Html.Partial(MessageControl, new List<string{ ccc, ddd, eee})</div</body</html
三、通过JQuery去调用Test/Message,并把结果填充到ID为fuck的DIV中
<h3Use JQuery</h3
<a href=javascript:; onclick=loadFuck()Invoke LoadPartial</a
<div id=fuck</div
<script type=text/javascript
function loadFuck(){
view怎么读
view的读音是:英[vju?]。
view的读音是:英[vju?]。view的意思是n.视野;见解;风景;方法;检查;v.考虑;看;把...视为。view形容词:viewable;过去式:viewed;过去分词:viewed;现在分词:viewing;第三人称单数:views。
一、详尽释义点此查看view的详细内容
n.(名词)看法,见解,意见,观点观看,眺望,看,一览视野,视域景色,风景风景画,风景照片视力观察展望概观,概括,梗概目的,意图,意向v.(动词)考虑,揣度,估料观看,看,望查看,察看,视察,检查看待,将…看成是,把…视为,认为【律】查验用电视机观看二、双解释义
n.(名词)[U]看 state of seeing or being seen from a particular place[U]视力;视野,视线 ability to see or be seen from a particular place; sight[C]景色,风景 sth seen from a particular place, especially a stretch of pleasant country[C]风景画,风景照片 a picture or photograph of scenery, a building, etc.[S]观察某人〔某事物〕的特定机会 a special chance to see or examine sb or sth[C]看法,意见 a personal opinion, belief, idea, etc., about sth[C]考虑,思量;思考的方式 an act or manner of seeing, considering, examining, etc.v.(动词)vt.观看 look atvt.查看 examinevt.认为,考虑 consider三、英英释义
Noun:a way of regarding situations or topics etc.;"consider what follows from the positivist view"
the visual percept of a region;"the most desirable feature of the park are the beautiful views"
the act of looking or seeing or observing;"he tried to get a better view of it"
"his survey of the battlefield was limited"
the range of the eye;"they were soon out of view"
a personal belief or judgment that is not founded on proof or certainty;"my opinion differs from yours"
"I am not of your persuasion"
"what are your thoughts on Haiti?"
a message expressing a belief about something; the expression of a belief that is held with confidence but not substantiated by positive knowledge or proof;"his opinions appeared frequently on the editorial page"
purpose; the phrase `with a view to' means `with the intention of' or `for the purpose of';"he took the computer with a view to pawning it"
graphic art consisting of the graphic or photographic representation of a visual percept;"he painted scenes from everyday life"
"figure 2 shows photographic and schematic views of the equipment"
the range of interest or activity that can be anticipated;"It is beyond the horizon of present knowledge"
outward appearance;"they look the same in outward view"
Verb:deem to be;"She views this quite differently from me"
"I consider her to be shallow"
"I don't see the situation quite as negatively as you do"
look at carefully; study mentally;"view a problem"
see or watch;"view a show on television"
"This program will be seen all over the world"
"view an exhibition"
"Catch a show on Broadway"
"see a movie"
四、例句
The valley was hidden from view in the mist.
溪谷隐没在雾霭之中,看不见了。
His view of life is different from yours.
他的人生观与你的不同。
I enjoy the view of the bay in the starlight.
我喜欢星光下的海湾风景。
He took a subjective view of the problem.
他用主观的方法看问题。
The police took a view of the scene.
警方检查了现场。
We can view the problem in many ways.
我们可以从多方面来考虑这些问题。
People came from all over the world to view her work.
人们从世界各地涌来欣赏她的作品。
We view every customer as a partner.
我们将每一位客户视为合作伙伴。
五、词汇搭配
用作名词(n.)动词+~abandon one's view放弃自己的看法beautify the view美化景色block view挡住视线形容词+~single view一目了然adverse view反面意见auxiliary view辅助视图contrary views相反的看法介词+~at first view初见in sb's view在某人看来with a view持有某种看法~+介词view about对…的看法用作动词(v.)~+名词view an island看一个岛屿view the matter考虑这事view the plan考虑计划view the problem考虑问题view things看待事物~+副词view afar从远处看view critically批判地看待view cynically悲观地看待view favourably赞同view historically从历史上考虑view optimistically乐观地考虑view solemnly严肃地看待view superficially孤立地看待view unfavourably不以为然~+介词view as把…看做view sb as one's major adversary把某人看做主要对手view as models当作模范view as a serious threat认为是一个严重威胁view at this angle从这个角度考虑问题view from从…角度看view from all angles全面地考虑view from both sides全面看view from one's standpoint从某人的立场看view in the totality看事物的全部view with以…(看法)来看view with a partial eye带有偏见地看某物view with skepticism对…表示怀疑view with suspicion以怀疑态度看待某物六、经典引文
A view of this armour was to be taken twice in the year.
出自:H. HallamWe..took the opportunity of viewing the progress of our moorstone works.
出自:J. SmeatonInvite readers to a special evening to view the..Ready-to-Wear collections.
出自:Harpers Queen七、词语用法
n.(名词)view后接介词of,既可引出看的逻辑主语,也可引出看的逻辑宾语。view作“意见,观点,见解”解时多用于复数形式。v.(动词)view的基本意思是“看”“观察”,指看见展现在人们面前的、可以稳定地进行详细审视的事物,尤指需用某种方式或特殊目的来看待思考的事物。引申表示“持某种看法”“考虑”。view是及物动词,接名词作宾语,还可接以as短语充当补足语的复合宾语。可用于被动结构。view作名词指“意见”时,后面可跟介词of。其复数形式views后可跟介词on或of。What is your view of this policy?
What are your views on/of this policy?
in view of指“鉴于……,由于……”时,view前面不加冠词a或the。In view of these facts, we can do a great deal.
鉴于这些事实,我们可以成交。
with a view to通常指“以……为目的”,后面通常接动名词或名词。有时也指“希望得到……”,后面一般接名词,如with a view to improving it和with a view to its improvement;with the view of指“以……为目的”,后面只跟动名词,不跟名词。通常用with a view to,很少用with the view of;views作名词指“见解”时,与facts意思上成对比。What he wants is facts, not views.
他想要的是事实,而不仅仅只是想法。
view的相关近义词
glance、look、opinion、sight
view的相关临近词
viewer、Vietnamese、views、viewy、Vieweg、viewed、viewing、view on、viewler、Viewegh、viewbox、view as
点此查看更多关于view的详细信息
datagridview的问题
1、在数据库中建立一个有关用户修改的表;
2、做一个登陆窗体~根据不同的登陆用户为其配置使用界面~
当用户登录后记录下用户的登陆信息~
可以在窗体上显示用户名等在状态栏中。当updata时操作员肯定是登陆的这个用户嘛。这是在更新数据的同时将当时的操作员的姓名和系统时间写入到有关用户修改的表。
就可以了嘛。
代码的话应改比较简单~给你一个登陆窗体的吧:
表的话你自己根据需要建一张~
窗体设计的:
namespace宿舍管理系统
{
partial class登录窗体
{
#region Windows窗体设计器生成的代码
///<summary>
///必需的设计器变量。
///</summary>
private System.ComponentModel.IContainer components= null;
///<summary>
///清理所有正在使用的资源。
///</summary>
///<param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if(disposing&&(components!= null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components= new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources= new System.ComponentModel.ComponentResourceManager(typeof(登录窗体));
this.pB1= new System.Windows.Forms.ProgressBar();
this.button1= new System.Windows.Forms.Button();
this.button2= new System.Windows.Forms.Button();
this.label1= new System.Windows.Forms.Label();
this.label2= new System.Windows.Forms.Label();
this.label3= new System.Windows.Forms.Label();
this.timer1= new System.Windows.Forms.Timer(this.components);
this.textBox1= new System.Windows.Forms.TextBox();
this.comboBox1= new System.Windows.Forms.ComboBox();
this.oleDbSelectCommand1= new System.Data.OleDb.OleDbCommand();
this.oleDbConnection1= new System.Data.OleDb.OleDbConnection();
this.oleDbInsertCommand1= new System.Data.OleDb.OleDbCommand();
this.oleDbUpdateCommand1= new System.Data.OleDb.OleDbCommand();
this.oleDbDeleteCommand1= new System.Data.OleDb.OleDbCommand();
this.oleDbDataAdapter1= new System.Data.OleDb.OleDbDataAdapter();
this.dataSet11= new宿舍管理系统.DataSet1();
this.pictureBox1= new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pB1
//
this.pB1.Location= new System.Drawing.Point(-4, 219);
this.pB1.Maximum= 10;
this.pB1.Name="pB1";
this.pB1.Size= new System.Drawing.Size(429, 23);
this.pB1.Step= 1;
this.pB1.TabIndex= 0;
this.pB1.Visible= false;
//
// button1
//
this.button1.Font= new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,((byte)(134)));
this.button1.Location= new System.Drawing.Point(133, 171);
this.button1.Name="button1";
this.button1.Size= new System.Drawing.Size(75, 29);
this.button1.TabIndex= 1;
this.button1.Text="登录";
this.button1.UseVisualStyleBackColor= true;
this.button1.Click+= new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Font= new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,((byte)(134)));
this.button2.Location= new System.Drawing.Point(238, 171);
this.button2.Name="button2";
this.button2.Size= new System.Drawing.Size(75, 29);
this.button2.TabIndex= 2;
this.button2.Text="退出";
this.button2.UseVisualStyleBackColor= true;
this.button2.Click+= new System.EventHandler(this.button2_Click);
//
// label1
//
this.label1.AutoSize= true;
this.label1.BackColor= System.Drawing.Color.Transparent;
this.label1.Font= new System.Drawing.Font("华文新魏", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,((byte)(134)));
this.label1.Location= new System.Drawing.Point(69, 23);
this.label1.Name="label1";
this.label1.Size= new System.Drawing.Size(303, 35);
this.label1.TabIndex= 3;
this.label1.Text="学生宿舍管理系统";
//
// label2
//
this.label2.AutoSize= true;
this.label2.BackColor= System.Drawing.Color.Transparent;
this.label2.Font= new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,((byte)(134)));
this.label2.Location= new System.Drawing.Point(129, 88);
this.label2.Name="label2";
this.label2.Size= new System.Drawing.Size(69, 19);
this.label2.TabIndex= 4;
this.label2.Text="用户名";
//
// label3
//
this.label3.AutoSize= true;
this.label3.BackColor= System.Drawing.Color.Transparent;
this.label3.Font= new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,((byte)(134)));
this.label3.Location= new System.Drawing.Point(127, 125);
this.label3.Name="label3";
this.label3.Size= new System.Drawing.Size(71, 19);
this.label3.TabIndex= 5;
this.label3.Text="密码";
//
// timer1
//
this.timer1.Tick+= new System.EventHandler(this.timer1_Tick);
//
// textBox1
//
this.textBox1.Location= new System.Drawing.Point(213, 123);
this.textBox1.Name="textBox1";
this.textBox1.PasswordChar='*';
this.textBox1.Size= new System.Drawing.Size(100, 21);
this.textBox1.TabIndex= 6;
//
// comboBox1
//
this.comboBox1.FormattingEnabled= true;
this.comboBox1.Items.AddRange(new object[]{
"Guest",
"Administrator"});
this.comboBox1.Location= new System.Drawing.Point(213, 87);
this.comboBox1.Name="comboBox1";
this.comboBox1.Size= new System.Drawing.Size(100, 20);
this.comboBox1.TabIndex= 7;
//
// oleDbSelectCommand1
//
this.oleDbSelectCommand1.CommandText="SELECT用户信息.*\r\nFROM用户信息";
this.oleDbSelectCommand1.Connection= this.oleDbConnection1;
//
// oleDbConnection1
//
this.oleDbConnection1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\StudentData.mdb.mdb";
//
// oleDbInsertCommand1
//
this.oleDbInsertCommand1.CommandText="INSERT INTO `用户信息`(`用户名`, `密码`, `用户类型`) VALUES(?,?,?)";
this.oleDbInsertCommand1.Connection= this.oleDbConnection1;
this.oleDbInsertCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[]{
new System.Data.OleDb.OleDbParameter("用户名", System.Data.OleDb.OleDbType.VarWChar, 0,"用户名"),
new System.Data.OleDb.OleDbParameter("密码", System.Data.OleDb.OleDbType.VarWChar, 0,"密码"),
new System.Data.OleDb.OleDbParameter("用户类型", System.Data.OleDb.OleDbType.VarWChar, 0,"用户类型")});
//
// oleDbUpdateCommand1
//
this.oleDbUpdateCommand1.CommandText="UPDATE `用户信息` SET `用户名`=?, `密码`=?, `用户类型`=? WHERE((`用户名`=?) AND((?= 1"+
"AND `密码` IS NULL) OR(`密码`=?)) AND((?= 1 AND `用户类型` IS NULL) OR(`用户类型`=?)"+
"))";
this.oleDbUpdateCommand1.Connection= this.oleDbConnection1;
this.oleDbUpdateCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[]{
new System.Data.OleDb.OleDbParameter("用户名", System.Data.OleDb.OleDbType.VarWChar, 0,"用户名"),
new System.Data.OleDb.OleDbParameter("密码", System.Data.OleDb.OleDbType.VarWChar, 0,"密码"),
new System.Data.OleDb.OleDbParameter("用户类型", System.Data.OleDb.OleDbType.VarWChar, 0,"用户类型"),
new System.Data.OleDb.OleDbParameter("Original_用户名", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"用户名", System.Data.DataRowVersion.Original, null),
new System.Data.OleDb.OleDbParameter("IsNull_密码", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input,((byte)(0)),((byte)(0)),"密码", System.Data.DataRowVersion.Original, true, null),
new System.Data.OleDb.OleDbParameter("Original_密码", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"密码", System.Data.DataRowVersion.Original, null),
new System.Data.OleDb.OleDbParameter("IsNull_用户类型", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input,((byte)(0)),((byte)(0)),"用户类型", System.Data.DataRowVersion.Original, true, null),
new System.Data.OleDb.OleDbParameter("Original_用户类型", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"用户类型", System.Data.DataRowVersion.Original, null)});
//
// oleDbDeleteCommand1
//
this.oleDbDeleteCommand1.CommandText="DELETE FROM `用户信息` WHERE((`用户名`=?) AND((?= 1 AND `密码` IS NULL) OR(`密码`=?)"+
") AND((?= 1 AND `用户类型` IS NULL) OR(`用户类型`=?)))";
this.oleDbDeleteCommand1.Connection= this.oleDbConnection1;
this.oleDbDeleteCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[]{
new System.Data.OleDb.OleDbParameter("Original_用户名", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"用户名", System.Data.DataRowVersion.Original, null),
new System.Data.OleDb.OleDbParameter("IsNull_密码", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input,((byte)(0)),((byte)(0)),"密码", System.Data.DataRowVersion.Original, true, null),
new System.Data.OleDb.OleDbParameter("Original_密码", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"密码", System.Data.DataRowVersion.Original, null),
new System.Data.OleDb.OleDbParameter("IsNull_用户类型", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input,((byte)(0)),((byte)(0)),"用户类型", System.Data.DataRowVersion.Original, true, null),
new System.Data.OleDb.OleDbParameter("Original_用户类型", System.Data.OleDb.OleDbType.VarWChar, 0, System.Data.ParameterDirection.Input, false,((byte)(0)),((byte)(0)),"用户类型", System.Data.DataRowVersion.Original, null)});
//
// oleDbDataAdapter1
//
this.oleDbDataAdapter1.DeleteCommand= this.oleDbDeleteCommand1;
this.oleDbDataAdapter1.InsertCommand= this.oleDbInsertCommand1;
this.oleDbDataAdapter1.SelectCommand= this.oleDbSelectCommand1;
this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[]{
new System.Data.Common.DataTableMapping("Table","用户信息", new System.Data.Common.DataColumnMapping[]{
new System.Data.Common.DataColumnMapping("用户名","用户名"),
new System.Data.Common.DataColumnMapping("密码","密码"),
new System.Data.Common.DataColumnMapping("用户类型","用户类型")})});
this.oleDbDataAdapter1.UpdateCommand= this.oleDbUpdateCommand1;
//
// dataSet11
//
this.dataSet11.DataSetName="DataSet1";
this.dataSet11.SchemaSerializationMode= System.Data.SchemaSerializationMode.IncludeSchema;
//
// pictureBox1
//
this.pictureBox1.Image=((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location= new System.Drawing.Point(12, 71);
this.pictureBox1.Name="pictureBox1";
this.pictureBox1.Size= new System.Drawing.Size(109, 98);
this.pictureBox1.SizeMode= System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex= 8;
this.pictureBox1.TabStop= false;
//
//登录窗体
//
this.AutoScaleDimensions= new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode= System.Windows.Forms.AutoScaleMode.Font;
this.AutoSizeMode= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackgroundImage=((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize= new System.Drawing.Size(421, 267);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.pB1);
this.Icon=((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox= false;
this.Name="登录窗体";
this.StartPosition= System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text="学生宿舍管理系统Beta1.0";
this.Load+= new System.EventHandler(this.登录窗体_Load);
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ProgressBar pB1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
private System.Data.OleDb.OleDbConnection oleDbConnection1;
private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
private System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
private System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
private DataSet1 dataSet11;
private System.Windows.Forms.PictureBox pictureBox1;
}
}
窗体代码的:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlTypes;
using Microsoft.VisualBasic;
namespace宿舍管理系统
{
public partial class登录窗体: Form
{
public Int32 ins=0;
public String[] listo= new String[5];
public登录窗体()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
dataSet11.Clear();
oleDbDataAdapter1.SelectCommand.CommandText="select* from用户信息"+"where"+"用户名="+"'"+ comboBox1.Text+"'"+" and"+"密码="+"'"+ textBox1.Text+"'";
oleDbDataAdapter1.Fill(dataSet11,"用户信息");
if(dataSet11.用户信息.Rows.Count==1)
{
ins= 1;
listo[0]= dataSet11.用户信息.Rows[0][0].ToString();
listo[1]= dataSet11.用户信息.Rows[0][1].ToString();
listo[2]= dataSet11.用户信息.Rows[0][2].ToString();
listo[3]= dataSet11.用户信息.Rows[0][3].ToString();
pB1.Visible= true;
timer1.Enabled= true;
}
else
{
MessageBox.Show("用户名或密码错误!","系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void timer1_Tick(object sender, EventArgs e)
{
pB1.PerformStep();
if(pB1.Value== 10)
{
timer1.Enabled= false;
this.Close();
}
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void登录窗体_Load(object sender, EventArgs e)
{
oleDbDataAdapter1.Fill(dataSet11,"用户信息");
if(dataSet11.用户信息.Rows.Count== 0)
{
ins= 1;
this.Close();
}
}
}
}
program的
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace宿舍管理系统
{
static class Program
{
///<summary>
///应用程序的主入口点。
///</summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
登录窗体 strat= new登录窗体();
主界面 sys= new主界面();
Application.Run(strat);
sys.listi= strat.listo;
if(strat.ins==1)
Application.Run(sys);
}
}
}
引用可能要自己添加
有些图片可能不会显示
关于partialview到此分享完毕,希望能帮助到您。