小编Ema*_*een的帖子

适用于带有SQL Server 2012 Business Intelligence的Visual Studio 2010的安装顺序

我有一个Windows 7 64位(Ultimate)虚拟机,并希望安装以下内容:

Visual Studio 2010 (Ultimate)
SQL Server 2012 Business Intelligence (with SSIS and SSRS)
Run Code Online (Sandbox Code Playgroud)

但我不确定是否有正确的顺序来安装这些项目,以免发生冲突.我很担心因为我知道VS2010安装了SQL Server 2008 express.如果我先做SQL Server 2012,我希望它不会过度使用2008版本编写我的SQL Server安装.

如果已安装较新版本,VS2010是否会跳过安装SQL Server 2008?

更新:

我按照Justin的说明安装了文件.
VS2010安装程序检测到SQL Server 2012的安装和安装没​​有任何问题.
当我运行VS2010时,它告诉我需要安装VS2010 SP1,因为已经安装了较新的SQL Server 2012文件.
我安装了SP1并再次运行VS2010,所有内容都已加载并运行良好.
我还加载了SQL Server Management Studio,并且仍然可以连接到SQL Server 2012而没有任何问题.

sql-server installation conflict virtual-machine visual-studio-2010

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

是否有将纬度和经度更改为单个数字的公式?

你能否告诉我是否有一个公式可以将纬度和经度改为一个数字?

我计划将此用于软件中的数据库表,该软件提供交付路由.表格行将包含该号码以及邮政地址.数据库表将按升序排序,因此软件可以确定卡车需要前往哪个地址,第二个等等.

请您回复显示VB或VB.Net语法,以便了解它是如何工作的?

例如,我将使用以下数字作为纬度和经度:Lat = 40.71412890 Long = -73.96140740

附加信息:

我正在使用Basic4Android开发Android应用程序.Basic4Android使用VB或VB.Net语法和SQLite作为数据库.

此应用程序的一部分将具有路线规划.我想将此数字用作SQLite表中的第一列,其他列将用于该地址.如果我在应用程序中进行查询,按数字升序对行进行排序,我将能够确定哪个邮政地址彼此最接近,这样我就可以花更少的时间去挨家挨户.

例如,如果数字是:194580,199300,178221

我可以去邮政地址178221,然后到194580,最后到199300,在分拣后,我不需要花很长时间去城里做我的分娩.

作为一种替代方案,如果有一种简单的方法可以调用Web服务,如果我向网站发送邮件地址,则可能会返回具有单个号码的json响应,我会很高兴.Basic4Android确实有可以向网站发送请求的http服务.

vb.net latitude-longitude

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

在IIS7上设置虚拟目录

我正在设置我们的服务器,以便我们可以在其上安装ASP.Net Web应用程序.

我右键单击IIS7管理器中的站点并选择添加虚拟目录,然后单击"测试设置"按钮,显示以下消息:

The server is configured to use pass-through authentication with a built-in 
account to access the specified physical path. However, IIS Manager cannot 
verify whether the built-in account has access. Make sure that the application 
pool identity has Read access to the physical path. If this server is joined to 
a domain, and the application pool identity is NetworkService or LocalSystem, 
verify that <domain>\<computer_name>$ has Read access to the physical path. 
Then test these settings again.
Run Code Online (Sandbox Code Playgroud)

该消息并没有告诉我们如何做这些事情.

我正在设置的服务器上安装了Windows7 …

asp.net configuration iis-7 path virtual-directory

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

将ASP.Net System.Net.Mail设置移动到Web.config

我们使用此编码从ASP.Net代码隐藏的Vb.Net文件发送电子邮件.

可以将任何此编码放在Web.config文件中吗?

Protected Sub EmailStudentList()

    ' Get the rendered HTML.
    '-----------------------
    Dim SB As New StringBuilder()
    Dim SW As New StringWriter(SB)
    Dim htmlTW As New HtmlTextWriter(SW)

    GridViewSummary.RenderControl(htmlTW)

    ' Get the HTML into a string.
    ' This will be used in the body of the email report.
    '---------------------------------------------------
    Dim dataGridHTML As String = SB.ToString()

    Dim SmtpServer As New SmtpClient()
    SmtpServer.Credentials = New Net.NetworkCredential("ourEmailUsername@gmail.com", "ourPassword")
    SmtpServer.Port = 587
    SmtpServer.Host = "smtp.gmail.com"
    SmtpServer.EnableSsl = True

    ObjMailMessage = New MailMessage()

    Try
        ObjMailMessage.From = New …
Run Code Online (Sandbox Code Playgroud)

vb.net asp.net email settings web-config

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

在 ASP.Net TreeView 中设置图像的大小

如何在 ASP.Net TreeView 中设置图像的大小?

我们尝试像这样设置尺寸,但图像以全尺寸显示:

<asp:TreeView 
    runat="server"
    DataSourceID="KnowledgeAcademySiteMap">

    <RootNodeStyle ImageUrl="/Images/book.png" Height="32px" Width="32px" />
    <ParentNodeStyle ImageUrl="/Images/book.png" Height="32px" Width="32px" />
    <LeafNodeStyle ImageUrl="/Images/book.png" Height="32px" Width="32px" />
</asp:TreeView>
Run Code Online (Sandbox Code Playgroud)

asp.net size treeview image-resizing

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

Android编程 - 如何从广播接收器播放SoundPool声音?

我对Android开发很陌生,想知道如何在广播接收器中播放SoundPool声音?

我在某处读到使用SoundPool是播放声音的方式,但我不知道如何正确设置它.

我的Eclipse res\raw文件夹中有一些声音文件,如wave和mp3文件.我想播放一个名为half.wav的文件

你能展示我需要放入我的广播接收器的示例代码吗?

这是对代码的第一次尝试,但我得到一个错误,声明soundID = soundPool.load(this,R.raw.half,1);

"类型SoundPool中的方法加载(Context,Int,Int)不适用......"

这是该类的代码:

package ChimeMe.BigBen;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
import android.os.Bundle;

import android.media.AudioManager;
import android.media.SoundPool;
import android.media.SoundPool.OnLoadCompleteListener;

public class AlarmReceiver extends BroadcastReceiver {

private SoundPool soundPool;
private int soundID;
boolean loaded = false;

@Override
public void onReceive(Context context, Intent intent) {

    try {

        // Load the sound
        soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
        soundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
            @Override
            public void onLoadComplete(SoundPool soundPool, int sampleId,
                    int status) {
                loaded = true; …
Run Code Online (Sandbox Code Playgroud)

android broadcastreceiver

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

用户关闭应用程序时禁用所有表单上的验证

当用户单击"X"图标以关闭应用程序或用户单击关闭应用程序的应用程序中的按钮时,是否有一种简单的方法可以禁用所有表单验证?

我发现了这个,但它在C#中.你能把它转换成VB.Net编码吗?

http://geekswithblogs.net/dapostolov/archive/2009/06/14/the-validating-event-can-prevent-a-form-closing-properly.aspx

vb.net validation winforms

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

在Page_Load子例程中使用.IsPostBack

它是一个"最佳实践",总是在Web示例的Page_Load子例程中使用.IsPostBack,就像在这个示例编码中一样?

我希望可以提出这个问题.如果没有,我会立即删除这个问题.

基本上我想编码你大多数编码的方式.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    If Not Page.IsPostBack Then

        ' More coding will go here.
        '--------------------------
    End If
Run Code Online (Sandbox Code Playgroud)

请给出它的用法的利弊.

vb.net asp.net ispostback

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

使用DataSet设计器创建的DataSet中的DataSet数据填充ASP.Net下拉列表

我们有一个ASP.Net/VB.Net Web表单,其中包含aspx文件标记中的下拉列表.还有一个使用DataSet设计器创建的DataSet.

我们希望使用DataSet中的数据填充下拉列表.

你能给我看一些使用DataSet数据填充下拉列表所需的样本标记和/或VB.Net编码吗?

asp.net html-select dataset strongly-typed-dataset populate

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

"尚未指定报告'xxx'的报告定义."

我正在使用ASP.Net网络表单首次尝试SSRS.

我创建了一个本地RDLC报告,并在"默认"Web表单中使用了ReportViewer.在智能标签下,我选择了"选择报告"并选择了RDLC报告.

当我按f5运行报告时,即使我从智能标记中选择了报告,也会显示以下错误.

"The report definition for report 'xxx' has not been specified."
Run Code Online (Sandbox Code Playgroud)

请让我知道为什么这不能按预期工作.

谢谢.

报告编码:

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
<section class="featured">
    <div class="content-wrapper">
        <hgroup class="title">
            <h1><%: Title %>.</h1>
            <h2>Modify this template to jump-start your ASP.NET application.</h2>
        </hgroup>
        <p>
            To learn more about ASP.NET, visit <a href="http://asp.net" title="ASP.NET Website">http://asp.net</a>.
            The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET.
            If you have any questions about ASP.NET visit <a href="http://forums.asp.net/18.aspx" title="ASP.NET Forum">our forums</a>.
        </p>
    </div>
</section> …
Run Code Online (Sandbox Code Playgroud)

asp.net webforms visual-studio reporting-services

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