using System.Data;using System.Data.Sql;using
System.Data.SqlClient; protected void Page_Load(object sender, EventArgs e) {
SqlConn...
分类:
数据库 时间:
2014-05-09 04:01:32
阅读次数:
388
(Yii)使用renderPartial调用另外一个控制器的视图我们可以使用renderPartial访问存储在不同控制器的视图文件夹中的部分视图文件。在Yii1.1.3中,我们使用双斜线“//”,程序就会从视图文件夹开始搜索,例如:路径:protected/views/library/_book....
分类:
其他好文 时间:
2014-05-09 03:49:22
阅读次数:
275
sharepoint学习笔记汇总
http://blog.csdn.net/qq873113580/article/details/20390149
protected void Button1_Click(object sender, EventArgs e)
{
using (SPSite site = new SPSite("http:...
分类:
其他好文 时间:
2014-05-08 17:13:44
阅读次数:
254
asp.net下载文件几种方式 protected void Button1_Click(object
sender, EventArgs e) { /*
微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400m...
分类:
Web程序 时间:
2014-05-08 11:54:24
阅读次数:
498
#include
#include
using namespace std;
class CPerson
{
protected:
char *m_szName;
char *m_szId;
int m_nSex;//0:women,1:man
int m_nAge;
public:
CPerson(char *name,char *id,int sex,int age);
voi...
分类:
其他好文 时间:
2014-05-08 08:15:08
阅读次数:
250
后台: protected void ibtnRegedit_Click(object sender,
ImageClickEventArgs e) { if (!Page.IsValid || !CheckVCode()) retu...
分类:
其他好文 时间:
2014-05-08 00:44:32
阅读次数:
281
之前都是用扩展方法来copy属性值,不过兼容性不是很好。(关于这个扩展方法可以参照这个博客),不过我们可以通过下方的代码来实现,由于是微软提供的功能,所以不需要考虑兼容性问题:public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventAr...
分类:
其他好文 时间:
2014-05-08 00:19:02
阅读次数:
326
2.3.2计算阶乘实例1 的阶乘结果是: {{factorial.result}}
function Factorial ($scope) { $scope.factorial = {}; $scope.factori...
分类:
其他好文 时间:
2014-05-07 20:50:10
阅读次数:
296
仿真软件modelsim中,错误 Error: already declared in this
scope
()在定义这个信号前其它模块接口信号中调用了这个信号,modelsim仿真报错,通过把信号定义挪到调用模块前面问题解决。可能是modelsim有要求,在块里边出现之前,必须先做声明。
分类:
其他好文 时间:
2014-05-06 23:47:22
阅读次数:
482
通过实现父类的方法
protected void onSaveInstanceState(Bundle outState)
{
super.onSaveInstanceState(outState);
String str = editText.getText().toString();
outState.putString("key", "message");
}
这样就保存到了B...
分类:
其他好文 时间:
2014-05-06 21:46:12
阅读次数:
405