Click here to Skip to main content
16,020,459 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a page where multiple vacancies are listed in a list view control.

A candidate(job seeker) can visit this page and apply to a vacancy.

When a candidate check a particular vacancy details and click on apply now button a div(name=first) will be expanded which cantains candidate information fields like first name, last name, attach resume and captcha.

this same div will be used for other vacancies so a candidate can apply to multiple vacancies.

Do you guys have such an example.

Also i am facing different issues.

1. When a candidate fill the control fields in a div the same content will be repeated when he will apply to other vacancies.

2. captcha is not refreshed or the captcha image is not shown if candidate fill the form and if captcha shows error and he will apply for second vacancy.

3. dotnet validation controls not working in the div

4. Calendar controls not working in the div.

Any help will be appreciated. :)
Posted

1 solution

I don't think so. The question contains some absurdity: a div on "on multiple places of the same page" is not the "same div" by definition.
You need to do the following:
  • Review your UI design to avoid identical of very similar content on different places on a page. Not only it's bad for programming and maintenance, it will also confuse the users and provoke their mistakes. Instead, thing of the principle: "Don't Repeat Yourself": http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[^].

    For example, you can provide a single place to enter the applicant data. It could be done just once, based on authentication and user's profile. Even if you need to enter such data on the page of the application, you can have it in a single place. The set of vacancies to apply for could be a separate set of check boxed generated by your code behind based on the search results.
  • Even if you have some almost identical fragments of HTML on the same page (best avoided though), you need to re-use this code leveraging the benefits of ASP.NET server-side code. For example, you could have some textual template of the HTML fragment, with some parameters you substitute during runtime. You code behind should read the template from some resource, substitute parameters and generate some HTML on the fly, which should be put in the HTTP response.
  • Good luck,
    —SA
 
Share this answer
 
Comments
Sandesh M Patil 5-Jun-14 9:03am    
Thanks Sergey, client requirement changed now.
Sergey Alexandrovich Kryukov 5-Jun-14 12:20pm    
Proper thorough dialog with the customer always can move situation to better one. :-)
Good luck, call again.
—SA

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