I use GridView to show/edit data in the database. In the GridView there are two columns called mark1 and mark2. What I want to do is when user clicks update, the program should check if the values entered at mark1 and mark2 sum to 100. If they don't the program should cancel the update and show an error message. How do I do it? I use ASP.NET with VB.
ASP gridview: adding two values and validate
434 Views Asked by barack o mama At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in VB.NET
- If...Then...Else Visual Basic 2012
- Detecting whether a mouse button is down in vb.net
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- vb.net Get PrivateMemorySize64 and process id sort by memory size
- Cannot insert values into database
- check validation of an expression with Regex
- VB.NET KeyNotFoundException from String()
- How do i display data that are in between 2 values in a DDL?
- VB.net: How to make original variable value fulfill 2 statements?
- Login form by using a new database, made in VB
- Get Text from listbox in VB.net
- error handing for uploading large size file
- XML Null Element Visual Basic
- Using chart and tooltip
- vb2010 Express - Operator '=' is not defined
Related Questions in DATABASE-DESIGN
- Big data with spatial queries/indexing
- Unique hash/index for time interval
- Best practices for creating a huge SQL table
- Database Design: How should I store user's news preferences in MySQL database?
- Is it recommended to use Node.js for an online room booking web application?
- Storing multiple item settings in database
- Which column type for storing the year field in a table with rows of yearly data
- Best way to setup a i8n in a database
- Database normalization for electricity monitoring system
- Database Design: Unique Billing Assocation
- Is it always a bad practice to have circular relationships in your database design
- One column maps to mutiple columns from different table
- Replicating tables within the database
- mysql one translates table vs multiple translate table
- Nosql database design for complex querying
Related Questions in GRIDVIEW
- change selected gridview cell background in android?
- How to create Gridview click menu in fragment?
- Grid view not displaying Image
- Grid onScroll not being called while scrolling
- set auto grid slide in jquery.gridnav.js
- Getting selectedrow in RowCommand
- Saving only the first row of a gridview to DB
- Linearlayout into cell of gridview
- how to filter a gridview from a stored procedure with a drop down list?
- Add paging buttons to gridview pagersetting set to Numeric
- ASP GridView Calculated column
- Adding image to GridView created in CodeBehind
- nothing happened when i click download button in gridview asp.net
- How to update Label value in Gridview coulmn one by one after completing first count of loop
- Check if gridview row is selected or not with javascript
Related Questions in TEMPLATEFIELD
- Unable to Find Control in RowEditing event for TemplateFields in GridView
- Why the Gridview backgroundcolor property not retaining on clicking link button in template field
- Hiding linkbutton in template field in asp.net gridview control
- Updating Textbox in a templateField with button
- In a GridView, how to add multiple commands to one item template?
- CheckBox in ASP.NET GridView template field does not retain it's value on submit
- Error with edit CommandName on grid view after searching
- Dynamically added TemplateFields in DetailsView do not set bound property
- Subtracting Value of two bonded fields
- State of checkbox lost after postback in a custom template field
- Textbox Currency Formatting
- databind gridview edititemtemplate dropdownlist with sql statement
- Gridview templatefields databind
- ASP gridview: adding two values and validate
- GridView TemplateField bound to SQL Statement?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
take a look at custom validation control. if you provide some code, i can fix it for you if it doesn't work.