小编dav*_*ywc的帖子

表单发布通过Request.QueryString而不是Request.Form发送值

以下是标准HTML页面中的HTML摘录:

<form name="login_form" action="http://localhost/BOB.WebPortal/LoginForm.aspx" method="post>
        <div id="content_logins">

            <div id="spacer_ie" style="width:990px; height:7px; border:none; float:left"></div>
            <div style="width:255px; height:22px; border:none; float:left"></div>
            <div style="width:172px; border:none; float:left; vertical-align:bottom">
                    <input type="text" name="uname" id="uname" size="13" /></div>
                <div style="width:110px; border:none; float:left">
                    <input type="password" name="pword" id="pword" size="13" /></div>
                <div style="width:140px; height:22px; border:none; margin-top:-2px; float:left">
                    <!--input class="btbgfix" type="image" src="images/submit.png" alt="Submit" value="Login"-->
                <input name="submit" id="loginButton" class="btbgfix" type="image" src="images/submit.png" alt="Submit" value="Login"></div>
            <div style="width:320px; height:22px border:none; float:left">
                <img name="login" src="x.gif" id="alogin" usemap="#m_login" border="0" width="320" height="22" />
                <map name="m_login" id="m_login">
                    <area shape="rect" coords="0,0,681,22" href="https://www.aetmyportfolio.com.au" …
Run Code Online (Sandbox Code Playgroud)

html c# forms post

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

Aurelia绑定点击导航栏中的触发器

给出app.html的以下布局:

<template>
  <require from="nav-bar.html"></require>
  <require from="bootstrap/css/bootstrap.css"></require>

  <nav-bar router.bind="router"></nav-bar>
  <div id="sidebar"><h3>This is the sidebar.</h3></div>

  <div id="page-host" class="page-host">
    <router-view></router-view>
  </div>
</template>
Run Code Online (Sandbox Code Playgroud)

如何在nav-bar.html中绑定toggleSidebar函数(从app.js导出)?

<template bindable="router">
  <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="navbar-header">
      ....

      <a class="navbar-brand" href="#" click.trigger="toggleSidebar()">
        <i class="fa fa-bars"></i>
        <span>${router.title}</span>
      </a>
    </div>

    ....
  </nav>
</template>
Run Code Online (Sandbox Code Playgroud)

目前,当我点击toggleSidebar链接时出现以下错误:

"toggleSidebar不是一个函数".

javascript aurelia aurelia-binding

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

PHP重定向而不修改标题

我有一个PHP脚本,通过一些代码重定向用户,如:

header ('Location: http://someurl/somepage.php');

然后在somepage.php中我试图访问$_SERVER['HTTP_REFERER']以确定页面请求的来源.$_SERVER['HTTP_REFERER']当使用标头定位方法调用页面时,我发现它是空的.

是否有一种替代方法可以用来重定向用户,以便我仍然可以$_SERVER['HTTP_REFERER']在目标页面中使用.

php redirect location header

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

BingMapControl WP7 XAML数据绑定中心

我声明了以下XAML:

       <controls:PivotItem Header="map">
            <my:Map x:Name="map"
                    CredentialsProvider="Hidden"
                    Mode="Road"
                    Center="{Binding AppState.MapCenter}"
                    ZoomLevel="15">
                <my:Pushpin Location="{Binding AppState.MapCenter}" />                        
            </my:Map>
        </controls:PivotItem>
Run Code Online (Sandbox Code Playgroud)

绑定工作正常 - 除了地图不保持居中(最初它使用Center属性上的绑定正确居中).该应用程序允许用户浏览具有不同GeoCoordinates的一系列记录.当发生这种情况时,绑定的Pushpin会相应地移动,但最终会从地图移开,因为地图不会重新居中.如何使用数据绑定使地图重新居中?

data-binding xaml bing-maps windows-phone-7

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