标签: .refresh

Visual Studio 2008 - 添加引用

添加DLL作为ASP.Net项目的引用时,VS2008会将多个文件添加到bin目录中.如果DLL被称为foo.dll,VS2008会添加foo.dll.refresh,foo.pdb和foo.xml.我知道foo.dll是什么:-),为什么VS2008会添加其他三个文件?这三个文件做了什么?我可以删除它们吗?是否需要在源代码管理中添加它们?

version-control intellisense .refresh visual-studio-2008 pdb-files

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

如何在没有visual studio的情况下刷新ASP.NET应用程序中的引用?

我有一个ASP.NET应用程序,它依赖于不在GAC中的外部程序集.该应用程序有一个.refresh文件,在编译应用程序时将程序集复制到bin目录中.

当我在生产服务器上安装应用程序时(通过将应用程序文件复制到虚拟目录中),bin目录不会像我想象的那样通过.refresh文件的存在自动更新.我尝试使用aspnet_compiler工具,但这不起作用,因为它希望程序集已经在bin目录中.

如何在没有visual studio的情况下让.NET更新应用程序的bin目录?

asp.net deployment .refresh

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

C#Panel.Refresh()不调用paint方法

我试图调用panel1 paint方法用橙色线重新绘制面板(它用蓝线启动).

我已经尝试过invalidate(),update()和refresh(),但似乎没有任何东西可以调用panel1的paint事件......

paint事件处理程序已添加到panel1:

this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

static class Program
{
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);

        Form1 testForm = new Form1();
        Application.Run(testForm);

        testForm.drawNewLine();
    }
}
Run Code Online (Sandbox Code Playgroud)
public partial class Form1 : Form
{
    bool blueLine = true;
    bool orangeLine = false;

    public Form1()
    {
        InitializeComponent();
    }

    private void panel1_Paint(object sender, PaintEventArgs e)
    {
        Graphics g = e.Graphics;

        if (blueLine == true)
        {
            Pen bluePen …
Run Code Online (Sandbox Code Playgroud)

c# panel .refresh repaint

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

表格列中的Primefaces删除和确认对话框 - 更新或冻结问题

我有一个类似的问题:Primefaces:confirmDialog中的commandButton无法以相同的形式更新数据表

我有一个游戏桌.在最后一列中有2个按钮:删除和详细信息.

删除按钮应该删除游戏

该按钮确实删除了游戏,但更新不起作用.

  • update =":form1:overviewTableGame" - >没有反应(没有刷新)

  • update ="@ form" - >更新performes(表刷新),但整个scren被锁定.我认为由于这个事实,包含对话框的表单已更新...

表格代码:

<h:form id="form1">
        <p:messages id="messages" showDetail="true" autoUpdate="true"
            closable="true" />

        <p:dataTable id="overviewTableGame" var="game" value="#{gameMB.list}">
            <p:column headerText="#{msg.ID}" sortBy="#{game.id}">
                <h:outputText value="#{game.id}" />
            </p:column>

            <p:column headerText="#{msg.NAME}" sortBy="#{game.name}">
                <h:outputText value="#{game.name}" />
            </p:column>

            <p:column headerText="#{msg.DESCRIPTION}"
                sortBy="#{game.description}">
                <h:outputText value="#{game.description}" />
            </p:column>

            <p:column headerText="#{msg.ADMIN}" sortBy="#{game.admin.firstname}">
                <h:outputText value="#{game.admin.firstname}" />
            </p:column>

            <p:column headerText="#{msg.ACTION}">
                <p:commandButton id="commandButtonDELETE" value="löschen"
                    onclick="confirmation.show()" type="button"
                    update=":form1:display">
                    <f:setPropertyActionListener value="#{game}"
                        target="#{gameMB.selectedGame}" />
                </p:commandButton>

                <p:commandButton id="commandButtonDETAIL" value="detail"
                    action="#{gameMB.details()}">
                    <f:param name="id" value="#{game.id}" />
                </p:commandButton>
            </p:column>
        </p:dataTable>

        <p:confirmDialog …
Run Code Online (Sandbox Code Playgroud)

datatable .refresh primefaces

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