小编Far*_*ebi的帖子

我可以将NetBeans与asp.net一起用作编辑器吗?

我想用asp.net(C#.net)设计一个网站,并需要我的管理面板的编辑器添加图片等纸张,所以我必须使用ckeditor,tinyMce或任何其他建议.

但是我的一位朋友告诉我,我不应该在你的网站中使用编辑器而是使用NetBeans(使用asp.net插件).
可能吗?如果是这样,怎么样?

asp.net netbeans

6
推荐指数
1
解决办法
6806
查看次数

如何像Windows资源管理器一样并排调整两个div的大小

在此处输入图片说明

嗨,我必须创建一个页面,RightCol 必须像 windows 资源管理器窗口一样可调整大小。每列的大小必须等于浏览器的高度。通过调整浏览器的大小,必须调整这两列的大小。

我的代码不能正常工作。请一位可以帮我吗?

/**jquery :**/

$("#LeftCol").resizable({
  maxHeight: 250,
  maxWidth: 900,
  minHeight: 150,
  minWidth: 200
});

$('#LeftCol').resize(function () {
  $('#RightCol').width($("#parent").width() - $("#LeftCol").width());
});
$(window).resize(function () {
  $('#RightCol').width($("#parent").width() - $("#LeftCol").width());
  $('#LeftCol').height($("#parent").height());
});
Run Code Online (Sandbox Code Playgroud)
<link href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css" rel="stylesheet" />
#parent {
  position: relative;
  min-height: 300px;
  margin: 0;
  padding: 0;
  width: 100%;
}

#LeftCol {
  position: relative;
  float: right;
  min-height: 400px;
  width: 65%;
  background-color: #A2A;
  overflow:auto;
}

#RightCol {
  position: relative;
  float: right;
  min-height: 400px;
  width: 35%;
  background-color: #BBB;
  overflow:auto;
  max-height:300px;
} …
Run Code Online (Sandbox Code Playgroud)

javascript css jquery

5
推荐指数
1
解决办法
3718
查看次数

如何按名称删除图层 - openlayers 3

我添加了带有wkt源的矢量图层来映射下面的代码:

var SelectVector = null;

for (var i = 0; i < wktarray.length; i++) { 
   var wkt = wktarray[i];
   var format = new ol.format.WKT();
   var feature = format.readFeature(wkt, {
       dataProjection: 'EPSG:4326',
        featureProjection: 'EPSG:4326'
    });
    SelectVector = new ol.layer.Vector({
        source: new ol.source.Vector({
            features: [feature]
        }),style: new ol.style.Style({
            fill: new ol.style.Fill({
                color: 'rgba(255, 255, 255, 0.2)'
            }),?     stroke: new ol.style.Stroke({
                color: '#ffcc33',?                    width: 2
            }),?    image: new ol.style.Circle({
                radius: 7,
                fill: new ol.style.Fill({
                    color: '#ffcc33'
                })
            })
        })
    });
    map.addLayer(SelectVector); …
Run Code Online (Sandbox Code Playgroud)

openlayers openlayers-3

4
推荐指数
1
解决办法
7467
查看次数

asp.net core 3.0 - 如何增加空闲超时

这是使用 asp.net core 3.0 的网站。我使用CookieAuthentication并设置 cookie 过期时间如下:

services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
        .AddCookie(options =>
        {
            options.LoginPath = "/Home/Index/";
            options.ReturnUrlParameter = "returnUrl";
            options.Cookie.Name = "pa-lg";

            options.Cookie.IsEssential = true;
            options.SlidingExpiration = true;
            options.ExpireTimeSpan = TimeSpan.FromHours(1);
        });

services.AddAntiforgery(options =>
{
    options.HeaderName = "X-CSRF-TOKEN";
    options.Cookie.Name = "pa-tk";
    options.Cookie.IsEssential = true;
    options.Cookie.Expiration = TimeSpan.FromHours(1);
});

services.Configure<CookieTempDataProviderOptions>(options => options.Cookie.Name = "pa-tmp");
services.AddSession(options =>
{
    options.IdleTimeout = TimeSpan.FromHours(1);
});
Run Code Online (Sandbox Code Playgroud)

在登录操作中:

await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme,
                              principal,
                              new AuthenticationProperties
                              {
                                  IsPersistent = true,
                                  ExpiresUtc = DateTime.Now.AddMinutes(60)
                              });
Run Code Online (Sandbox Code Playgroud)

我预计,如果您一个小时没有使用该网站,您将需要再次登录,但大约 15 分钟后,用户将需要登录。

为什么?

asp.net-core

4
推荐指数
1
解决办法
7708
查看次数

如何从asp.net中的存储过程中获取OUTPUT值

我有这个存储过程,在表中插入记录并IDENTITY使用Output Inserted.KID以下方法返回列值:

ALTER procedure [dbo].[InsertNode]
(
    @FName nvarchar(50),
    @Lname nvarchar(50),
    @CDesc nvarchar(max),
    @ParentID int
)
as
begin
    insert into Chart (FName , Lname ,CDesc, ParentID ) 
    Output Inserted.KID
    values (@FName, @Lname, @CDesc, @ParentID)
end
Run Code Online (Sandbox Code Playgroud)

C#代码:

public void InsertNode(string FName, string LName, string cDesc, int pid)
{
    try
    {
        using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString))
        {
            using (SqlCommand cmd = new SqlCommand("InsertNode", con))
            {
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@FName", FName);
                cmd.Parameters.AddWithValue("@Lname", LName);
                cmd.Parameters.AddWithValue("@CDesc", cDesc);
                cmd.Parameters.AddWithValue("@ParentID", pid);
                con.Open();
                Int32 …
Run Code Online (Sandbox Code Playgroud)

c# sql-server asp.net stored-procedures

3
推荐指数
1
解决办法
2733
查看次数

无法加载类型“CKFinder.Connector.Connector”

H?,我试图在 asp.net 4 中将 CKFinder 与 ckeditor 一起使用,但出现此错误:

无法加载类型“CKFinder.Connector.Connector”。无法加载类型“CKFinder.Settings.ConfigFile”。未知的服务器标签“CKFinder:Config”。

dll 位于网站的 bin 目录中。可能有什么问题?

asp.net ckeditor ckfinder

2
推荐指数
1
解决办法
4314
查看次数

我们如何确定电子邮件地址是否真的存在?

我们可以在asp.net中使用正则表达式验证电子邮件地址.现在,我们如何才能找到真正存在的电子邮件地址?

例如,farzaneh@yahoo.com具有正确的电子邮件格式但不存在.

此代码仅适用于gmail帐户:

protected void Button1_Click(object sender, EventArgs e)
{
       TcpClient tClient = new TcpClient("gmail-smtp-in.l.google.com", 25);
       string CRLF = "\r\n";
       byte[] dataBuffer;
       string ResponseString;
       NetworkStream netStream = tClient.GetStream();
       StreamReader reader = new StreamReader(netStream);
       ResponseString = reader.ReadLine();
       /* Perform HELLO to SMTP Server and get Response */
       dataBuffer = BytesFromString("HELO " + CRLF);
       netStream.Write(dataBuffer, 0, dataBuffer.Length);
       ResponseString = reader.ReadLine();
       dataBuffer = BytesFromString("MAIL FROM:<hosseinhagh66@gmail.com>" + CRLF);
       netStream.Write(dataBuffer, 0, dataBuffer.Length);
       ResponseString = reader.ReadLine();
       /* Read Response of the RCPT TO …
Run Code Online (Sandbox Code Playgroud)

asp.net

0
推荐指数
1
解决办法
1461
查看次数

如何将Ckfinder与Ckeditor一起使用?

我在我的项目中使用过Ckeditor.它运作良好.我可以把图片放在文本中但是有一个网址.我知道,如果我想从我的电脑上传一张照片,我必须使用CKfinder.如何将Ckfinder与Ckeditor一起使用?

我用这段代码来调用CKeditor:

 protected void Page_Load(object sender, EventArgs e)
{
    String StrScript = "CKEDITOR.replace( '" + TextBox1.ClientID + "',{toolbar : 'Full'});";
    ClientScript.RegisterStartupScript(this.GetType(), "Ck-Js/ckeditor", StrScript, true);

}
Run Code Online (Sandbox Code Playgroud)

谢谢.

ckeditor ckfinder

-1
推荐指数
1
解决办法
1万
查看次数