this.Load += new EventHandler(PagePower_Load);
Console.WriteLine("GetDomain;" + new PageBase().GetDomain);
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> 让浏览器强制以ie8模式打开
那其实是利用注册表+COM+VBS脚本实现的
打开你快车目录 应该有个jc_link.htm和jc_all.htm文件 你打开jc_link.htm的原代码
里面有个Sub OnContextMenu()过程 这个其实就是用来下东西的
1.快车先写注册表 使在右键菜单有下载那一项
2.写入jc_link.htm名到注册表使之按右键的时候能执行jc_link.htm从而运行脚本
3.最后利用脚本得到你选中的URL通过COM启动快车
建立快车COM对象set JetCarCatch=CreateObject("JetCar.Netscape")
得到选中的URL set srcAnchor=srcAnchor.parentElement
打开快车进行下载 Call AddLink(srcAnchor.href,srcAnchor.innerText)
注册表+COM+VBS脚本
string[] strings = where.Split(t, StringSplitOptions.RemoveEmptyEntries);
dsFree.Tables[0].Rows.Add(dr1.ItemArray);
php获取linux进程号怎么弄
There is a property of Column attribute (of System.Data.Linq.Mapping namespace) called IsDbGenerated. When you add this property for a Column and set it to true, it says the DataContext that column will be filled by the database i.e. its value will be generated by the database. This is very useful for Identity Columns. In this case, you also donot required to set the IDENTITY_INSERT on. So, suppose we have an identity column say "UserID", and we want to insert a row in our database table named say "TestTable". The code to do this is as follow
//In the class TestTable (which is mapped for LINQ)
[Column (Name="UserID",IsDbGenerated=true,DbType="int Not Null IDENTITY")]
public int UserID
{
get;
set;
}
//In the class where you want to insert row into table TestTable
TestDBDataContext tdb=new TestDBDataContext(ConnString);
tdb.TestTable.InsertOnSubmit(newRow);
tdb.SubmitChanges();
In this way you can insert a new row.
--------------------------------------------------------------------------------
我的实践证明,只要在
[Column (Name="UserID",DbType="Int Not Null")]
行中加一个IsDbGenerated=true就可以了。
[Column (Name="UserID",IsDbGenerated=true,DbType="int Not Null IDENTITY")]
_self相同框架
_top整页
_blank新建一个窗口
_parent父窗口
其它的就是自定义了,可以指向已有的窗口名称
用 window.open
location.href 只能引导当前页的转向
window.open('OPK://Messages/?uid=0&target='+s_price);
这不是回到 矛和盾 的问题了吗。弹出与拦截之间,就是个痛。
查了一下,有可以不被拦截人处理办法,但太复杂,可以用一个折中办法来提示
var win = window.open('OPK://Messages/?uid=0&target='+s_price);
if(win == null){
alert('新窗口看起来是被一个弹出窗口拦截程序所阻挡。 如果想打开新窗口,我们建议您将本站点加入到这个拦截程序设定的允许弹出名单中。有的弹出窗口拦截程序允许在长按Ctrl键时可以打开新窗口。');
}
discomap C#