Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...i am New In AspLearner.....Can Any One Help....
ThankYou
Posted
Comments
Jim Meadors 9-Oct-15 2:18am    
Your question is not really specific enough to give good direction. It sounds like you should get a book on beginning ASPdotNet and start by working your way through the book.

1 solution

I have answered similar question here - How to handle update and insert command on same submit button[^]
Quote:
You should have some primary key field value in a HiddenField or something. So, if it is an existing record, you can get a Id which will be greater than 0, meaning a valid Id.

So, if Id is greater than 0, then update that record, else insert.
 
Share this answer
 
Comments
ASPDevloper 9-Oct-15 2:37am    
ok...thnkx
Welcome. :) Please accept the answer. :)
ASPDevloper 9-Oct-15 3:09am    
hey...hiii,
can u help me about how to create common connection class file in c#.net
And how to use it in project(means Access)
Thankx
I am not getting. What is a common connection class? What are you upto?
ASPDevloper 9-Oct-15 3:15am    
like as SqlConnection related...
Means how to integrate in this one file which access in others file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900