473,609 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Virtual Earth and Paging Question

3 New Member
Hello,

I am trying to do paging and Virtual Earth on the same page. I want to have the ten results on each page mapped with Virtual Earth. I can't figure out how to go through the results a second time so I can add them to the Virtual earth map. Is their a way to iterate through the paged datasource twice so I can map my locations as well. Right now I am doing my paging like this in C#:

void doPaging()
{
pagedData.DataS ource = getTheData().De faultView;
pagedData.Allow Paging = true;
pagedData.PageS ize = 10;

try
{
pagedData.Curre ntPageIndex = Int32.Parse(Req uest["Page"].ToString());
}
catch (Exception ex)
{
pagedData.Curre ntPageIndex = 0;
}

theDataList.Dat aSource = pagedData;
theDataList.Dat aBind();

// Current Page Number
pageNumber.Text = ((pagedData.Cur rentPageIndex) + (1)).ToString() ;
}
Mar 11 '08 #1
0 876

Sign in to post your reply or Sign up for a free account.

Similar topics

28
5197
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass(); .... and then call the virtual method, why is it that the base class's method is called instead of the overridden method? How do I fix this if I don't know at runtime what the child class is? I'm using Activator.CreateInstance() to load the...
2
1292
by: VMI | last post by:
I know there's a virtual listview if you need to display 50,000 records in the screen. But can this be applied to a windows datagrid? Thanks.
16
3739
by: plmanikandan | last post by:
Hi, I have doubts reg virtual constructor what is virtual constructor? Is c++ supports virtual constructor? Can anybody explain me about virtual constructor? Regards, Mani
0
1299
by: vinodkvee | last post by:
I have embedded virtual earth map in my webpage. I have written a code to plot continous lines(called polylines) by using a loop in JavaScript the code doesn't plot continous lines here is the jscript function i have written function GetMap() { var lat1 = 13.05386; //starting latitude
4
1626
by: John Morgan | last post by:
I have been looking at the Microsoft Virtual Earth SDK. As far as I can see I have to incorporate it in a web page using a control based on Javascript through web services It being a Microsoft control I assume that I can access it directly from asp.net. I am thinking it will be easier to incorporate it if I can use asp.net. I would be grateful if someone could advise me on this,
1
2572
by: =?Utf-8?B?Tmlrb2xheSBQb2Rrb2x6aW4=?= | last post by:
Good noon, community! Please help me solve my problem. I need use Microsoft(r) Virtual Earth in the my application. How can i do it? Thanks in advance!
2
2153
by: clintonG | last post by:
While using this website which loads all three for comparison: http://www.rockstarapps.com/samples/map-compare/ I realized how terrible Virtual Earth imagery is. Microsoft is using Navteq while Google and Yahoo are using Tele Atlas. I ran two separate queries in two different counties in Wisconsin. Would --you-- say my observations are fair?
1
1142
by: Ken Fine | last post by:
Hi, hoping someone can help out with what's a simple question. I am using the ASP.NET VE map control here on a site, which I am still developing. I'm putting picture icons on a map: http://kenfine.posterous.com/uw-map-overhead I am using the ASP.NET VE server control in 3d mode, as you see. I can specify an overhead view that is accurate using the following declaration.
12
2991
by: David Given | last post by:
I have a situation where I need to be able to allocate chunks on unmapped virtual memory. Because the memory I'm allocating isn't mapped, I can't use a normal memory allocator, as most of them want to store their metadata about the free list in the unused holes in the heap. Instead, I need a memory allocator that stores its metadata out-of-line (perversely enough, a simple malloc() heap would be fine for that). Does anyone know of...
0
8076
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
8573
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7002
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
5510
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
4021
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
4085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2531
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
1
1672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.