I have a ASP.NET label on a web page:
<P align="center"><asp:label id="lblFeedbackToUser" runat="server" ForeColor="Red" Font-Bold="True"></asp:label></p>
I need to center the (dynamically generated) text within the label.
How do I do that, please?
Thanks,
Rick
In development (running off my PC) I was able to use this:
Dim strComputerName as String = System.Net.Dns.GetHostByAddress(Request.ServerVariables("Remote_Host")).HostName
in order to retrieve the client's computer name. It worked just fine when I was using my PC as the server and a co-worker's...
Thanks again for replying.
That doesn't exactly work. What I want this to do is when the button is clicked it will pop up this cancel menu - prompting the user with YES/NO buttons. NO will just "re-hide" the cancel menu, whereas YES will fire another event.
If I replace the code as you...
XPBlue,
That works great - but I have one more question... That works when the user clicks the "Cancel" button. But until then, it (invisibly) hogs that space... I'm sorry for asking this, but I'm quite unfamiliar with JS. Below is my HTML page. How can I have the function HideCancelMenu...
I do not want to be guilty of "cross-posting", but I think I posted a thread in the wrong forum - I should have posted it over here. So I'm just going to post a reference over here and would very much appreciate if you could take a peek at thread855-1018482.
Thanks so much!
Rick
I have these two little routines:
function ShowCancelMenu()
{
var CancelMenu
CancelMenu = document.getElementById('CancelMenu')
CancelMenu.style.visibility = ''
}
function HideCancelMenu()
{
var CancelMenu
CancelMenu = document.getElementById('CancelMenu')...
ca8msm,
Thanks for replying.
It doesn't need to be exactly in the middle of the page - but I don't want to do a redirect, either. I just want it to appear visible to the user - somewhere on their screen regardless of where they've scrolled to...
Isn't there some less-than-near-impossible way...
I am writing an ASP.NET page using flow-layout. I need to display a confirmation label using VB.NET or JavaScript which needs to pop up in the middle of the screen (or at least visible to the user - even if they've scrolled very far down the page). It will need to say something like, "Product...
P.S. I know the following exists for a page (and can be inserted into Page_Load:
Page.RegisterHiddenField("__EVENTTARGET", "cmdSubmit") 'where "cmdSubmit" is a string with the name of the default button
But does anything like that exist for an individual control?
Thanks again,
Rick
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.