New issue 324 by francesc...@gmail.com: Can't use ASP.NET forms and buttons
http://code.google.com/p/iui/issues/detail?id=324
What steps will reproduce the problem?
1. By using ASP.NET, create a form with two fields and a button
2. The button should have a page referenced in the PostBackUrl
3. Clicking on the button gets us to a #_1___ div, which does not exist
What is the expected output? What do you see instead?
I expect the page to perform the usual operation, which is go to the page
the button is supposed to load (or perform a server operation)
What version of the product are you using? On what operating system?
I'm using the js referenced in this demo
(http://www.iui-js.org/documentation/0.50/getting-started/example-form1.html#_screen1),
since it's the only one with a proper resizeable panel.
This is my code:
<body>
<!-- TOOLBAR -->
<div class="toolbar">
<h1 id="pageTitle">Mobile</h1>
<a id="backButton" class="button" href="#"></a>
</div>
<!-- FORM -->
<form ID="login" title="Login" name="formLogin" runat="server"
class="panel" selected="true" method="get">
<fieldset>
<div class="row">
<label>User</label>
<input type="text" name="txtUser" placeholder="Nome
utente">
</div>
<div class="row">
<label>Password</label>
<input type="password" name="txtPsw"
placeholder="Password">
</div>
</fieldset>
<asp:Button ID="btnLogin" runat="server"
PostBackUrl="~/Page.aspx" CssClass="whiteButton">Log in</asp:LinkButton>
</form>
</body>
Can you please provide an example of the issue that doesn't use the
<asp:Button> tag? (i.e. Do a view source in your page and create a static
HTML example that illustrates the problem.)
This is the original ASP.NET source: http://pastebin.com/BTFbd0ga
And this is the compiled web page: http://pastebin.com/hqQFqXF5
Thank you!
I just found out that if I delete the toolbar, everything works fine. Why
is that?
If you're looking for support, please use the iPhoneWebDev Google Group.
It's really the best way to get help -- Posting a link to a live demo is
very helpful when posting there, too.
I can't debug your app for you here. If you can provide a reproducible
test case that is ideally server-side independent -- that is, in a static
HTML file using an unmodified iui.css and iui.js -- that is the best way to
report a bug.
Thank you. I just subscribed to the group ;)