.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 18th, 2013, 05:30 PM
cecilia_2004 cecilia_2004 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 305 cecilia_2004 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 Days 18 h 57 m 35 sec
Reputation Power: 0
Set & Get problem

Hi Everyone,

How can I make the code inside the "GetData()" function work ?

Thanks,

May

public class LinkInfo
{
public string ProductUrl { get; set; }
public string ProductName { get; set; }
}
public static class PopulateRepeater
{
static List<LinkInfo> objList;
public static IEnumerable<LinkInfo> GetData()
{
LinkInfo.ProductUrl = "www.yahoo.com";
LinkInfo.ProductName = "yahoo";
objList.Add(LinkInfo);

LinkInfo.ProductUrl = "www.hotmail.com";
LinkInfo.ProductName = "hotmail";
objList.Add(LinkInfo);

LinkInfo.ProductUrl = "www.dell.ca";
LinkInfo.ProductName = "dell inc.";
objList.Add(LinkInfo);

//code to fetch link info drom database here
return objList;
}
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Set & Get problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap