StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WebForms (How do I?)
»
Event Handler code not running
Event Handler code not running
Post Reply
Like
1
Event Handler code not running
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Marcia G Akins
Marcia G Akins
posted 12 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 322,
Visits: 529
Hi all.
I am a real dummy when it comes to web apps so I can use all the help I can get
I have a simple web form on which I want to populate a date field when the user selects the value "Y" in a dtrop down list.
This is the definition for the drop down list:
<
SFWeb
:
DropDownList
ID
="ddlSigned"
runat
="server"
PopulationType
="BusinessObject"
BindingField
="signed"
BusinessObjectName
="SignOff"
onselectedindexchanged
="ddlSigned_SelectedIndexChanged">
<
PopulationDataSourceSettings
BusinessObjectType
="CI_BusinessObjects.boYesNo"
DisplayFieldNamesAlternate
="dtl_dsc|"
DropDownFormatString
=""
FormatString
="{0}"
MethodToExecute
="GetYesNo;"
ValueMember
="dtl_cde"
/>
</
SFWeb
:
DropDownList
>
protected void ddlSigned_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlSigned.SelectedValue.ToString() == "Y")
{
SignOff.sign_off_dt = DateTime.Today;
txtSignOffDate.Text = DateTime.Today.ToShortDateString();
}
}
The code in ddlSigned_SelectedIndexChanged never gets executed. Why?
What stupid thing am I doing wring and what do I need to get it to do what I want?
TIA
Marcia
Reply
Like
1
Marcia G Akins
Marcia G Akins
posted 12 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 322,
Visits: 529
Well, at least I am gettinmg better at answering my own stupid questions
I forgot to set the drop down list up with AutoPostback = true.
Wish all my problems could be solved this easily
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search