1
Answer

How to store for textBox value in one Column in table

Photo of Anil Kumar

Anil Kumar

9y
390
1
Dear Friend, 
I am working on Exam Module.
i have four textbox for 4 option like  option A, option B,option C,option D
 
and i have create table Ans where i have three column and i want insert option like this in my database. 
 
   Id              QuesId                Option 
 1                  1                             A
2                     1                           B
3                     1                           C
4                     1                           D 
5                     2                           A
6                     2                            B   
7                     2                            C
8                     2                           D 
 i have post all value on my controller , but now i have confused that how to save four value in one in database 
 
i am using ASP.net MVC with .aspx page
 
please help 
 

Answers (1)

0
Photo of venkatesh p
NA 7 0 17y
thanks for your reply. i got it. but when i start the service "it shows some errors " please help me to rectify that. the errror was  service could not be started on this computer . since no timely fashion reply from service.
0
Photo of Scott Lysle
NA 28.5k 14.4m 17y
You can start by overriding the OnStart event for your service; in that code you can use Process.Start to kick on some other application (in the below example, I start internet explorer and pass it the URL for MSN as a argument so that whenever the service starts, it opens up MSN in an explorer window)
protected override void OnStart(string[] args) {  System.Diagnostics.Process.Start("iexplore.exe", "http://www.msn.com"); }   Process.Start accepts a couple of arguments, the first is the executable to launch (e.g., iexplore.exe in this example) and the second argument is any optional arguments that the executable may use (in this case, a URL).  Of course the executable can be any executable and may include a full path to that executable and the arguments to the executable are optional.