Help on Save Function

Posted by Vijayar under C# on 12/15/2011 | Points: 10 | Views : 842 | Status : [Member] | Replies : 5
HI

I have a dropdown with multiple selection ,to which i will bind classes .i.e. first class,second class .....I have a text box when i enter some text in that and click on save button.the message should be saved for each and every student in that class.how to do this .explain me with an example

vijaya


Responses

Posted by: Hmanjarawala on: 12/15/2011 [Member] Bronze | Points: 25

Up
0
Down
Will you elaborate this requirement?

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
HI
I am having one check box list where i am binding class names i.e. first class,second class ....I am using a text box to enter message when i click on save button the message should be saved for each and every student in the class selected in list box.If i select 2 classes first and second then that message should be saved for 2 classes.How to get all student information on selection of class.


or i need to send sms for parent mobile number for the selected classes

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 12/15/2011 [Member] Bronze | Points: 25

Up
0
Down
on Save button click
1st Fetch all student list for checked classes in CheckboxList
2nd Iterate loop on each record of that list and save accordingly

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
If Possible Please explain me with an attachment.It will be very helpful for me

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
On click i write the code the code as after that please help me
try
{
string chkclassid = "";
if (chkclass.SelectedItem == null)
{
chkclassid = "0";
}
foreach (System.Web.UI.WebControls.ListItem item in chkclass.Items)
{


if (item.Selected == true)
if (chkclassid == "")
{
chkclassid = item.Value;
}
else
{
chkclassid = chkclassid + ", " + item.Value;
}

}

}
catch (Exception ex)
{
logger.Error("General Exception", ex);
}

I am selecting moore than one class in check box.

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response