I have one table in my database that I want to update each year. I need to pull two of the column values from my asp.net page and populate the rest from my database already.
I have a budget table for each year, the year updates automatically on my page according to the month of the year. When the month changes to a specific month I need the stored procedure to update itself to add the budget items with a blank amount so that I can enter the amounts manually.
Old Data:
Year Code1 Code1Description Code2 Code2Description BudgetAmt($750.00) Initials
New Data:
NewYear Code1 Code1Description Code2 Code2Description BudgetAmt($0.00) Initials
This so that when I enter editmode on my gridview the codes will already be there just with blank budgetamt for me to update. Does this make sense? Is it something that is possible?
You are having the webpage call the stored procedure? In which case simply create a table with the item codes you want to be populated:
This, when called, would populate a table with the Year, codes, and zeros/blanks for you to fill in.
tablewithcodesin would just be Code1 Code1Description Code2 Code2Description