|
finally, I sort of got it working, although I don't think it is the best practice. my next question is i want to create a button, when click the button, it passes the address and opens up a new page with google map ONLY and its controls. this is for user to have full control over the map. Can someone please show me how to achieve this?
<script type="text/javascript" language="javascript">
var geocoder;
var map;
var place;
function load()
{
var address = document.getElementById("<%=lblmap.ClientID%>").innerHTML;
map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
geocoder = new GClientGeocoder();
geocoder.getLocations(address, addToMap);
}
function addToMap(response)
{
if (response.Placemark != null)
{
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
map.setCenter(point,16);
marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(place.address);
}
else
{
alert("Sorry, map not available");
}
}
</script>
|
|
|
|
|
Also you place
var element = document.getElementById("map");
if(element)
map=new GMap2(element);
Instead of
Member 4683620 wrote: map = new GMap2(document.getElementById("map"));
|
|
|
|
|
Eg.There are Company Menu ( include Office Personnel menu sub menu, Personnel sub Menu ) and System Administration Menu (include Security Setup Sub Menu and Data Access sub Menu)
|
|
|
|
|
Please don't explain in the subject. write your problem in your body. try again.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i am confused with API. i want to know what are APIs, how it is used and implemented in project.
i want it in simple laymans language for clear understanding
|
|
|
|
|
Wiki has a very simple(infact, in layman's language) article [^]describing APIs
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
from today on, you must Google before you ask a question on the forum
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
In computer science, an application programming interface (API) is an interface that defines the ways by which an application program may request services from libraries and/or operating systems.[1][2][3] An API determines the vocabulary and calling conventions the programmer should employ to use the services. It may include specifications for routines, data structures, object classes and protocols used to communicate between the requesting software and the library.
When used in the context of web development, an API is typically a defined set of Hypertext Transfer Protocol (HTTP) request messages along with a definition of the structure of response messages, usually expressed in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format. While "Web API" is virtually a synonym for web service, the recent trend (so-called Web 2.0) has been away from Simple Object Access Protocol (SOAP) based services towards more direct Representational State Transfer (REST) style communications[5]. Web APIs allow the combination of multiple services into new applications known as mashups [6].
|
|
|
|
|
Hello, This is Vikash.
I am facing problem displaying the windows control created by me in ASP.net web site.
Actually, I am totally new to this and haven't done this thing before.
But after searching some article on the web i have created a small windows control with 2 textboxes and a Command button. When the button is clicked it copies the text in textbox1 to textbox2.
This is the Code of my User Control:
Imports System
Imports System.Windows.Forms
Imports System.Runtime.InteropServices
Public Class Copytext
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox2.Text = TextBox1.Text
End Sub
End Class
When I run the project of User Control, it runs fine.
Next I Created a web site in the same Solution and pasted the DLL file of UserControl in the roor directory and then using OBJECT tag embed the control in Web Page.
Code for WebPage is as follows:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<object id="MyX" classid="WindowToWeb.dll#WindowToWeb.Copytext" style="width: 312px; height: 160px"></object>
</div>
</form>
</body>
</html>
But when i run the web page it displays just a blank box.
can someone please tell me or guide me in this matter.
Any help would be greatfull.
Thanks in Advance.
|
|
|
|
|
look at this
http://www.beansoftware.com/ASP.NET-Tutorials/Place-Windows-Control-To-Web-Form.aspx[^]
It will help
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello, Thanks for your reply.
But the problem still exists, I have done what is given in the link, but no success.
Is there any setting in the IE that could be the problem.
Please more help needed.
Thanks in advance.
|
|
|
|
|
Am not because i dont know what does your control do, but please make sure that you have registered it in the aspx page.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi All,
I have table in which I have to put fixed header and freezed header widths. It is working when I dont scroll the vertical scroll bar. When I drag on the vertical scroll bar the widths are reduced.
Can anybody please tell me the widths of the table header remain same even if the scroll is moved.
I have used the following CSS and table's td tags.
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
<tr class="HeaderFreez">
<th class="RowHeader2Cell1" align="left" style="white-space:nowrap;width:80%;">Asset Name</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">CUSIP</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">ISIN</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">SEDOL</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Ticker</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Current Allocation</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Quantity</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Current Price</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Date Priced</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Market Value</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Total Cost</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Unrealized Gain/Loss</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Estimated Annual Income</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Yield</th>
<th class="RowHeader2" align="right" style="white-space:nowrap;width:20%;">Portfolio</th>
</tr>
Thanks a Lot,
Md Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
This is no ASP.Net question.
CP has a seperate Web Development forum [^]for this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
on local host my web work well......but on web server bellow error shown:
Parser Error Message: Could not load the assembly 'App_Web_g2f21cnt'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_g2f21cnt" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Can anybody tell me where is problem?
thanks
|
|
|
|
|
Am not sure what is the problem , because this is not common. please give us more info on what did you do before you put it in your webserver
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
|
And the question? CodeProject is a good discussion board. Is it this you want to know?
|
|
|
|
|
yes .. i really appreciate this code project ... its amesome..
Some Thing need 2 do NEW
|
|
|
|
|
Hi,
Good Day!
In my ASP.NET MVC application, I have 2 dropdown lists.
First one with 2 items namely A.P. & U.P.
When I select an item in the dropdown list, second dropdown list should be populated with corresponding cities in that state. Cities names should be retrived from a table in SQL Server 2005 database.
Your help will be very much appreciated.
Thank you,
Raju
|
|
|
|
|
Enable postback to true of DropDownlist1 and on selectedindexchange event of first dropdownlist1 select data from table and populate second dropdownlist.
example:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
<br />
SqlDataSource1.SelectCommand="select * from cities where idcity="+dropdownlist1.SelectedValue;<br />
DropDownList2.DataSourceID = "SqlDataSource1";<br />
dropDownList2.DataValueField = "IDCity";<br />
dropDownList2.DataTextField = "CityName";<br />
dropDownList2.DataBind();<br />
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Thanks.
Your reply is correct in normal ASP.NET application.
But I want in MVC application.
|
|
|
|
|
i want to use ajax toolbars in my dotnet 2008.but when i chooseitem in toolbar and select ajaxtoolkit.dll for samplewebsite it show error " could not load file or assembly"systemweb.extension....."or one of it dependencies. there was an error loading types from assembly"
i download two copies 4om different websites but both show this error
|
|
|
|
|
I cant understand how you can get a dll in a toolbar. please give us more info.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|