小编Giu*_*Giu的帖子

如何在ActionLink中包含书签/片段?

可能重复:
在asp.net mvc Html.ActionLink中包含锚标记

代码 : @Html.ActionLink("Link", "Action", "Controller", new { id = Id } )

目前我可以生成这样的链接:

HTTP:// mywebsite /控制器/动作/身份证

我想生成一个这样的链接:

HTTP:// mywebsite /控制器/动作/编号DIVID

但我无法编辑路线/创建另一条路线.

什么是最好的解决方案?

bookmarks actionlink razor asp.net-mvc-3

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

安装项目和设置向导之间有什么区别?

对于winform应用程序,我必须创建一个安装程序项目,这是我的选择:

在此输入图像描述

安装项目和安装向导之间有什么区别?

setup-project setup-wizard visual-studio-2013

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

Umbraco 404与不同的文化不起作用

我的问题实际上接近这个问题:根据文化,Umbraco V6 404没有得到妥善处理

我有2个不同文化的目录:

Content
       EN
          page1
          page2
          404
       FR
          page1
          404
Run Code Online (Sandbox Code Playgroud)

当我从FR页面转到404页面时,文化又回归英语.

看起来它是基于网址的,并且可能使用404引擎无法找到链接,因此它将文化设置为默认,但我希望在用户遇到404页面时保持这种文化.

我的配置:

    <error404>
        <errorPage culture="en-US">1187</errorPage>
        <errorPage culture="fr-FR">1189</errorPage>
    </error404>
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点 ?

我在域中使用一级路径.

网址示例:

  • 网站/ EN /第1页
  • 网站/ EN /第2页
  • 网站/ FR /第1页

我使用umbraco 7.2.5

c# multilingual umbraco http-status-code-404 umbraco7

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

Xamarin形成没有边框问题的按钮

我尝试在视图中呈现可点击项目列表.我想添加一个带图像和白色边框的按钮(第一个).我发现StackLayout/ViewCell中的按钮无法呈现边框.

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage 
xmlns="http://xamarin.com/schemas/2014/forms" 
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
x:Class="*.PlacesPage"
Title="TEST">
<ContentPage.Padding>
    <OnPlatform x:TypeArguments="Thickness" iOS="0, 20, 0, 0" />
</ContentPage.Padding>
<ContentPage.Content>
    <Grid>
        <ListView x:Name="lvPlaces" ItemsSource="{Binding Places}" SeparatorColor="Gray" SeparatorVisibility="Default" RowHeight="120" >
            <ListView.ItemTemplate>
              <DataTemplate>
                  <ViewCell>
                    <ViewCell.View>
                        <StackLayout Orientation="Horizontal">
                            <Button HorizontalOptions="Center" VerticalOptions="Center" BorderWidth="3" BorderColor="White" Text="IMG"></Button>
                            <Button Text="{Binding Name}" BorderWidth="0" FontSize="20" BackgroundColor="Transparent" Clicked="OnButtonClickedPlace"></Button>
                        </StackLayout>
                    </ViewCell.View>
                  </ViewCell>
              </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</ContentPage.Content>
Run Code Online (Sandbox Code Playgroud)

xaml xamarin xamarin.forms

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