User Profile

Collapse

Profile Sidebar

Collapse
markpringle
markpringle
Last Activity: Oct 20 '08, 09:02 PM
Joined: Jul 29 '08
Location: Atlanta
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How do I KEEP leading spaces in an asp.net textbox?

    I am using a very simple multiline textbox (below) to capture text (poems). Many poems require formatting of the first line by including leading spaces. However, on submit, the leading spaces are being removed. I do not want leading spaces removed. How do I keep the leading spaces? There are no SQL Trims being used.

    Code:
    <asp:TextBox ID="PoemText" TextMode="Multiline" Columns="90" Rows="25" runat="server"
    ...
    See more | Go to post

  • Can you provide the link to the two articles? I've alwayed used the sqldatasource control to select data and use on a page. I've never selected data in code to use on a page - only accessed data in code to update or delete....
    See more | Go to post

    Leave a comment:


  • That's the point. I don't want to use a control to display the data. I just want to use the data to compare to in my code behind. I don't know how (or if it is possible) to access sqldatasource in my code behind....
    See more | Go to post

    Leave a comment:


  • ? Place the contents of a database field on a page w/o being in a grid, view, etc

    ASP.NET 3.5 C#
    I very simply want to place the contents of a database field anywhere on a page without adding a bulky gridview, listview, formview, etc on a page? Is this possible? With classic asp you could just do this...
    Code:
    <%=(recordsetname.Fields.Item("databasefield").Value)%>
    See more | Go to post

  • markpringle
    started a topic Ho do I access sqldatasource in Code Behind?
    in .NET

    Ho do I access sqldatasource in Code Behind?

    This is my sqldatasource this is on the page:

    Code:
    <asp:sqldatasource runat="server"  ID="DS_CheckUserName"  
        ConnectionString="<%$ ConnectionStrings:SQL2005_355184_ConnectionString %>" 
        SelectCommand="SELECT [UserName] FROM [TBL_Poets] WHERE ([UserName] = @UserName)">
        <SelectParameters>
            <asp:FormParameter FormField="UserName"
    ...
    See more | Go to post
No activity results to display
Show More
Working...