I have a form that has a lot of selections for various reasons, I only want to pass those forms The user has been selected. In other words, each SELECT is something like this:
& lt; SELECT name = field001 & gt; & Lt; Option value = -1 & gt; Please select a value & lt; / Option & gt; & Lt; Option value = 1> 1 & lt; / Options & gt; & Lt; Option value = 2> 2 & lt; / Options & gt; & Lt; Option value = 3> 3 & lt; / Options & gt; & Lt; / Select & gt;
Usually, only one or two will be selected at one time, and I want to pass only the selected people in the form. I'm guessing that there is a need to unset the input of -1 in Javascript, but I'm not sure how to do it, and it is also a surprise that there can be a standard way to talk about this type of thing .
When you post a form, it will send every control value to the server. Need to stop, I think your best option is to overwrite onsite action and redirect to a new instance of the same page that you want on querystring.
Keep in mind that this will increase your code complexity and make it harder to maintain. My opinion is that you will not be able to achieve enough performance, which will make your effort worthwhile, but it
Comments
Post a Comment