I found an interesting way to use the iUI with ASP.net that works
perfectly.
I create an ASPX form and remove everything except the first line. Add
the html to the page and put <%= variableName %> where you want to put
content.
In the code behind, I do the work and set variableName to the content
including the generated HTML.
for example:
I am putting an list of RSS entries into the iui list.
My aspx page has nothing but
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="GetFeeds.aspx.cs" Inherits="GetFeeds" %>
<ul id="stories" title="Posts">
<%= storyList %>
</ul>
In my code behind I create the <LI> elements. The StoryId comes from
the link on the calling page.
XmlNodeList xnl = xe.SelectNodes("channel/item");
foreach (XmlElement rssItem in xnl)
{
RssItem ri = new RssItem(rssItem);
storyList += "<li><a href=\"Story.Aspx?storyId=" +
ri.Id + "\">" + ri.Title + "</a></li>";
}
Since iui is calling GetStories.aspx from javascript, it works
perfectly. The ASP.NET engine renders and does the work. I am actually
calling a web service to get the feeds. Right now it's synchronous but
I plan to go asynch .
Thanks Joe!
On Jul 21, 10:44 am, "Weston Weems" <[EMAIL PROTECTED]> wrote:
> yeah thats the conclusion I came to too... but ultimately, the way the pages
> and stuff are handled with js, I just opted to use AjaxPro, and populate
> pages on the fly. No server controls (eg, search page, results page,
> detailspage) and the searchpage will just first remove pages with an
> attribute I set ahead of time. Not ultimately how I would WANT things to
> work out, but probably far more efficient =)
> Weston
>
> On 7/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > The reason you're not seeing anything when you are developing with
> > ASP.NET is the way iUI uses CSS. I don't have it running completely,
> > but here's a sample of some CSS tweaks I've made:
>
> > body
> > , body > form
> > {
> > margin: 0;
> > font-family: Helvetica;
> > background: #FFFFFF;
> > color: #000000;
> > overflow: hidden;
> > -webkit-text-size-adjust: none;
> > }
>
> > body > h1
> > , body > form > h1
> > {
> > box-sizing: border-box;
> > margin: 0;
> > padding: 10px;
> > line-height: 20px;
> > font-size: 20px;
> > font-weight: bold;
> > text-align: center;
> > text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
> > text-overflow: ellipsis;
> > color: #FFFFFF;
> > background: url(iPhoneToolbar.png) #6d84a2 repeat-x;
> > border-bottom: 1px solid #2d3642;
> > }
>
> > What I've added to the CSS is the line that reads: , body > form
>
> > Like I said, I didn't get it fully working, but that's the issue
> > you're having with ASP.NET. I just decided to write my own master
> > page for my applications.
>
> > Good luck!
>
> > On Jul 16, 2:26 pm, "Weston Weems" <[EMAIL PROTECTED]> wrote:
> > > Ok,
> > > Does anyone actually build web apps in .net here or just php?
> > > I'd like something like IUI, but cant trouble shoot why its not
> > rendering
> > > ANY ui in anythign but ie. (I am sure IE is doing the rendering wrong)
> > but I
> > > just get a blank screen.
>
> > > Thanks in advance,
> > > Weston
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---