|
I want to show tooltip for textbox control in balloon format.
Is it possible?
I searched on net,but there are examples for windows form.I want it should be on webform.
|
|
|
|
|
|
Thanks for reply..
But i dont want to validate the control.I want simple tooltip for textbox.
|
|
|
|
|
Then why not create a div and put your content in that.
eg:
<div id="MytoolTip" style="visibility:hidden;position:absolute;">
Your tool tip content
</div>
(you may apply a background image or some more css to make it to the shape you want)
now create two functions to show and hode this div
function showToolTip()
{
document.getElementById("MytoolTip).style.visibility = "visible";
document.getElementById("MytoolTip").style.left = event.clientX+"px";
document.getElementById("MytoolTip").style.top = event.clientY+ "px";
}
function hideToolTip()
{
document.getElementById("MytoolTip).style.visibility = "hidden";
}
//Now register this two functions for your text box
<input type="TextBox" onmouseover="showToolTip()" onmouseout="hideToolTip();" />
Hope this helps
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
|
how to create window tray for display alert message for web application .
|
|
|
|
|
If you mean a simple alert use the following javascript:
alert('This is a simple alert');
for example after pressing a button:
<button onclick="javascript:alert('This is shown when I click on the button')">A button</button>
see also: http://www.w3schools.com/JS/js_popup.asp[^]
|
|
|
|
|
Thanks for yr reply,
But i want same as window tray in web application. like in messenger ,if any person will be online that at the end it will display that this person is online.
|
|
|
|
|
|
|
Hi Friends
I want to search the some text in a file and insert some words next line of that searched text,Im using Streamwriter class but its append.How I can do this ?.Do u have any idea
|
|
|
|
|
Please Check your Signature Area, it unnecessary takes to much place
just and information
|
|
|
|
|
Hi
I saw your article..But Im asking about filehandling concept.
Is it possible to insert(Not Append) a text in to file ?
Cheers..!
Vijay s
|
|
|
|
|
The article in the above post is in their signature and therefore nothing to do with an answer to your question
|
|
|
|
|
Hi all,
I have a calendar in my page and below of it is Webgrid. When i click on the calendar, calendar is not fully visible. part of the calendar is hiding by grid.
How to show the calendar fully?
Thanks in advance.
|
|
|
|
|
use table. and put caledar in one row and Grid in another row
<table>
<tr>
<td>
your caledar Control
</td>
<tr>
<tr>
<td>
your grid view
</td>
<tr>
</tr></tr></table>
Best Regards
-----------------
Abhijit Jana
Check Out My Latest Article
Java.NET : Integration of Java and .NET[^]
"Success is Journey it's not a destination"
|
|
|
|
|
Can you send design code..
|
|
|
|
|
Does anyone know why the validator doesnt prevent postback when hitting enter on textbox twice?
I just have this controls in my form:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button" />
Ive also tryed putting this inside a panel:
<asp:Panel ID="Panel1" runat="server" DefaultButton="Button1">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button" /></asp:Panel>
When i hit enter inside textbox, the validator appears, but if i hit enter again, the page is posted back
Does anyone know why?
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
With me it does work like it should.
A workaround , just to make sure the user passed validation, is to put the following in the button event handler:
if (!Page.IsValid)
return;
|
|
|
|
|
Hi
In windows services, we can program a thread which invokes itself after time to time.
In ASP.net application, how can we implement similar solution? Please advice.
Thanks
Pankaj
|
|
|
|
|
Write a service. ASP.NET can't do that, because of how it works.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to iisreset a remote machine programtcailly.I used the following code:
CODE I:
ServiceController controller = new ServiceController();
controller.machineName = "<remote machine="" name="">";
controller.serviceName= "IISADMIN";
if (controllet.Status ==ServiceCOntrollerStatus.Running)
{
Controller.Stop();
Controller.Start();
}
The probelm with Code I is it stops the service but does not start it.
CODE II:
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.Process.Start("cmd.exe", "iisreset remotemachine");
procee.close();
The issue with CODE II is that the current code is executed from a sql server where iis service does not exist. So the command executes without any error but does not do anything.
How can I resolve this issue.
Hema
|
|
|
|
|
Member 3449442 wrote: How can I resolve this issue.
Well if you want our help you might consider posting code that compiles. The reason for this is that it makes your statement seem like a lie:
Member 3449442 wrote: I used the following code:
Member 3449442 wrote: The probelm with Code I is it stops the service but does not start it.
led mike
|
|
|
|
|
Try this
ServiceController controllerIISADMIN = new ServiceController();
controllerIISADMIN.ServiceName = "IISADMIN";
ServiceController controllerW3SVC = new ServiceController();
controllerW3SVC.ServiceName = "W3SVC";
if (controllerW3SVC.Status == ServiceControllerStatus.Running)
{
controllerIISADMIN.Stop();
controllerIISADMIN.Refresh();
System.TimeSpan timeout = TimeSpan.FromSeconds(60000);
controllerIISADMIN.WaitForStatus(ServiceControllerStatus.Stopped, timeout);
if (controllerIISADMIN.Status == ServiceControllerStatus.Stopped)
{
controllerW3SVC.Start();
controllerW3SVC.Refresh();
controllerIISADMIN.Refresh();
}
}
Also make sure IIS Console is not open when you run the above code.
|
|
|
|
|
Hi,
please i need to read an Image from sql server and Display it in Image control.
Note that this is a single Image control.
Mohammad Al Hoss
|
|
|
|