小编Jin*_*ong的帖子

使用php在符号前剪切字符串

如何在'('用php签名)之前剪切字符串

例如:$ a ="abc dec g(gold)";

我怎样才能将字符串切成"abc dec g"?

我试图使用这个strstr($ a,'(',true)但错误显示.

php

11
推荐指数
2
解决办法
4万
查看次数

如何使用jquery从输入中删除按键?

有谁知道我怎么能用jquery从输入中删除keypress?

例:

<input type="text" keypress="cleanMsg()" id="cleanMsg" name="cleanMsg">
Run Code Online (Sandbox Code Playgroud)

如何使用jquery从输入中删除keypress ="cleanMsg()"?或者无论如何将keypress ="cleanMsg()"替换为keypress ="Msg()"??

jquery

11
推荐指数
3
解决办法
3万
查看次数

SQL Server中的时间格式

有谁知道如何格式化select语句datetime值只显示SQL Server中的时间?

例:

Table cuatomer
id   name   datetime
1    Alvin  2010-10-15 15:12:54:00
2    Ken    2010-10-08 09:23:56:00
Run Code Online (Sandbox Code Playgroud)

当我选择表格时,我喜欢结果将显示如下

id   name    time
1    Alvin   3:12PM
2    Ken     9:23AM
Run Code Online (Sandbox Code Playgroud)

我能用mssql做的任何方式吗?

t-sql sql-server time

11
推荐指数
3
解决办法
7万
查看次数

如何检查SQL Server中的重复记录

有没有人知道如何编写SQL Server脚本来检查表是否包含重复的电话号码?

例:

我有一个名为customer的表,其中包含以下数据

name   telephone
alvin  0396521254
alan   0396521425
amy    0396521425
Run Code Online (Sandbox Code Playgroud)

如何在SQL Server中编写可以返回具有重复电话号码的记录的脚本?

sql t-sql sql-server

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

如何在列名中使用特殊字符选择SQL Server中的列?

我有一个表包含列标题中的'%',当我在该列上执行select语句时,这会导致问题(有关详细信息,请参阅下面的内容).有谁知道如何通过不保留原始列标题来选择该列?

例:

Table1
name  ref_no  tot_sales  %Phone
-------------------------------
Alan  1       1          100%
amy   2       1          50%
ken   3       4          30%
Run Code Online (Sandbox Code Playgroud)

脚本:

Select %Phone From Table1
Run Code Online (Sandbox Code Playgroud)

错误信息 :

电话附近的语法不正确

sql t-sql sql-server

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

用c#.net逐行读取excel数据

有谁知道如何逐行读取Excel#Excel的excel数据.

我发现这个代码将从excel返回数据并显示在c#.net的grindview上.每一个,我只是徘徊,这可以在服务器端逐行读取数据吗?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;    
using System.Data;
using System.Data.OleDb;
using System.IO;

namespace site
{
    public partial class pgTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnImport_Click(object sender, EventArgs e)
        {
            string connString = "";
            string strFileType = Path.GetExtension(fileuploadExcel.FileName).ToLower();
            string path = fileuploadExcel.PostedFile.FileName;
            //Connection String to Excel Workbook
            if (strFileType.Trim() == ".xls")
            {
                connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=2\"";
            }
            else if …
Run Code Online (Sandbox Code Playgroud)

.net c#

8
推荐指数
2
解决办法
6万
查看次数

如何在php上做SoapClient

我是soapclient的新手,我曾尝试在网上做一些研究,也尝试用肥皂编码,但似乎这对我来说仍然不起作用,只是在这里徘徊任何人都可以指出并可能给我一些例子我怎样才能真正使用soapclint从以下Web服务器获取反馈?

POST /webservices/tempconvert.asmx HTTP/1.1
Host: www.w3schools.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CelsiusToFahrenheit"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CelsiusToFahrenheit xmlns="http://tempuri.org/">
      <Celsius>string</Celsius>
    </CelsiusToFahrenheit>
  </soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CelsiusToFahrenheitResponse xmlns="http://tempuri.org/">
      <CelsiusToFahrenheitResult>string</CelsiusToFahrenheitResult>
    </CelsiusToFahrenheitResponse>
  </soap:Body>
</soap:Envelope>



<?php
$url = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL";
$client = new SoapClient($url);


?>
Run Code Online (Sandbox Code Playgroud)

我应该怎样做下一步,以便我能得到答复?

php soap

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

如何在Asp:GridView中使标题变为中心

有谁知道如何在asp:GridView中将标题居中?

例:

在此处输入图片说明

和我的代码如下:

<table border="0" width="500">
<tr>
    <td width="450px" align="center">
            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False"
              DataSourceID="dsTest" DataKeyNames="id"
              CellPadding="6" GridLines="None" AllowPaging="True" PageSize="20" AllowSorting="True" Width="450px">
              <Columns>
                <asp:TemplateField HeaderText="   Address" SortExpression="suburb, street">
                  <ItemTemplate>
                        <a style='cursor:pointer'  href='#'>
                     <%# Eval("unit_number") %> <%# Eval("level_number") %> <%# Eval("street_number") %> <%# Eval("street") %>
                     <%# Eval("suburb") %> <%# Eval("postcode") %></a>
                  </ItemTemplate>
                </asp:TemplateField>
              </Columns>
</asp:GridView>
</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)

有人知道我该如何向中心发送“地址”?我试图在GridView的CSS中设置text-align:“ center”,但是它似乎对我不起作用

另外...如果我想在左侧增加所有显示地址,有人知道我该怎么做吗?

.net c#

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

如何从asp中检索多个选定的值:checkbox .net c#

有谁知道如何从asp中检索多个选定的值:复选框.net c#?

示例:我是.net c#中的新用户,我有以下代码,但我不知道如何从.net c中检索多个选定的值#

<tr>   
    <th class="graytext r">Add Test:</th>
    <td>
        <asp:CheckBoxList ID="Test" runat="server" DataSourceID="dsTest" CssClass=""
            DataValueField="employeeid" DataTextField="fullname" 
            AppendDataBoundItems="false" >
            <asp:ListItem></asp:ListItem>
        </asp:CheckBoxList>  
        <asp:SqlDataSource ID="dsTest" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SmartStaffConnectionString %>"
            SelectCommand="app_dsTest_select" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
    </td>
</tr>  
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net webforms

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

DataValueField c#中的多个值.净

只是徘徊是可以在DataValueField c#中放入多个值.净?

例:

我有以下代码:

   <asp:DropDownList ID="ixTeam" CssClass="ixTeam" runat="server" DataSourceID="dsixTeam"
        DataValueField="TeamID" DataTextField="TeamName" AppendDataBoundItems="true">
Run Code Online (Sandbox Code Playgroud)

我可以将2个值(TeamID +"|"+ TeamTypeID)放入DataValueField吗?

.net c#

5
推荐指数
2
解决办法
9918
查看次数

标签 统计

.net ×4

c# ×4

sql-server ×3

t-sql ×3

php ×2

sql ×2

asp.net ×1

jquery ×1

soap ×1

time ×1

webforms ×1