My favorites | Sign in
iui
Project Home Downloads Wiki Issues Source
Search
for
iUIWithASPNet  
iUI and ASP.NET Integration
Updated Oct 3, 2011 by msgilli...@gmail.com

Introduction

iUI is independent of the server side and can (in theory) be used with any sever-side framework. This page contains information about integrating iUI with ASP.NET. (For now it is a collection of useful links.)

Links

Comment by pjlat...@gmail.com, Jan 10, 2010

I used the WriteSubstitution? command, works fine. <%Response.WriteSubstitution?(AddressOf? myClass.GetHTMLCode)%>

Regards, PL

Comment by char...@cableorganizer.com, Jan 15, 2010

Just to let you know that I've integrated iUI in a new ASP .NET project (C#) without any issues, like with any other server side language (PHP for example). :-)

Comment by rakesh...@gmail.com, Jan 27, 2010

It works with ASP.net without any issues. You can either use a web service or aspx directly to make server side calls.

Comment by tap52...@gmail.com, Apr 25, 2010

Can someone provide a sample iui project for visual studio 2008 and asp.net (vb.net)?

Comment by ptsrini...@gmail.com, May 22, 2010

can some provide calender control for iui

Comment by mailaend...@gmail.com, Jul 18, 2010

I have some issues using ASP.NET with iUI. It seems because of the "form" that must be in every aspx site, the slide effect doesn't show up.

Comment by project member msgilli...@gmail.com, Jul 19, 2010

The wiki is not a place to get support. Please ask your questions in the iPhoneWebDev Google group. You're likely to get an answer there...

Comment by nhru...@gmail.com, Aug 2, 2010

i have gotten around the issue of the server side form to create a iUI menu based on the ASP.NET SiteMap? by:

  1. moving the end form tag directly below the <form runat='server'> tag
  2. placing an asp:placeHolder control BELOW the the closing form
(NOTE: you can dynamically add controls to the placeholder and the HTML will be rendered OUTSIDE of the form tag)
  1. creating a recursive method (AddRepeater?) which adds repeater controls for each node (if it has child nodes) in the web.sitemap (or whatever sitemap provider you use)
  2. calling AddRepeater?(SiteMap?.RootNode?.ChildNodes??) in Page_Load??
TIP: use user controls for your HeaderTemplate?, ItemTemplate?, and FooterTemplates? and format each repeater as a UL with LI children with the required attributes to work with iui

Private Sub AddRepeater(ByVal datasource As IEnumerable)
        Dim rpt As New Repeater
        rpt.EnableViewState = False
        rpt.HeaderTemplate = LoadTemplate("~/Controls/iPhoneMenuHeaderTemplate.ascx")
        rpt.ItemTemplate = LoadTemplate("~/Controls/iPhoneMenuItemTemplate.ascx")
        rpt.FooterTemplate = LoadTemplate("~/Controls/iPhoneMenuFooterTemplate.ascx")

        'add itemDataBound handler
        AddHandler rpt.ItemDataBound, AddressOf DynamicRepeater_ItemDataBound

        'load and display
        rpt.DataSource = datasource
        PlaceHolder1.Controls.Add(rpt)
        rpt.DataBind()

        'add repeaters for any child nodes
        Dim smnc As SiteMapNodeCollection = CType(datasource, SiteMapNodeCollection)
        For Each n As SiteMapNode In smnc
            If n.HasChildNodes Then
                Me.AddRepeater(n.ChildNodes)
            End If
        Next

    End Sub
Comment by harwood....@gmail.com, Jun 3, 2011

Hi all, I have been using IUI with mvc and razor for the last couple of weeks and i would like to know if anyone has managed to get a load on demand section working like: http://demo.iui-js.org/samples/digg/index.html#_home

I would be gratefull if anyone can help me accomplish this. So far i have populated a html table using a for each loop which displays all products or as many as i decide using linq take x but cant think of a way to have a button/ link stating get next x (10 or so) and then do so.

Any suggestions/ help be grateful

Comment by project member msgilli...@gmail.com, Jun 3, 2011

Try asking on the iPhoneWebDev Google Group: http://groups.google.com/group/iphonewebdev

Comment by harwood....@gmail.com, Jun 29, 2011

Hi all,

I am having the same problem as this thread now: http://groups.google.com/group/iphonewebdev/browse_thread/thread/f460...

After login i want to show them the toolbar with their extra items etc but i cant even do a full post back without the iui js jumping in and loading it in the main toolbar as 99% of the time you want to happen. I am sure there must be away to refresh the toolbar as the thread i attached above shows but why is something easy not integrated into the iui code ie a link to the main page with refresh content etc or simiiar that overides all else.

Thanks in advance.

I did post this here: http://groups.google.com/group/iphonewebdev/browse_thread/thread/427c8a65d29a63f but i did not manage to find a solution.


Sign in to add a comment
Powered by Google Project Hosting