V
Valli
Hi,
I am desigining a web page in asp.net. My page contains a drop down list
which will get filled using an XML file in the application folder.
The drop down list gets filled up with data written in Javascript.
I am accessing the xm file using the javascript syntax.
var querystring
="http://localhost/Website/WebInterface/Asyncdropdownprocess.aspx?ID=E&SelectedValue="
+ document.getElementById('<%=ExchangeDropDownList.ClientID%>').value ;
xmlHttpReq.open('POST', querystring, true);
The error is - I am using 'localhost' to access the file. The page will get
accessed from lot of places. So the 'localhost' syntax provides error.
I need to replace the Server IP in the localhost place.
The Server IP will be given in the Web.Config file. I need to read the IP
from the config file & replace that in the localhost place.
How can I read the config item using Javascript?
Can anyone help me?
I am desigining a web page in asp.net. My page contains a drop down list
which will get filled using an XML file in the application folder.
The drop down list gets filled up with data written in Javascript.
I am accessing the xm file using the javascript syntax.
var querystring
="http://localhost/Website/WebInterface/Asyncdropdownprocess.aspx?ID=E&SelectedValue="
+ document.getElementById('<%=ExchangeDropDownList.ClientID%>').value ;
xmlHttpReq.open('POST', querystring, true);
The error is - I am using 'localhost' to access the file. The page will get
accessed from lot of places. So the 'localhost' syntax provides error.
I need to replace the Server IP in the localhost place.
The Server IP will be given in the Web.Config file. I need to read the IP
from the config file & replace that in the localhost place.
How can I read the config item using Javascript?
Can anyone help me?