Lucas Ngobeni

Lucas Ngobeni

  • NA
  • 190
  • 3.9k

get and set modifier

Aug 11 2016 11:48 AM

Dear everyone

I have created a class and call it Employee. I want to call it on my aspx page using  submit button. on my aspx page I have textbox which will save my data into database I called my Textbox txtemployeeNo.

how to save this data into data from my txtemployeeNo textbox
 
 
this is where I'm calling my call 
 
protected void button1_click(object sender , EventArgs e)
{
 
Employee emp = new Employee();
 
//please add the missing code here. 
 
 
 
regards
 
thanks in advance  
 

Answers (1)