I have a problem in my C # ASP.NET application where the id and name tags change at runtime with the prefix "MainView_" and "MainView $" respectively. So my code is:
<asp:Button ID="OKToContinueCheckInButton" runat="server" CausesValidation="False" Visibility="false" Style="display: none" OnClick="btnOKToContinueCheckIn" />
<script type="text/javascript">
</script>
becomes:
<input type="submit" name="MainView$OKToContinueCheckInButton" value="" id="MainView_OKToContinueCheckInButton" Visibility="false" style="display: none" />
<script type="text/javascript">
</script>
getElementID () returns null since the name has changed. Can someone tell me why this is happening, and if there is a way to disable it from changing the id and name values. Thanks!
-Sephrial
source
share