Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Appukuttan
(14)
srinivasa reddy...
(12)
Tejinder Singh ...
(12)
Last 7 Days
Appukuttan
(539)
Babu Akkandi
(415)
divya
(294)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
How to get selected value from dropdownlist in Repeater Itemcommend
Posted Date:
31 Jul 2008
Total Responses:
0
Posted By:
Muthukrishnan
Member Level:
Gold
Points
: 1
i want get t selectedvalues from dropdownlist in repater item command.
protected void RptSection_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Save")
{
ObjSectionCon.SectionID = int.Parse(e.CommandArgument.ToString());
Repeater RptSec= (Repeater)Accordion1.FindControl("RptSection");
//string ddlTemp = ((DropDownList)RptSec.Items[e.Item.ItemIndex].FindControl("ddlTemplate")).SelectedValue;
string ddlTemp = ((DropDownList)e.Item.FindControl("ddlTemplate")).SelectedItem.Text ;
//string ddlTemp1 = ddlTemp.SelectedItem.Text;
ObjSectionCon.TemplatePath = ddlTemp;
DropDownList ddlContrastingSec = (DropDownList)RptSec.Items[e.Item.ItemIndex].FindControl("ddlCSetions");
ObjSectionCon.ContrastingSectionID =int.Parse ( ddlContrastingSec .SelectedValue );
Label lblmsg = (Label)RptSec.Items[e.Item.ItemIndex].FindControl("lblmsg");
if(ObjSectionBL .SaveTemp_ContrastingSections (ObjSectionCon ))
{
lblmsg.Visible = true;
lblmsg.Text = Messages.Display(Resource.Save);
}
else
{
lblmsg.Visible = true;
lblmsg.Text = Messages.Display(Resource.Failure);
}
}
}
With Regards,
Muthukrishnan S,
Software Programmer
Mobile : +91 99945 84009
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Post Reply
You must
Sign In
to post a response.
Next :
Very urgent pls.....- Dropdown list
Previous :
kindly how to do this below task
Return to Discussion Forum
Post New Message
Category:
ASP.NET
Related Messages
Cascading Drop Down
auto incrementing varchar variable
ASP.NET with C#.NET
Custom Expression
how to insert values in asp.net
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use