I have a table called JobProfile which has ProfileID, AddedDate, Username, IndustryID, LocationID, Skills.
Now data to this table will be coming from 3 different forms:-
1. Industry.aspx contains Industry name in a dropdownlist and id as value for the dropdownlist. When the user clicks submit,
industryid will be inserted to the database by using an insert/update statement.
2. Location.aspx contains a dropdown list which contains id as its value and when the user presses submit the id is inserted
using an INSERT/UPDATE STATEMENT.
3. Skill is a free text when the user submits again I am calling an INSERT/UPDATE STATEMENT.
In my master page, I have menu called Industry, Location and Skill. The user can choose any and start filling the respective form.
ProfileID is an int which will increment automatically.
I have stored procedures called InsertIndustry, InsertLocation and InsertSkill. In each of the stored procedure,
before calling insert/update statement, I will check whether a record with the SAME USER NAME is existing or not. If existing I will call an update statement
else an insert statement.
For EXAMPLE if the user visits Industry.aspx first and inserts the record, then for Location.aspx and Skill.aspx I will be calling only UPDATE statement.
Am I doing the CORRECT WAY?
Loading
Vijaya KadiyalaPosted Oct 9, 2008, 1:51 PM
Hi, What ever you are doing that is right, with the logic that you have but is it possible to have all 3 pages in BIG container i.e. one single page and have all these as small frames. This way the ender dont have to go 3 different pages to update his information.
I guess you are building a portal some what similar to resume/job site.
Thanks -- Vj
http://dotnetvj.blogspot.com
http://oravj.blogspot.com
Vijaya KadiyalaPosted Feb 19, 2009, 12:01 PM
HI Yogesh,
What problem you have while inserting the data into Identity column?
Thanks
Vijaya Kadiyala
Http
://dotnetvj.blogspot.comLisaPosted Feb 17, 2009, 4:45 AM
yes it seems to be a fine logic
but why are you asking it.?
are you getting any sort of error..
if not then its fine.
Thanks,
Lisa
yogesh aniyaPosted Nov 7, 2008, 2:26 AM
Vijaya KadiyalaPosted Oct 10, 2008, 12:49 PM
Hi
Probably you need to put in different direction i.e. If the user want to enter all the 3 details then he has to do several operations instead if he can see everything in single page he can all 3 at one shot.
Thanks
-- Vjhttp
://dotnetvj.blogspot.comhttp
://oravj.blogspot.comr pPosted Oct 10, 2008, 6:39 AM
it should take to Location page and when he clicks on Skills link, it should go to skills page. Can I do it using multiview or something?
Thanks,