c# - Select DropDownList item inside of a Repeater control -
I have a repeater with some items and one of them is a dropdown list and a button.
The goal here is to associate an item with the selected repeater line from the selected DPL.
ASPX code:
& lt; Asp: repeater id = "sharedplanslist" runat = "server" onitemdatabound = "shared plan list_itimate datetime" command = "shared plan list_it command" & gt; & Lt; ItemTemplate & gt; & Lt; Div & gt; & Lt; H1 & gt; & Amp; Middot; & Lt;% # Eval ("Product Name")% & gt; & Lt; / H1> & Lt; Div & gt; Assassier Le Domains: & lt; ASP: Dropdown List Runat = "Server" ID = "Domain List" /> & Lt; ASP: Button ID = "Associated Demyne" text = "esoior" runat = "server" command agreement = '& lt;% # container.datetime% & gt;' / & Gt; & Lt; / Div & gt; & Lt; Div & gt; Domain: & lt; ASP: Bulleted List Runat = "Server" ID = "Shared Plan Documents" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt;
Problem:
When I click on the button, I get an invalid postback or callback exception every time (Invalid postback or callback argument. Event validation configuration Or the & lt;% @ page EnableEventValidation = "true"%> in one page. For security purposes, this feature confirms that postback or callback events are generated from the server control which is basically They were given If the data is valid and expected, use it to verify the postback or callback data for the ClientScriptManager.RegisterForEventValidation method.). But everything really looks really standard without foreigners. I do not add anything or even control by javascript.
I have seen solutions where you & lt; Pages that have enabled envilitude = "false" />
in the web .config but I'm not sure that this is a good solution because I want to make sure to keep the asp.net built-in security model .
Is there any work-around?
I can not be sure of anything but a little bit of your code (which I have to correct this other Does not have time), but can you verify that you are a criminal commander telling your button? If you remove it, then what error does it throws?
If so, you can call each line in the OnItemDataBound
handler
client script. Recognition for the Registrar ("Associate Demin", -> CommandArgahair & lt; -);
Comments
Post a Comment