PDA

View Full Version : Problem running app from asp.net web page



andla71
10-15-2017, 01:20 PM
Hi everyone,
I'm helping a company with developing a bank signing process called BankID.
Everything is browser based.
I generate javascript code for click event with C# in asp.net.


public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("onclick", "openBankID()");
}


This will generate onclick in html/javascript button:


<input type="submit" name="Button1" value="Skicka" onclick="openBankID();" id="Button1" />

The app is simply called in a javascript function



<script>

function openBankID() {

window.location.href = "bankid:///?redirect=null";

}

</script>

</head>


I have problem making the application start on a mobile device. It works however in Windows 10.
I have further issues but if I can make this work it would be awesome.
Appreciate your help on this.