Click here to Skip to main content
15,902,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET Save Search Criteria Pin
Deflinek10-Oct-13 2:59
Deflinek10-Oct-13 2:59 
AnswerRe: ASP.NET Save Search Criteria Pin
Abhinav S13-Oct-13 17:31
Abhinav S13-Oct-13 17:31 
QuestionPreserve method call vaues in master page and use it Pin
srinimuk9-Oct-13 23:32
srinimuk9-Oct-13 23:32 
QuestionHow one can debug an ASP.NET Application on remote computer without any local Visual Studio ? Pin
fgk549-Oct-13 3:22
professionalfgk549-Oct-13 3:22 
AnswerRe: How one can debug an ASP.NET Application on remote computer without any local Visual Studio ? Pin
Deflinek10-Oct-13 3:13
Deflinek10-Oct-13 3:13 
QuestionDropdown Pin
Tripat Bala Singh9-Oct-13 2:35
Tripat Bala Singh9-Oct-13 2:35 
GeneralRe: Dropdown Pin
thatraja9-Oct-13 2:55
professionalthatraja9-Oct-13 2:55 
GeneralRe: Dropdown Pin
Tripat Bala Singh9-Oct-13 3:33
Tripat Bala Singh9-Oct-13 3:33 
protected void btnSave_Click(object sender, EventArgs e)
{
try
{
if (btnSave.Text == "Save")
{
BOStudentDetails ObjStudent = new BOStudentDetails();
ObjStudent.SchoolID = Convert.ToInt32(drpSchool.SelectedValue);
ObjStudent.ClassID = Convert.ToInt32(drpClass.SelectedValue);
ObjStudent.StudentName = txtStudentFname.Text+ ' ' + txtStudentMname.Text + ' ' + txtStudentLname.Text;
//ObjStudent.StudentPhoto = "fsdfs";
ObjStudent.StudentDob = txtdob.Text;
ObjStudent.StudentAddmissionDate = txtAdmissionDate.Text;
ObjStudent.StudentFthName = txtFthName.Text;
ObjStudent.StudentMthName = txtMthName.Text;
ObjStudent.StudentCategory = Convert.ToString(drpCategory.SelectedItem);
ObjStudent.StudentGender = Convert.ToString(drpGender.SelectedItem);
ObjStudent.StudentMobile1 = txtMobile1.Text;
ObjStudent.StudentMobile2 = txtMobile2.Text;
ObjStudent.StudentLandline = txtLandlinePhon.Text;
ObjStudent.StudentDiscription = txtDiscription.Text;
ObjStudent.StudentPrmAdd = txtPrmAdd.Text;
ObjStudent.StudentPrmState =Convert.ToString(drpPrmState.SelectedItem);
ObjStudent.StudentPrmCity = Convert.ToString(drpPrmCity.SelectedItem);
ObjStudent.StudentPrmLocation = Convert.ToString(drpPrmLocation.SelectedItem);
ObjStudent.StudentPrmPin = txtPrmPin.Text;
ObjStudent.StudentCrntAdd = txtCrntAdd.Text;
ObjStudent.StudentCrntState = Convert.ToString(drpCrntState.SelectedItem);
ObjStudent.StudentCrntCity = Convert.ToString(drpCrntCity.SelectedItem);
ObjStudent.StudentCrntLocation = Convert.ToString(drpCrntLocation.SelectedItem);
ObjStudent.StudentCrntPin = txtCrntPin.Text;

if (flupldStdPhoto.HasFile)
{
string StudentExtension = Path.GetExtension(flupldStdPhoto.FileName);

if (!StudentExtension.ToLower().Equals(".gif")
&& !StudentExtension.ToLower().Equals(".jpg")
&& !StudentExtension.ToLower().Equals(".jpeg"))
{
Functions.MsgBox("Director's sign is not in correct format." +
System.Environment.NewLine +
"Signature sign should be gif or jpg or jpeg image.");
return;
}



flupldStdPhoto.SaveAs(Server.MapPath("~/Admin/Student Photo/") + flupldStdPhoto.FileName);


ObjStudent.StudentPhoto = flupldStdPhoto.FileName;

}
balStudentObj.InsertStudent(ObjStudent);
Clear();
ShowAlert(this.Page, "Record inserted successfully");

}

else if(btnSave.Text=="Update")
{

}
}
catch
{
}

}

DAL
----------------
public void InsertSchools(BOStudentDetails ObjStudent)
{
SqlParameter[] paramList =
{
new SqlParameter("@SchoolId",ObjStudent.SchoolID),
new SqlParameter("@ClassId",ObjStudent.ClassID),
new SqlParameter("@StName",ObjStudent.StudentName),
new SqlParameter("@StDob", ObjStudent.StudentDob),
new SqlParameter("@StAdmDate", ObjStudent.StudentAddmissionDate),
new SqlParameter("@StFthName", ObjStudent.StudentFthName),
new SqlParameter("@StMthName", ObjStudent.StudentMthName),
new SqlParameter("@StCat", ObjStudent.StudentCategory),
new SqlParameter("@StGender", ObjStudent.StudentGender),
new SqlParameter("@StMob1", ObjStudent.StudentMobile1),
new SqlParameter("@StMob2", ObjStudent.StudentMobile2),
new SqlParameter("@StLandline", ObjStudent.StudentLandline),
new SqlParameter("@StDiscription", ObjStudent.StudentDiscription),
new SqlParameter("@StprmAdd", ObjStudent.StudentPrmAdd),
new SqlParameter("@StprmState", ObjStudent.StudentPrmState),
new SqlParameter("@StprmCity", ObjStudent.StudentPrmCity),
new SqlParameter("@StprmLoc", ObjStudent.StudentPrmLocation),
new SqlParameter("@StprmPin", ObjStudent.StudentPrmPin),
new SqlParameter("@StcrntAdd", ObjStudent.StudentCrntAdd),
new SqlParameter("@StcrntState", ObjStudent.StudentCrntState),
new SqlParameter("@StcrntCity", ObjStudent.StudentCrntCity),
new SqlParameter("@StcrntLoc", ObjStudent.StudentCrntLocation),
new SqlParameter("@StcrntPin", ObjStudent.StudentCrntPin)

};

SqlHelper.ExecuteNonQuery(CommandType.StoredProcedure, "StudentDetail_Insert_Sp", paramList);
}
GeneralRe: Dropdown Pin
thatraja9-Oct-13 4:40
professionalthatraja9-Oct-13 4:40 
GeneralRe: Dropdown Pin
Tripat Bala Singh9-Oct-13 7:34
Tripat Bala Singh9-Oct-13 7:34 
AnswerRe: Dropdown Pin
thatraja9-Oct-13 3:25
professionalthatraja9-Oct-13 3:25 
AnswerRe: Dropdown Pin
Ajay_Saini9-Oct-13 6:47
Ajay_Saini9-Oct-13 6:47 
GeneralRe: Dropdown Pin
Tripat Bala Singh10-Oct-13 17:36
Tripat Bala Singh10-Oct-13 17:36 
GeneralRe: Dropdown Pin
Ajay_Saini10-Oct-13 22:52
Ajay_Saini10-Oct-13 22:52 
AnswerRe: Dropdown Pin
anil pathak9-Oct-13 22:31
anil pathak9-Oct-13 22:31 
GeneralRe: Dropdown Pin
Tripat Bala Singh10-Oct-13 17:33
Tripat Bala Singh10-Oct-13 17:33 
RantIE and time to vent Pin
L Viljoen9-Oct-13 0:21
professionalL Viljoen9-Oct-13 0:21 
GeneralRe: IE and time to vent Pin
Richard MacCutchan9-Oct-13 0:50
mveRichard MacCutchan9-Oct-13 0:50 
Questionhow to split an excel workbook into two in C# Pin
antony beula8-Oct-13 21:23
antony beula8-Oct-13 21:23 
AnswerRe: how to split an excel workbook into two in C# Pin
Richard MacCutchan8-Oct-13 23:24
mveRichard MacCutchan8-Oct-13 23:24 
Questionhey frnds help me out . Pin
Mr.VJ8-Oct-13 21:06
Mr.VJ8-Oct-13 21:06 
AnswerRe: hey frnds help me out . Pin
thatraja8-Oct-13 21:12
professionalthatraja8-Oct-13 21:12 
Questioni have prblrm in ajex auto complite text box need help plz Pin
eng.mohamed ali8-Oct-13 13:33
eng.mohamed ali8-Oct-13 13:33 
QuestionRe: i have prblrm in ajex auto complite text box need help plz Pin
Deflinek10-Oct-13 3:25
Deflinek10-Oct-13 3:25 
QuestionAsp.net Identity MVC5 + Nhibernate Pin
roscez7-Oct-13 6:47
roscez7-Oct-13 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.