摘要:
#include "windows.h"#include "stdlib.h"#include "string.h" //对函数进行申明LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);BOOL InitWindowsClass(HINSTANCE hInstance);BOOL InitWindows(HINSTANCE hInstance,int nCmdShow);//程序入口, WinMain函数int WINAPI Win 阅读全文
阅读排行榜
登陆页面
2012-05-16 23:18 by RuMing, 295 阅读, 收藏,
摘要:
1 protected void Button1_Click(object sender, EventArgs e) 2 { 3 string userID = TextBox1.Text; 4 string userPASSWORD = TextBox2.Text; 5 6 string conStr = System.Configuration.ConfigurationManager.ConnectionStrings["NewTestConnectionString"].ConnectionString; 7 8 ... 阅读全文
新闻发布系统总结
2012-06-16 20:27 by RuMing, 283 阅读, 收藏,
摘要:
1:读取相应的值传递给 labelView Code 1 SqlCommand cmd2 = con.CreateCommand(); 2 cmd2.CommandText = "select nNewsContent,nNewsTitle,cNewsAuthor,dPublishTime,vImagePath,iHits from News where iNewsId = " + newsid; //sql语句文本 后面+新闻ID号 3 4 SqlDataReader reader2 = cmd2.Exe... 阅读全文
asp.net获取ip
2012-05-16 21:27 by RuMing, 266 阅读, 收藏,
摘要:
命名空间:usingSystem.Net;前台代码:1 用户IP地址:2 <asp:Label ID="UserIP" runat="server"></asp:Label>3 4 用户域名:5 <asp:Label ID="UserDNS" runat="server"></asp:Label> 后台实现页面:1 protected void Button1_Click(object sender, EventArgs e)2 {3 string IP = Requ 阅读全文
浙公网安备 33010602011771号