473,729 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mobile "Repeater"

Hi. I'm trying to figure out how you do the most basic Data-Bound "Repeater"
functionality on a Mobile ASPX page. I don't mean a list box, because it will
have repeated HTML and User Controls in each Row. How do I do this, please?

Thanks!

Alex
Aug 6 '07 #1
1 2008
Hi Alex,

For standard web page's "Repeater" like functionality, in ASP.NET Mobile
application, there are two common approaches:

1) you can have a look at the "ObjectList " control, this is the template
databound control in ASP.NET Mobile's standard control collection:

#Introduction to the ObjectList Control
http://msdn2.microsoft.com/en-us/library/d7hb3s0f.aspx

#Using Data Binding with ASP.NET Mobile Controls
http://msdn2.microsoft.com/en-us/library/8yc44h4d.aspx
2) As we've discussed in some previous methods. Using DeviceSpecific
template is always an options for those HTML/XHTML suppoted device, and you
can define and use standard ASP.NET controls(datali st or repeater) in those
specific template:

#Template Sets and Templated Controls
http://msdn2.microsoft.com/en-us/library/39dfzhdc.aspx

#How to: Create and Edit Templates
http://msdn2.microsoft.com/en-us/library/6c1x9zwd.aspx

#Customizing ASP.NET Mobile Web Controls for Specific Devices
http://msdn2.microsoft.com/en-us/library/0ffa7b0h.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.




Aug 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1060
by: Szomraky Stefan | last post by:
Hi! Is it possible to let the repeater control show the AlternatingItemTemplate only every 15 (or any arbitratry number) times? I need to display something like this:
2
2083
by: Mike Lerch | last post by:
I have data like this: Album Song Led Zeppelin I Good Times Bad Times Led Zeppelin I Babe I'm Gonna Leave You Led Zeppelin I You Shook Me Led Zeppelin I Dazed and Confused Led Zeppelin II Whole Lotta Love Led Zeppelin II The Lemon Song Led Zeppelin II Heartbreaker
1
4244
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall) LoadControl("ViewSmall.ascx");
6
2617
by: Alan Silver | last post by:
Hello, I am data binding a repeater that has a checkbox in the ItemTemplate. The data value coming out of the database is a char(1) field containing either "y" or "n". I want to use this value to set/unset the checkbox. I tried the following in the ItemTemplate... <asp:CheckBox ID="chkShowNpVar" Text="" Checked='<%(DataBinder.Eval(Container.DataItem, "showVar")=="y" ? true :
3
1265
by: Coldman | last post by:
which was saying this: "i have an asp:repeater - its values r initialezed w/ a .DataBind() call does it mean any changes user makes on the page will automaticly go to the database? quite unlikely how do u actually send the values to the db - any repeater specific article is more than welcome"
1
5721
by: Kim | last post by:
How can I display "No data found" in the repeater if there are no records found after selecting an item from a dropdown list. Another question is: Can repeater perform paging as in datagrid if the number of records to be displayed in too long ? I am using a repeater instead of datagrid as the latter does not allow me to have one data-bound column with hyperlink.
2
5474
by: GD | last post by:
I have an ImageButton in a Repeater, and in the Repeater's OnItemDataBound event, I'd like to add some code that will let the ImageButton open a URL in a new window. This is what I have in my Repeater's OnItemDataBound event: ImageButton oImageButton = ((ImageButton)e.Item.FindControl("ibtnNewWindow")); string sUrl = "http://www.cnn.com"; // Just as an example string sWindow = string.Concat(@"javascript:window.open(',", sUrl, "',
2
2146
by: Ranginald | last post by:
Hi, I have two pages. Default.aspx ....Codefile="default.aspx.cs" Inherits="Web" %> and Sculpture.aspx
0
858
by: bryanp10 | last post by:
So here's a strange one... I've got an ASP.NET page with the following object in it: <asp:Repeater ID="rptTest" runat=server> <ItemTemplate>blah blah <asp:Repater ID="rptNested" runat=server></asp:Repeater> </ItemTemplate> </asp:Repater>
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.