Hi,
Am doin ma final project usin asp.net which is website for hospital. What i want is when a user tries to create an account with the same name an error msg shud display. When i execute the code it says violation of primary key. I don wan t't to happen. Instead i wan an error msg to be displayed. Since am a beginner i don understand much abt .net... So plz help me to solve dis..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.