When clicking on the submit button when adding a new service, if errors exist, the focus of the page goes to the top of the screen when the submit button is clicked. The focus should stay in the service details panel so that the user can see the error messages.
kalyanbabu
0
Newbie Poster
Recommended Answers
Jump to Postput your code in try catch block
void button_click(object sender,EventArgs e)
{
try
{
your code goes here
}
catch
{
myErrorPanel.focus();
}
}
All 2 Replies
Reply to this topic
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.