C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Validation


Posted Date: 23 Jan 2008      Total Responses: 1

Posted By: pavithra       Member Level: Bronze     Points: 2


how to check or validate whether the value in textbox is equal with database in C#.net .

For eg: I need to get the other datas as empname, place etc based on the empid for updating or other purpose.




Responses

Author: sandeep kumar    23 Jan 2008Member Level: SilverRating:     Points: 2
just get the valuses form the datebase and catch them in the dataset and check for the condition like
if( textbox1.text == ds.tables[0].rows[0].itemarray[particular colomn id])

if this condition executes then the value in the textbox and the value in the database are same.

there mite be some other simpler ways but this wat i use regulerly.


Post Reply
You must Sign In to post a response.
Next : what is the physical location SQL Master data Base(urgent)
Previous : How to disable a dropdown list if it loads only one item
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use