Uhh... any .net developers here?

11 views
Skip to first unread message

Weston Weems

unread,
Jul 16, 2007, 5:26:24 PM7/16/07
to iPhoneWebDev
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

Michael Geary

unread,
Jul 16, 2007, 5:46:09 PM7/16/07
to iphone...@googlegroups.com
Browsers don't render .NET, .php, .rhtml, or anything like that. All they know about is the resulting HTML code that they actually receive.
 
So, if you have a problem with a page not being displayed in certain browsers, the place to look is in the generated HTML code, not the server side code. One nice thing about this is that anybody can look at your page and help you out, regardless of the server side language they are familiar with.
 
So don't worry about what language you are using, just post a URL and see if anybody can help you out.
 
-Mike


From: Weston Weems

Weston Weems

unread,
Jul 16, 2007, 5:51:39 PM7/16/07
to iphone...@googlegroups.com
Yes, I know how web architectures work.

I spent hours debugging IUI trying to figure out why the introduction of a runat=server form tag compeltely breaks IUI, and with no pointers or even clue as to why (the modifications to dom etc, I've spent hours and hours tryign to engineer around it, ultimately coming to the conclusion I wont come to a conclusion on it, on my own) I was curious if anyone else was running .net apps, because of the introduction of how asp.net forms have to work.

eg, if you've got an asp.net webform up and rendering (looking like a native iphone app, or like iui for all intents and purposes, I'd like pointers)

Anyway I appreciate the fact that you actually replied, but yes, the fact that it is .net, actually is relevant in this case =)

Weston

Michael Geary

unread,
Jul 16, 2007, 6:43:38 PM7/16/07
to iphone...@googlegroups.com
I didn't mean to offend by stating something so obvious. Sometimes I've gotten stuck tracking down a bug and lost sight of some other approach I could take. I should have prefixed my comment with "I'm sure you already know this, but here's a reminder just in case it helps trigger another way to look at the problem..."
 
iUI does make certain assumptions about the page structure, so if the runat=server form breaks those assumptions it would cause problems.
 
You may still want to post a link to a test page - even someone who isn't familiar with .asp may be able to help out with an idea of why it's causing a problem. In particular, if you have a working version without the form runat="server" tag, I'd post both and see if that helps point out the problem.

DaveFD

unread,
Jul 16, 2007, 7:09:22 PM7/16/07
to iPhoneWebDev
Remember, iUI is a JavaScript library. I seem to recall needing to
really jump through hoops to inject JavaScript properly using ASP.NET
way back when. It's been a few years though, so I could be wrong.

Quick question - if you use Safari3 in anything but an iPhone, do you
get anything? If you get a blank page, what does the source look like?
I'd be more than happy to check things out tomorrow if you post a URL.

Regards!

Mobivity

unread,
Jul 16, 2007, 7:25:20 PM7/16/07
to iPhoneWebDev
Weston,

I am developing apps in .NET for the iPhone. I am using the ASP.NET
ajax controls. Unfortunately .NET adds a lot of extra code to the web
page which EDGE doesn't love. Once complete, I will turn off view
state and make other changes.to try and minimize the code.

Because of the FORM tags in .NET, there are issues we have to deal
with.

What I am doing is sort of building my own framework. I have a single
web page and .NET user controls that I dynamically load using the AJAX
UpdatePanel.

It looks like a native iPhone app just as much as the Javascript only
apps. The AJAX library also has the ability to do http calls without
the server postback as well, which I am not using.

Greg

Weston Weems

unread,
Jul 16, 2007, 8:06:37 PM7/16/07
to iphone...@googlegroups.com
Greg, 

 
Does your app appear to scroll to one panel or another? or just one disappears, new one shows?

I have extensive knowledge of how js gets rendered, or how it needs to be with the script managers etc. I just dont understand whats happening behind the scenes with IUI.

I am 100% confident IUI could be made to work in either scenario with little overhead, etc.

Also, I am very familiar with optimization of pages with gz compression and no viewstate, or custom viewstate providers etc. Mainly just making what I've already got going appear fluid, and look like native app =) I guess ultimately all I need is slideToID or something along those lines.


Thanks in advance.

Weston Weems

unread,
Jul 16, 2007, 8:07:38 PM7/16/07
to iphone...@googlegroups.com
btw, thanks for the patience =) I wasnt offended and I didnt mean to come off as an ass... IUI is beautiful, and frustrated that I can use it like I'd expect to be able to with .net =)


Thanks again.

Mobivity

unread,
Jul 16, 2007, 8:19:21 PM7/16/07
to iPhoneWebDev
I have not attempted the slide yet. For now they just appear. When the
app is working I will start playing with the effects and CSS tweaks..
Otherwise you can spend days trying to figure it out and get nothing
done.

otto...@gmail.com

unread,
Jul 21, 2007, 3:22:40 AM7/21/07
to iPhoneWebDev
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!

Weston Weems

unread,
Jul 21, 2007, 10:44:16 AM7/21/07
to iphone...@googlegroups.com
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

Mobivity

unread,
Jul 27, 2007, 12:17:40 PM7/27/07
to iPhoneWebDev
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" <wwe...@gmail.com> 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
>

Reply all
Reply to author
Forward
0 new messages