Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

ASP.NET web forms label set by jquery not updated in database

$
0
0
label field will not update in database

control is :
<asp:Label ID="RiskRatingLabel" runat="server" Text='<%# Bind("RISKST_Description") %>' cssClass="RiskRatingLabel" ForeColor="Black" Font-Bold="true">

jquery updates the label via onchange events of other controls:
$('.RiskRatingLabel').text(RatedRiskText);

change is visible in page on certain events firing

controlparameter used in update statement:
<asp:ControlParameter Name="RiskRatingLabel" ControlID = "FormView1$RiskRatingLabel" PropertyName = "Text" Type="String" />

updatecommand = "update table set field1 = @value1, field2 = @value2, etc,...,
RiskRating = @RiskRatingLabel, etc...

This particular field as well as many other fields are Nullable,
all other fields are being updated except this one...

I can see the label value being updated on the page, yet it doesn't seem to pass through to the update command...

Any ideas?

Viewing all articles
Browse latest Browse all 3938


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>