Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all......
i created table with three fields i field is created in design time remaining two fields may filled at run time can any one suggest me the way of filling fields or else give sample code please and one more thing is i am confirm the fields after insert that means after reloading the values must be presented in the table(and also re open the page)
Posted
Comments
Sandeep Mewara 2-Dec-10 6:28am    
Not clear.
Sunasara Imdadhusen 2-Dec-10 6:58am    
Not clear!!
Sunasara Imdadhusen 2-Dec-10 6:59am    
you want to save value in DB using code?
wizardzz 2-Dec-10 10:03am    
Could you please elaborate? I can't tell which direction the data is flowing. From the app to the DB?
MCY 2-Dec-10 15:42pm    
Could you please restate your question by using punctuation marks?

1 solution

Not so clear. But,,,,,,,,

As I got u have 3 fields in table & 1 is filled with value. Remaining 2 are unfilled.
You can create a query like

INSERT INTO TABLENAME(COLUMN2,COLUMN3) VALUES(VAL2,VAL3)

and u can fill at run time using this query in the remaining 2 fields of table.
And page will be updated automatically most probably after this event finishes.:thumbsup:
 
Share this answer
 
Comments
JOAT-MON 2-Dec-10 20:40pm    
Or, if you need to fill in the the other two fields based on the first field:
UPDATE tablename SET column2 = value2, column3 = value3 WHERE (column1 = value1)
sandipapatel 2-Dec-10 21:58pm    
Thanks, for showing a better way JOAT-MON

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