Web Forms :: Ping An Ip Address Entered In A Textbox?
Sep 1, 2010
i want to ping an ip address that the user (of my web site) enters in a text box.i have placed a link button , next to that textbox ,on whose click event i want to start the ping command...does ne1 has ne idea how this can be done??
View 3 Replies
Similar Messages:
Dec 17, 2012
i have 2 template field columns time and total_time in a gridview.. time column has a label in the item template and a textbox in th edit item template..
similarly, total_time has a label in the item template and a textbox in the edit item templte..
what i need is, when the user enters a value in the time textbox,it must get updated in the total_time textbox.. and on edit,when the user changes the value of the time textbox ,dis value must be ADDED to the total_time textbox.. both should be displayed in the label also..
View 1 Replies
Mar 29, 2010
How can I set up a format for a text box so that if they are to put a date or the time they are required to put it in as mm/dd/yy or time as 12:00am?
View 6 Replies
Aug 17, 2010
I have a webform with textbox and button,i want to disable the button when nothing is entered into textbox and if something is entered the button must be enabled.How to do it without javascript?
View 14 Replies
Nov 29, 2010
i have 20 Textboxes i am not sure what did i touch by i normally dont play with VS Settings i dont understand. So those textbox are normally defined like this
View 1 Replies
Dec 28, 2011
I am converting the entered values in textbox into decimal values to saev in sql table. In case user does not enter any value i get a Format exception. How do i handle this..
My code is as below
DMLObj.Add("ItemID", Convert.ToInt32(drpitemname.SelectedValue).ToString());
DMLObj.Add("SupplierName", Convert.ToInt32(drpvendor.SelectedValue).ToString());
DMLObj.Add("Quantity", Convert.ToDecimal(txtqty.Text).ToString());//qty.ToString());
DMLObj.Add("Unit", Convert.ToInt32(drpunit.SelectedValue).ToString());
[Code] ....
View 1 Replies
Jun 27, 2012
i have textbox in page that  user can enter number on textbox
I want when users enter number, automatically in text box show camma after 3 number like below
100,000,000
View 1 Replies
May 7, 2010
Now to my question. I would like to check for username availability. For this I need to extract the text entered in the UserName textbox from the CreateUserWizard. I don't know how to do so. I need to cast somewhere but where?
Here's my code: (the bold word draws a cast error which I need to sort out)
[Code]....
View 2 Replies
Feb 19, 2010
Here is what I'm trying to achieve: The user enters in the textbox a date. It can be:
20.04.2010 or 20/04/2010 or
01Apr2010 or Apr 01 2010...
Any other formats should be forbidden. When the user leaves the textbox then the date should be displayed as 01-Apr-2009. I already tried but I got only when am entering the numbers only like (21-04-2010) but I want to entering the string like apr, jan, nov .
View 2 Replies
Jul 6, 2012
I have one text box for accepting date. I want to store date column in database is null when the text box value is null and how to bind the this null value to text box when i retrieve.
View 1 Replies
Nov 8, 2010
I would like to use validation to check the length of a textbox entry (character length) when the textbox loses focus. how I can do this?
View 41 Replies
Dec 21, 2011
I want to display all the items existing in database for ex:
If i enter just book. All the items with book work should get displayed
Example in google search as soon as we enter one word related all things get displayed. I am not talking about auto completion
View 1 Replies
Jul 5, 2012
If I enter any number in a TextBox I want to open some .aspx page. I don't want to click on any button. How should I do this in asp.net?
View 1 Replies
Dec 22, 2010
I have the requirement to display the total of values entered in the textboxes inside the gridview.
for ex:
<asp:TemplateField ItemStyle-Width="20%">
<ItemTemplate>
<asp:TextBox ID="txtTotalPetitions" runat="server" onkeypress="if(event.keyCode!=9) return OnlyNumbers(event)"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
i need the sum of values entered in txtTotalPetitions(It is editable,not from the db)
View 1 Replies
May 1, 2010
I have a datalist that shows some data selected from a database in formload. I've added textbox in one culumn.In this textbox the user enters a nubmer and then clicks the link in the same row to add that item to his shopping card.the number in the textbox shows the number of the item he wants. now the bloblems are:
1- how can I get the number entered in the textbox ot the same row
2-when I click the link and the page postbacks the textboxes are empty as they are when the page apears the first time.
<td align="center" bgcolor="#66CCFF" style="border: thin solid #000000;"><asp:TextBox ID="TextBox1" runat="server" Width="20" MaxLength="3"></asp:TextBox></td>
<td align="center" bgcolor="#99FFCC" style="border: thin solid #000000;"><asp:HyperLink ID="HyperLink1" Runat="server" NavigateUrl='<%# "~/SelectItems.aspx?item_id=" + Eval("item_id").tostring()%>' Text="ËÈÊ" ></asp:HyperLink></td>
View 2 Replies
Feb 15, 2011
I have an ASP.Net UpdatePanel that updates on a timer. Within the UpdatePanel and nested in a GridView, I have a TextBox that the user enters a value in with a submit button. Everything works fine, except if the user does not submit the value before the timed interval, the text is removed from the TextBox. Is there a way to persist the user entry into the TextBox between updates? Is there a better way of doing this?
Code Postscript:
aspx:
<script type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(beginRequest);
function beginRequest() {
prm._scrollPosition = null;
}
</script>
<asp:Timer ID="Timer1" runat="server" Interval="900" OnTick="Timer1_Tick"></asp:Timer>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:DataList RepeatColumns="5" RepeatDirection="Horizontal" ID="dlMine" runat="server" OnItemCommand="Item_Command">
<ItemTemplate>
<div style="border:1px solid black;margin:3px;height:300px;text-align:center;padding:5px;">
<div style="width:150px;">
<asp:Label ID="lblTitle" runat="server" Text='<%# left(DataBinder.Eval(Container.DataItem,"title").ToString(), 75) %>'></asp:Label>
</div>
<asp:Label ID="Label1" runat="server" Text='<%# (DateTime)DataBinder.Eval(Container.DataItem,"end_date") %>'></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text='<%# String.Format("{0:C}",DataBinder.Eval(Container.DataItem,"current_value")) %>'></asp:Label>
<br />
<asp:TextBox ID="txtNewValue" runat="server"></asp:TextBox>
<asp:Button Visible='<%# (isInThePast((DateTime)DataBinder.Eval(Container.DataItem,"end_date"))) ? false : true %>' CssClass="bid_button" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="Revalue" ID="btnBid" Text="Submit New Valuation" />
</div>
</ItemTemplate>
</asp:DataList>
[Code...]
View 2 Replies
Dec 7, 2010
I have a textbox defined as follows in my MVC app;
[Code]....
How do I get this textbox to do a postback once the user has entered data?
View 5 Replies
Feb 8, 2011
I am having a "TextBox" a "Label" and a "Button" in my aspx page. If I enter some values into the textbox, then that value should be displayed in the label...and again I enter some values in the same text box, that value should be displayed without disturbing the first value and so on...
View 1 Replies
Nov 2, 2010
I have a label lblCountCharacter with text "4000" and a textbox txtAddNote where users can enter text.
On entering one character in txtAddNote, the label text is decreased by one.
write a function for this in asp.net using C#.
View 4 Replies
Jul 29, 2010
I need to validate a textbox that it should allow only certain characters and after the limit is reached the textbox should not allow entering characters in it.It can be done by Javascript but dont know how to do..
View 3 Replies
Jul 3, 2012
I have a Counter on a textbox done in Javascript like twitter that counts the text entered. Now It works fine. The Textboxes get field with data and after that i want to calculate the renmaining Text. i have a code for that after i bind the textbox. So i have this
Code:
ScriptManager.RegisterStartupScript(Page, GetType(String), "FF", "InitializeCounter(" + "ctl00_ContentPlaceHolder_Main_Wizard1_Servitudes" + ",'ndacount2','bar','800');", True)
ScriptManager.RegisterStartupScript(Page, GetType(String), "FF", "InitializeCounter(" + "ctl00_ContentPlaceHolder_Main_Wizard1_Introduction" + ",'NDAcount1','bar','800');", True)
And i realized that it only calculate the textbox counts for only the First one and fail to do it for the second one. Maybe it does not like multiple RegisterStartupScript ...
View 1 Replies
May 11, 2010
There is an asp.net Page in which i have to entered the quantity in the textbox txtRQ..Now if i select yes in the dropdownlist named ddlMR,this qty of the textbox should get added to the qty field of an oracle table GOODSMASTERand if i select NO in the dropdownlist ddlMR, this qty should be added to the qty field of another table called SALESRETURNDETAILS.
View 2 Replies
May 9, 2010
If a user enters a non-numeric value into a TextBox and presses a Button, I want to show an error message on a Label. How can I achieve this?
View 3 Replies
May 7, 2010
i have a forms application which pings all the network machines. this works fine and also returns the status of each machine i.e. sucess, timeout etc. however i also want to get the name of the remote machines so i use this code:
[Code]....
the above code works fine however any exception is given when the remote machine is a mac. the exception is:
[Code]....
how can i counter the exception so that it simply ignores the exception and carries on the for loop for the other machines.
View 3 Replies
Jun 9, 2010
How to check or validate the textbox entered date is in DD/MM/YYYY format?
View 7 Replies