Ask a Question related to ASP.NET General, Design and Development.
-
msnews.microsoft.com #1
ASP.NET: Accessing a Tag with C#
Hi,
IN ASP.NET PAGE I HAVE DEFINED THE DIV TAG AS FOLLOWS:I want to access the
value in the code behind(c#) .
<div align="left" autopostback = true class="clsTitle"
style="VISIBILITY:hidden" id="HiddenFlag" runat="server"></div>
I am accessing the div tag in the code behind as follows:
string aa = "<SCRIPT FOR=window EVENT=onload LANGUAGE='JScript'>var a;a =
confirm('Shift is not Valid :" + aBE.Reason + " Do u want to override shift
validation warning message?');document.all." +
e.Item.FindControl("btnAdd").ClientID + ".click();HiddenFlag.innerText =
a;</SCRIPT>";
Page.RegisterStartupScript("tt",aa);
Althogh when i user alert(a) in the script it return true/false But when i
try to access the InnerHtml property as following i always get empty string.
if (HiddenFlag.InnerHtml == "true")
{
}
What is wrong i am doing it.
THANKS
EKTA
Please let me know what i am doing wrong
msnews.microsoft.com Guest
-
ASP accessing a VB.NET DLL?
Hello, I have a VB.NET DLL and want to access it via ASP. Is this possable? Dose anyone have an example? Thanks, Jack -
Accessing .NET dll from ASP
I hope this is the right forum to ask this question. I'm having a problem with accessing a dll I have created with vb.NET 2.0 with ASP. (no... -
accessing db on other pc
I am writing an asp.net webpage. It has some code behind it that uses data from an excel spreadsheet. My problem is that instead of having the excel... -
accessing FH9 Help
When i go to the drop down for help, i get none? nothing happens no help window, the drop down does not appear to work, no access to help. HELP! ... -
Accessing an F key
Hi, Does someone know how can I access an F key using an html link, javascript, form object. I need to open a full screen window (like...



Reply With Quote

