Click here to Skip to main content
15,565,950 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have created a master page where you will have

Designed using tables
1)Left side: Latitude(Text Box)
Longitude(Text Box) And
Find(Button)
2)Right Side: Main Content(asp:contentplaceholder)
("Give Latitude and Longitude Values to show the google map of your destination here")

Problem raising:

When i input latitude and longitude values and clicking on Find Button, It is displaying map with that values in different page.
But, i want that values to be shown on the "main content" itself of the master page. I tried to navigate to the master page only. But getting same problem.

Guys, Please help me in this situation.
1)If possible, could you send me the correct code for this requirement?

2)If cannot be possible with Master Pages, What is the alternate?

I actually tried to design frames, But, as frames are not advisable(when i saw on discussion forums).

Awaiting for your reply guys.

Regards
Indu. :( :((
Posted
Updated 19-Jan-10 2:26am
v2

Couldn't get why you are facing an issue to show the values on the 'main content' of the master page itself!

Design your html in master such that you can show them in UI. Content page will have google-map.

At runtime code will always go though the master page, update the lable controls to the one you need to.

Looks like you are missing something. Please go through the Master Page concept:
Master Page details on MSDN[^]

If you still find issue, please post the code details.
 
Share this answer
 
frames will work as i have used those in my previous websites, but using master pages is more better way

i will update on it soon...
 
Share this answer
 
wrote:
When i input latitude and longitude values and clicking on Find Button, It is displaying map with that values in different page.
But, i want that values to be shown on the "main content" itself of the master page. I tried to navigate to the master page only. But getting same problem.


The map will appear where-ever you put it. What you're saying makes no sense. If you mean a whole new popup page opens, then the problem is with your code.

wrote:
2)If cannot be possible with Master Pages, What is the alternate?


Anything is possible with master pages

wrote:
I actually tried to design frames, But, as frames are not advisable(when i saw on discussion forums).


Frames can be useful. However, they add a layer to any code you want to write, and don't sound advisable in this instance. Just put your google map control where you want it to be, and hook up your code to it, and there's no reason for it not to work. Perhaps you need to edit your post ( NOT post an 'answer' that's not an answer at all ) to provide some samples of the code you're using, and a better description of what goes wrong.
 
Share this answer
 
@sandeep:

Ok, how to insert google maps in my master page(main content)?

Could you explain me in more precised manner pplease...

with code...for the above requirement..?

@indrajeet:

Waiting for your reply..

I mean, how can be possible with master pages?

I've gone through the MSDN Master pages, but not getting idea still...
guys please help me..

Regards,
Indu.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900