Last post Aug 06, 2019 11:45 AM by Yusuf_A
Aug 05, 2019 09:47 AM|Yusuf_A|LINK
I can't get values from the drop-down menu.
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="value" Selected="False">
Dim lang As String = DropDownList1.SelectedValue
This cause to getting invaled url and getting a 400 error and xml exception
I can't track the error because the code works in some places.
The code works
here (a blank page with user control) and
here (user control inside an update panel)
But it doesn't work
here (user control inside an update panel) and I get "value" as value
(whene click red play arrow button to get youtube caption)
How I can fix or track this error
Aug 05, 2019 10:29 AM|AddWeb Solution|LINK
You have to use selecteditem.value instead of selectedvalue
And Use IsPostback event also.
Refer Link :
Aug 06, 2019 03:04 AM|samwu|LINK
Based on your description and the link , I cannot reproduce your problem.
400 error means that bad request. the server cannot or will not process the request due to a significant client error (for example, a malformed request syntax, too large size, invalid request message, or spoofed routing request).
More information about 400 error you can refere to this link:https://airbrake.io/blog/http-errors/400-bad-request
If you haven't solved the problem yet, please post you code that can reprodece your problem.
Aug 06, 2019 11:45 AM|Yusuf_A|LINK
Thank you for your answer i fix the problem by enable view state
UserCtrl.EnableViewState = True;