C# WEBform 和 WINform之间通信
来源:互联网 发布:过山车大亨 mac破解版 编辑:程序博客网 时间:2024/06/01 10:28
windows 窗体传值到 web窗体
WINform端:
System.Diagnostics.Process.Start(@"http://localhost:4123/WebForm1.aspx?name=" + textBox1.Text +"&pw="+textBox2.Text);
WEBform 端:
this.TextBox1.Text = Request.QueryString["name"];
this.TextBox2.Text = Request.QueryString["pw"];
web窗体 传值到 windows 窗体
Form1.cs文件:
public partial class Form1 : Form
{
string name;
public Form1(string n)
{
InitializeComponent();
this.name = n;
}
private void Form1_Load(object sender, EventArgs e)
{
this.button1.Text = name;
}
}
Program.cs文件:
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string [] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1(args[0]));
}
}
}
webForm1.aspx.cs文件内容
- C# WEBform 和 WINform之间通信
- 当前目录c# winform和webform
- Flash与c# socket通信,win2003,webForm,winForm
- WebForm、WinForm、Win32之间关系
- C# winform 和Webform 给DataGridView 和DataView 添加行号
- C# 实现 在 WinForm 和 WebForm 中的权限控制
- WebForm和WinForm交互方法
- Winform和WebForm的异同
- webform 和 winform两者区别
- WebForm和WinForm交互方法
- C#中winform,webform多层架构理解
- C# Winform——两个窗体之间通信!!!
- C# winform和webform通用的加密解密方法UrlEncode和UrlDecode
- .net中webform和winform连接sql server 2000数据库的c#操作类
- AS和C#通信,Flash和.net (winform)通信
- JS和C#通信,Html和.net (winform)通信
- WinForm和WebForm 对Quartz定时器使用
- winform和webform有什么区别
- 关于C/C++标准
- 超强数值进制转换,纯C代码
- shell之“>/dev/null 2>&1” 详解
- 禁止ie浏览器弹出是否记录密码的对话框
- 一位出租车司机的理论
- C# WEBform 和 WINform之间通信
- 内存访问越界
- Note 23888 - SD performance and tuning: A basis for notes(sap条件类型性能优化NOTE)
- C++ VS C#(2):字符串,命名空间
- BAUMA CHINA2010 液压泵网记载 展会新记录再次被创造
- HTML
- Linux学习之简单操作
- ObjectARX-CAD实体求空间交集
- TCP三次握手/四次挥手详解