|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Quotes, tags, and "greater than" signsASP.NET 2.0 page, but I'm not sure how to get the "greater than" sign (>) into the quotes without it thinking it's a tag. Can this be done? Here's my code (notice where it says SelectCommand= [multi-line quote]): ------------------------- <asp:SqlDataSource ID="EntryDataSource" ConnectionString="<%$ ConnectionStrings:JIGSAWExp2 %>" SelectCommand= "Select Name, Address, Date WHERE Name=@CustomerName AND Date >= @MinimumDate" runat="server"> <SelectParameters> <asp:SessionParameter Name="CustomerName" SessionField="CustomerName" Type="String" /> <asp:SessionParameter Name="MinimumDate" SessionField="MinimumDate" Type="DateTime" /> </SelectParameters> </asp:SqlDataSource> ------------------------- I've tried a few things, like putting the whole quote inside <% %>, putting each line of the quote inside <% %>, and just ">=" inside <% %>, but none of that worked. Should I just give up and set the command in the code-behind or is there some easy way to do this I'm just missing? Thanks in advance, -Dan Try using the HTML escaped version.
> becomes > < becomes <so, you would write: AND DATE >= @MinimumDate Joshua Flanagan http://flimflan.com/blog
Other interesting topics
PreInit event in usercontrol
Select string building in C# and ASP.NET Populating FormView (asp.net 2.0 using vb.net) HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData' do Unable to create the Web (W2003Std + Framework 2.0) remotely Adding domain user to local groups download trial version of vs2005 Finally moving from classic asp to ASP.NET 2.0 w/Visual Studio 2005 Application_Error does not fire need help to convert to VB |
|||||||||||||||||||||||