N
niju
Hi there
I wired up the Javascript function "Business" OnPreRender Event
protected override void OnPreRender(EventArgs e)
{
optBussiness.Attributes.Add("OnClick", "Business();")
}
Here is the javascript
----------------------
function loadIntoElement (id, text)
{
if (document.getElementById)
{
var el = document.getElementById(id);
while (el.hasChildNodes())
el.removeChild(el.lastChild);
el.innerHTML = text;
}
}
function Business()
{
loadIntoElement('BusinessName', 'Business Name: <input id
="txtBusinessName"
name="txtBusinessName" value="<%= BusinessName %>" size="20"
maxlength=20 value="" class="textbox">');
How can I retrieve the value of "txtBusinessName" from code behind
file?
Many Thanks
Niju
I wired up the Javascript function "Business" OnPreRender Event
protected override void OnPreRender(EventArgs e)
{
optBussiness.Attributes.Add("OnClick", "Business();")
}
Here is the javascript
----------------------
function loadIntoElement (id, text)
{
if (document.getElementById)
{
var el = document.getElementById(id);
while (el.hasChildNodes())
el.removeChild(el.lastChild);
el.innerHTML = text;
}
}
function Business()
{
loadIntoElement('BusinessName', 'Business Name: <input id
="txtBusinessName"
name="txtBusinessName" value="<%= BusinessName %>" size="20"
maxlength=20 value="" class="textbox">');
How can I retrieve the value of "txtBusinessName" from code behind
file?
Many Thanks
Niju