Gridview Textbox Value Calculation Using Javascript


net, How to calculate value of TextBox using Javascript. I wrote it for some functionality and thought to share it with you all. rar) Comments Author: Mrs. To enter a calculation: Activate the Select Object Tool. Default number of input fields are provided and you want to give users a option to add more input elements then this script will work. Use the if statement to execute a statement if a logical condition is true. After editing the value and on clicking Update button, we call a page method called UpdateEmployee() to update the employee details in the database using the jQuery's ajax() method. You may have to register before you can post: click the register link above to proceed. how to set value for textbox using javascript? The element, as with most HTML form inupt elements, uses the `value` attribute to get and set its text. Calculating a date interval such as days, weeks, or months between two known dates is not as easy because you can't just add Date objects together. NET GridView or Repeater control. JavaScript getElementById. Calculations are only available for text fields and are accessed through the Text Field Properties dialog. Two variables will keep track of the total of all the values bound inside GridView control and the third variable totalItems will be used to calculate the average price. net applications we need to assign value in javascript or jQuery to the controls like label or hiddenfield. finding the values inside the nested gridview Using Javascript / (using rowindex to find the nested gridview)/ (finding the selected rowindex of gridview on mouse click on the gridview row) In Design Page //get the row index and client id ,cell va. I need one beside it with words based on the # in previous box. net applications we need to assign value in javascript or jQuery to the controls like label or hiddenfield. I have a Gridview and I created a textbox and button inside. Code Snippet #2: The code we created today is to get multiple checkbox values in JavaScript. I'll expand on my previous article by removing the external templating library and using Knockout to bind and render the data. I would to write Javascript to extract the Notification Date and Auto populate in the Effective Date. Get GridView Object in Javascript. Last Reply on Apr 28, 2014 08:53 AM By Azim. The Razor syntax gives you all the power of ASP. A jQuery plugin that attaches a popup calculator to an input field. To calculate totals first you need to declare some variables outside the RowDataBound event. i am using a containplaceholder in contain page. Net AJAX Control Toolkit Modal Popup Extender. Javascript calculating total in gridview. By doing this, a non-JavaScript readable browser will see the comment notation and ignore the text between them (which is your code). net textbox value using javascript, how to split string date into day month and year from code-behind, validate checkboxlist using jquery, validate radiobuttonlist using javascript and other more cracking tutorials on Asp. I want to use JavaScript TextChange(onChange) event to change the value of a cell in GridView. NET Articles,Gridview articles,code examples of. Every input field is specified with attribute value. Back in our ready function we need to add code after our call to zebraRows(). NET GridView is a very common and useful control. example:if number is 2. For example, you might have a script that checks if Boolean value is true or false, if variable contains number or string value, if an object is empty or populated, or even check type and version of the visitors browser. Net, JavaScript, GridView. You can use the TextChanged event to modify another part of your program when the user types text into a TextBox. input:range: The onchange event is fired when the value has changed. The professor can opt to receive a sum or an average of the grades by clicking the. This works fine in IE9 but it doesnt use the shading in Chrome. This Javascript application is very simple, necessarily commented and is easy to understand. I have an ASP. net, JavaScript, jQuery and GridView here. net label value in JavaScript or get asp. Each input button has a value - this is what will be displayed on the button, for example "7" will be displayed on the button that you push to generate a "7" on the display. Use Bind to create a new new function whose Use apply function to call a function in Ja Use function as variable in JavaScript Use function. Get the tools you need to revolutionize your workflow and architect a masterpiece. In reality, all three are JavaScript, but for the first two, Acrobat builds the JavaScript code for us. There are multiple ways to display total in GridView footer. Input type are included in the code for a form, which makes, ‘textfield’ and ‘button’. To enter a calculation: Activate the Select Object Tool. This blog is just to illustrate how to get textbox value from GridView using JavaScript C# Corner Annual Conference 2020 Tickets on Sale Now x Top 10 Social Media Influencers. Calculate Sum and average of two or more Textbox values using JQuery September 03, 2013 We can calculate sum and average of values entered in textboxes with the help of small piece of jQuery code. split(" "), but I don't really know how to go about doing that. The reason for writing this post is because I have seen many beginner programmers using val() == '', which is wrong as val() is a method that takes argument. NETJavascriptSqlDataAdapter, DataTable, GridView, ASP. net textbox in JavaScript or get asp. ngubantbIm new learner in JavaScript. Hi, Bounded four TextBox[text1,text2,text3,text4] control to Gridview and 'N' no. I need to get the value of the textbox upon button click. Second, I'll extract the values from each textbox and add the values to the GridView. Topic: JavaScript / jQuery Prev|Next. net,javascript how. You can use the TextChanged event to modify another part of your program when the user types text into a TextBox. Net,Windows Application,WPF,Javascript. I have one grid which have 5 columns 1 for subject,2,3,4 for marks which have textbox to insert obtained marks,and last column have one lable to display total of (2+3+4),now i want total value on textbox event,when user enter any value to any column of textbox i need to display total of all three columns in total column. Bind and Validate GridView TextBox Value by jQuery In Asp. Getting a radio element and it's checked value Radio buttons in a form can be grouped together using the same name attribute, such that, if one of them is checked, all the others are automatically un-checked. Click the following links to add the numbers and be alerted to the answer. How to select ROW in datagrid using Javascript Program To Select Row In DataGrid Or Gridview Using JavaScript,Have To Use TemplateColumn,AutoGenerateColumns="false" // JScript File JSdg. The ViewModel can be considered a specialized Controller that acts as a data converter. Here is the gridview cell code. Introduction: This article shows how to calculate Grand Total of a numeric column in a Gridview using LINQ. I want to write javascript code to calculate 2. My requirement is I have a gridview where cell[1] is quantity, cell[2] is a boundfield which shows the rate and cell[3] is discount and i have a textbox control outside gridview in th form where the user would enter a discount percentage which is to be shown in the gridview cell[3] and finally the gridview. Pass Multiple Values from a GridView to Another Page using ASP. my prob is that i want to select a item inside radgrid by dropdownlist and want to display corresponding value in a label. Introduction: Here I will explain how to get or validate textbox controls inside of asp. Calculator Title: This is the title at the top of our application, "GeeksforGeeks Calculator". Actually we already known simple calculator means such like addition, subraction,division, multiplication. i have applied a style to the main headings bar using shading. Create a message for the user. Subscribe to this blog. I can not get it to work: I appreciate the help!. i need some help. my prob is that i want to select a item inside radgrid by dropdownlist and want to display corresponding value in a label. I am trying to put the asp. Net GridView SelectedRow when clicked using JavaScript When the LinkButton in a GridView Row is clicked, the following JavaScript function is called. Performing Calculation In Gridview itemtemplate: Since all three of those values are coming from the table you could be able to do something like. Here, I'm explaining how to work with GridView control in ASP. I need to get the value of the textbox upon button click. Quantity Validation and Total Calculation in ASP. Since the user enters numeric value directly to the text box, we don. What you need to determine is what the actual names (IDs) are for the Form, DataGrid, TextBox and CheckBox controls. Bind list item column to drop down list in SharePoint using jquery and JavaScript (JS File jsom code) Now create a JS File whereas I created "VendorJsFile. net, JavaScript, jQuery and GridView here. The enterKey event will set the editing property to true or false. How to get the value of selected radio button in a group using jQuery. I want to perform calculation in gridview :NetAmount=(ServiceAmountQuantity)Discount I had written code in rowdatabound but it is not working,i amnew to programming help me solve this proble i would appreciate if some one share ther knowledge my Axpx code is:. In this demo I have used Northwind database to bind GridView. Now you declare a variable x and tell JavaScript to execute calculate() with the arguments 4, 5 and 9 and to put the returned value (81) in x. Using the reference of the clicked LinkButton, the GridView Row is referenced and the RowIndex is determined. Please assist. Let's say I want item X in the dropdown field to update a layer. how to get asp. Net, Hyperlink, JavaScript. Use Bind to create a new new function whose Use apply function to call a function in Ja Use function as variable in JavaScript Use function. Calculating row total, column total, grand total if a table or gridview using jQuery In this post lets discuss a very common problem. :I have an asp. NET , C# , Dotnet The title pretty much says what we are up to. Here is a small code snippet to sum the values of all textboxes in a form in JavaScript using jQuery. Use jQuery to Get Textbox Value or Set Textbox Value or how to get textbox value using jquery or how to set textbox value in jquery ASP. How to export GridView data to PDF document in ASP. i need that when i enter numbers in gridview textbox then it calculate the sum of textbox and show one another textbox. If someone is entering a credit card, phone number, zip code, similar information you want to be able to ensure that the input is all numbers. Get the tools you need to revolutionize your workflow and architect a masterpiece. how to set value for textbox using javascript? The element, as with most HTML form inupt elements, uses the `value` attribute to get and set its text. Create a text field using the Input tag of type text. my prob is that i want to select a item inside radgrid by dropdownlist and want to display corresponding value in a label. Output Screen: This will be our output screen, where all text will be shown. The gridview is sourced by a datatable and rows can be added or removed. A jQuery plugin that attaches a popup calculator to an input field. I have a textbox that I want to place a total based on a sum of gridview rows from a particular column. up vote 0 down vote favorite. Then I could use another operator on that total with another number, and so on, until the clear button is pressed. let us take an example to display Northwind database's customer table. As indicated in our last chart book the aim was to establish a larger time frame long term play. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways. I am trying with the above javascript code but i was unable to get the textbox values in gridview. Registration form in asp. This calculator is designed to derive the standard deviation of a set of entered numbers. Can you possibly explain how you new what elements to focus on. In this demo I have used Northwind database to bind GridView. do check it all and send your response Source Page:. Using JavaScript with GridView Control CheckBox Column In this code snippets we will discuss about to select all the checkboxes in the gridview by selecting the header checkbox. By the end of the article, you should get a calculator that functions exactly like an iPhone calculator (without the +/- and percentage functionalities. i have a hidden form value which contain of the TOTAL. finding the values inside the nested gridview Using Javascript / (using rowindex to find the nested gridview)/ (finding the selected rowindex of gridview on mouse click on the gridview row) In Design Page //get the row index and client id ,cell va. Or see if refinancing is right for you. Javascript supports arithmetic operators like addition, subtraction, multiplication, division and so on. By the way, your calculator doesn't make it clear, that it can only process integer values, which might lead to confusing results with inputs like this: 1. Inshort on text change event, we calculate the sum of all input values entered in the table column, i. Find Label Inside Gridview using Javascript. How do I reference the gridview textbox. One month ago I’ve had very nice conversation with a asp. NET,JQuery,JavaScript,Gridview aspdotnet-suresh offers C#. 0; Is text/xml-script working ? Passing arrayList to javascript function; How To Call a WebService with ASP. We’ll focus on the JavaScript you need to write—how to think about building the calculator, how to write the code, and eventually, how to clean up your code. if/then statement in text box Adobe Acrobat X Pro. Here, I'm explaining how to work with GridView control in ASP. This calculator is designed to add and subtract values of any Hexadecimal (Hex) numbers. I had already posted more than 10 ASP. Finally, the CalculateTotals() is the main function that extracts each elements from the GridView, calculates the values and sets the calculated values back to the GridView element that in this case the sub-total and total amount. Passing value from popup window to parent form's TextBox column values of the GridView in the javascript function. Also discussed are important features of this new GridView: the built-in context menu row-based and the Filter textbox to filter the GridView's rows. FAQ: GridView Calculation with JavaScript - Formatting and Validation; FAQ: GridView Calculation with JavaScript - Displaying Quantity Total; Recently a user in the forums is asking how to calculate the total quantity, sub-totals and total amout in GridView when a user enters the price and quantity in the TextBox field. then automatically that values will be added and show it in the same row of the total through JavaScript. How can i get "txtGridName" value from update button onclientclick? Asp. NET,JQuery,JavaScript,Gridview aspdotnet-suresh offers C#. i am developing a asp. Here is a small code snippet to sum the values of all textboxes in a form in JavaScript using jQuery. Since the displayValue property of the calculator object represents the input of the user, we need to modify the value of this property when any of the digits is clicked. i have encountered a scenario in which i need to calculate sum for values enetered in textbox in a dynamic gridview, and display that value to another text box in same gridview, i have tried below could some one help. i need that when i enter numbers in gridview textbox then it calculate the sum of textbox and show one another textbox. For more detail see the documentation reference page. Custom functions are created using standard JavaScript. Code Snippet #2: The code we created today is to get multiple checkbox values in JavaScript. Let's say I want item X in the dropdown field to update a layer. ) values in JavaScript. 0, Datagrid is replaced by GridView control while Datagrid control is still supported. As you may already know, this can be easily done using a server-side approach. NET,JQuery,JavaScript,Gridview aspdotnet-suresh offers C#. How to Get the value of a textbox in gridview using javascript. i have applied a style to the main headings bar using shading. elements['hidden field name']. Gridview row color change using RowDataBound event If you want to change the gridview row color change on mouse over and mouse out then write the below code in rowdatabound event. There are multiple ways to display total in GridView footer. Gridview is more powerful data control in the ASP. Hi everybody! I've run into some trouble with a dropdown field. net using 3 - tier. I feel this will help me understand m. How to process textbox values/ call textbox values in JS through a Java program. Here is the JavaScript function to calculate the total percent. Calculations are only available for text fields and are accessed through the Text Field Properties dialog. All the rows are converted into tr element and values placed in different td. I would to write Javascript to extract the Notification Date and Auto populate in the Effective Date. GridView Textbox value Calculation using javascript. Design Add Gridview in. In reality, all three are JavaScript, but for the first two, Acrobat builds the JavaScript code for us. Then I could use another operator on that total with another number, and so on, until the clear button is pressed. Create buttons using the Input tag of type button. I want to perform calculation in gridview :NetAmount=(ServiceAmountQuantity)Discount I had written code in rowdatabound but it is not working,i amnew to programming help me solve this proble i would appreciate if some one share ther knowledge my Axpx code is:. then i have anohter two radio button and two text box. Step2: Create Javascript function to check password length. Hello Sir, I'm trying to calculate the total hours of an employee in gridview. How to Calculate Intrinsic Value search records using textbox, button and display in gridview asp net - Duration:. JavaScript is much faster than sending everything to the server to process, but you must be able to read user input and use the right syntax to work with that input. To calculate totals first you need to declare some variables outside the RowDataBound event. Performing Calculation In Gridview itemtemplate: Since all three of those values are coming from the table you could be able to do something like. I’ll show how to write few lines of JavaScript to find and validate textbox and dropdownlist in a GridView control. Get the tools you need to revolutionize your workflow and architect a masterpiece. Registration form in asp. net Ajax Tips. value I first identify the GridView Row and then using it I find the. Pass Multiple Values from a GridView to Another Page using ASP. I am trying with the above javascript code but i was unable to get the textbox values in gridview. Actually we already known simple calculator means such like addition, subraction,division, multiplication. net control values textbox, label etc in JavaScript ASP. For example, you want to calculate EMI based on users' preferred tenure of loan. Here's the general format to use PROD_ProductID_Price Here, ProductID is a unique ID code that enables you to determine which product the customer ordered, and Price is the price of the item (without the dollar sign). NET Ajax, but even looking around a lot I didn't find a clean and polished solution for what should be a common task. Calculating row total, column total, grand total if a table or gridview using jQuery In this post lets discuss a very common problem. You can use the TextChanged event to modify another part of your program when the user types text into a TextBox. will enter the value from text1,text2 & text3. Inside the JavaScript tags, the browser ignores these characters. If you want, you can assign its call to a local variable. Step1: Create Textbox and CustomValidator set ControlToValidate and ErrorMessage properties of CustomValidator. This code handles the data input and output: Create a variable for the name. Introduction: This article shows how to calculate Grand Total of a numeric column in a Gridview using LINQ. NET:Save the generated pdf directly to the server directory folder without user prompt in ASP. How to export GridView data to PDF document in ASP. Inputting the digits. it is working fine with updatepanel. Above we have created the calculator service using the service() method. Here is the JavaScript function to calculate the total percent. but I can't find out the value. Sometimes, you want to allow the users to add certain parts of the form as they need them. In this article i will explain check the checkbox selected status in gridview using JavaScript in Asp. If you can please give me the explaination of each line on your code. Calculating a date interval such as days, weeks, or months between two known dates is not as easy because you can’t just add Date objects together. The function call is replaced by whatever the return value is, just as a variable name is replaced with its value. Performing Calculation In Gridview itemtemplate: Since all three of those values are coming from the table you could be able to do something like. How To Add Search Feature To GridView; How To Add client side calculation for gridview co Create new gridview row with javascript; How To Read a DataSet object in Javascript; How To Use XML Script in ASP. ngubantbIm new learner in JavaScript. Net Ajax; How can I update an UpdatePanel programmatically? ASP. Getting a radio element and it's checked value Radio buttons in a form can be grouped together using the same name attribute, such that, if one of them is checked, all the others are automatically un-checked. Ask Question. net,The pager template in gridview is a certain layout. The TextChanged event is only triggered when the text is changed to something different, not changed to the same value. i got some javascript problem. The Properties. In previous articles we explained Get Image Coordinates using JavaScript, Fullscreen Background Video using HTML5, Vertical Image Slider in WPF, Export GridView to PDF, Breadcrumb in WPF, Mathematical Captcha in ASP. I hope you liked the article, happy coding Update: One of the readers pointed out a bug in the sample code which is that the amount is not added when the user edit the TextBoxes. This code snippet would help you know how to fetch the values passed using checkboxes in HTML forms upon the form submission. There are multiple ways to display total in GridView footer. I have a Gridview and I created a textbox and button inside. Net Textbox values and show in Label or TextBox control Lalit Raghuvanshi Introduction : In this article i am going to explain how to get running sum of all the asp. Part 61 How to get value from a gridview templatefield kudvenkat. In this article I have used Microsoft's Pubs database for sample data. For this I have used a HTML table to create a custom page in side the grid view Pager template. Call a WebService with ASP. I've included the text with value and used parseInt. Since the user enters numeric value directly to the text box, we don. Introduction: This article shows how to calculate Grand Total of a numeric column in a Gridview using LINQ. In previous articles we explained about Copy to Clipboard using JavaScript and now we will move on calculating duration between two dates using Javascript. Actually we already known simple calculator means such like addition, subraction,division, multiplication. Illustrates how ContentPlaceHolder controls serve as a naming container and therefore make programmatically working with a control difficult (via FindControl). NET,JQuery,JavaScript,Gridview,SQL Server,Ajax,jQuery Plugins,jQuery UI,SSRS,XML,HTML,jQuery demos,code snippet examples. by Scott Mitchell. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. NET, but is using a simplified syntax that's easier to learn if you're a beginner, and makes you more productive if you're an expert. Thirukumar None. Calculating a date interval such as days, weeks, or months between two known dates is not as easy because you can't just add Date objects together. Welcome to the p2p. So we need an event to tell JavaScript to perform the calculation. Then you declare a variable y and execute calculate() again. There is many other way to do that but here is the easiest way to do it. Also discussed are important features of this new GridView: the built-in context menu row-based and the Filter textbox to filter the GridView's rows. I would to write Javascript to extract the Notification Date and Auto populate in the Effective Date. In addition, it creates a new row and adds it to. NET Gridview shopping cart using jQuery :. To get the Primary Key reference we can use the DataKeys collection of the GridView. Here you will get working code for adding input fields dynamically using a link or button. Topic: JavaScript / jQuery Prev|Next. NET Data controls list, when we need to use a gridview with some column multiplication process that time we need to use javascript to achieve the multiplication. In some scenario it is necessary to create dynamic GridView with BoundField instead of static one. When the control goes out of focus from. by Scott Mitchell. I have a Gridview and I created a textbox and button inside. aspx page and bind a Data using SqlDataSource or msaccess. I can not get it to work: I appreciate the help!. NET , like how to insert, delete and update record in GridView control. NET Gridview Shopping Cart with jQuery By Brij Mohan In this article, You will get how to implement following features in ASP. NET GridView. The code snippet we see today is again. On the other hand, input event doesn't trigger on keyboard input and other actions that do not involve value change, e. net textbox value using javascript, how to split string date into day month and year from code-behind, validate checkboxlist using jquery, validate radiobuttonlist using javascript and other more cracking tutorials on Asp. The simplest example given by Professor Thimbleby of a possible problem when using an immediate-execution calculator is 4 × (−5). net) View 1 Replies Similar Messages: C# - Calculate Total Value In Dynamically Generated Textbox Feb 24, 2010. Javascript supports arithmetic operators like addition, subtraction, multiplication, division and so on. Multiplying two textbox values - posted in HTML, CSS and Javascript: I am trying to calculate two values that a user would input in two text boxes. This is an epic article where you learn how to build a calculator from scratch. If the value is false and the value in width option is set, then no re-sizing happens whatsoever. watch for is when user releases a key while they are focused on the text box, known as keyup in JavaScript. Bind list item column to drop down list in SharePoint using jquery and JavaScript (JS File jsom code) Now create a JS File whereas I created "VendorJsFile. Net Using C# 12/31/2014 - By Pranav Singh 0 This article will show you how you can bind and validate the gridview textbox using jQuery in asp. To make it simpler. I've read, and tried, most of the workarounds but still it posts back!! All the markup is generated dynamically from code-behind and inserted into a page that is part of a Master Page, from the init event. Now call the JavaScript CalculateTotals() function on “onkeyup” or “onkeypress” event like this:. I feel this will help me understand m. Let's say I want item X in the dropdown field to update a layer. Net GridView row using JavaScript when it is being edited. net gridview. Edit, Update, Delete in Gridview in asp. Hi everybody! I've run into some trouble with a dropdown field. Click here for output: Note how we got to the value of the element of the form object-by going down the JavaScript object tree. To get the Primary Key reference we can use the DataKeys collection of the GridView. How to process textbox values/ call textbox values in JS through a Java program. The example here is this article is slightly different, as I’ll bind the GridView control to a database table using SqlDataSource. Bind and Validate GridView TextBox Value by jQuery In Asp. I've included the text with value and used parseInt. net textbox value using jquery, how to split string date into day month and year from code-behind, validate checkboxlist using jquery, validate radiobuttonlist using javascript and other more cracking tutorials on Asp. This blog is just to illustrate how to get textbox value from GridView using JavaScript C# Corner Annual Conference 2020 Tickets on Sale Now x Top 10 Social Media Influencers. net, JavaScript, jQuery and GridView here. RowDataBound ' get the commandargument Dim index As Integer = Convert. I want to write javascript code to calculate 2. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. So in this example, if shrinkToFit is set to false, column one will have a width of 80 pixels, column two will have a width of 120 pixels and the grid will retain the width of 300 pixels. NET, and Class. how to get asp. I want to use JavaScript TextChange(onChange) event to change the value of a cell in GridView. Net Using C# 12/31/2014 - By Pranav Singh 0 This article will show you how you can bind and validate the gridview textbox using jQuery in asp. I recently got a request from a few readers who wanted an article on this. NET Gridview get changed at the time of rendering. I've included the text with value and used parseInt. In my previous tutorials, I'd explained about how to get and set asp. NET Articles,Gridview articles,code examples of. This example also demonstrates the need for casting raw input text to a float (number with a decimal) For ease of understanding (versus efficiency), only one operation per line. Net GridView row using JavaScript when it is being edited. net controls on textbox value change or typing text in Asp. Then I could use another operator on that total with another number, and so on, until the clear button is pressed. javascript to calculate 2 cells of a row of grid view and assign Hi friends, I am using asp. it would be to show the current page and number of pages[index]. The code snippet we see today is again. In this article I'm going to explain how to formatting GridView or dynamically change GridView cell color based on cell value in ASP. How to get the reference of GridView footerRow in a JavaScript function. There are several rows each with a quantity field, price and total. There are 5 possible ranges and labels. An input textbox used for editing mode also holds the value of the Todo item content. Inshort on text change event, we calculate the sum of all input values entered in the table column, i. Using ajax, though you can go to the server to get server data. I need to get the value of the textbox upon button click. Then these found valuesV 1, R s and V 2 is entered in the above calculator to find the input impedance to be calculated. NET A common requirement in our projects is to select a GridView row and pass multiple values of the selected row to another page. If GridView is databound from a database, we can get total sum with SUM(COLUMN) OVER() TotalSum and update GridView footer label in RowDataBound by retrieving TotalSum. Step1: Create Textbox and CustomValidator set ControlToValidate and ErrorMessage properties of CustomValidator. how to set value for textbox using javascript? The element, as with most HTML form inupt elements, uses the `value` attribute to get and set its text. Use jQuery to Get Textbox Value or Set Textbox Value or how to get textbox value using jquery or how to set textbox value in jquery ASP.