powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / не получается вставить hidden field в контрол
1 сообщений из 1, страница 1 из 1
не получается вставить hidden field в контрол
    #38814288
Lepsik
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
  <input  type="hidden" runat='server' id="sFishType" value="1" />



вот здесь печатается единичка
Код: plaintext
1.
<table><tr><td><% =sFishType.Value %></td>  </tr></table>   




А тут ошибка:

Код: plaintext
1.
2.
3.
4.
    <asp:SqlDataSource ID="CTRL" runat="server" 
            ConnectionString="<%$ ConnectionStrings:fishConnectionString %>" 
            SelectCommand="select * from dbo.fn_get_fish_list_type( <% =sFishType.Value %> ) ORDER BY fish_name ASC">
    </asp:SqlDataSource>



авторIncorrect syntax near '<'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near '<'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): Incorrect syntax near '<'.]


уже вроде все комбиначии перепробовал - что делать?
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / не получается вставить hidden field в контрол
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]