some basic (!) questions

Discussion in 'ASP.NET / ASP.NET Core' started by mdean99, Jul 18, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. hi
    I am new to ASP.NET and have a background of classic ASP.
    A couple of questions please.

    - how do I associate default.aspx to the domain name?

    - Each web page has a text message which is read from the database.
    It contains basic html code such as <br>, <b></b> etc.
    I can display the text on the page using sqldatasource and a gridview but it
    doesn't format the text.
    - And a really basic question(!).
    The ms web developer 2010 express allowed me to drag the sqldatasource from an option on the left top of the page. This has now disappeared and I cannot see how to get it back!!

    Thanks
     
  2. 1. put default.aspx in the root folder of your site; the rest is automatic
    2. look for the 'HTMLencode' option of the gridview, and turn it off
    3. it's there. scroll down. u probably found it already, right?
     
  3. hi Peter

    The default.aspx problem was because there was a default.asp file in the directory. Removing that allowed the default.aspx file to be picked up.
    The sqldatasource option is in the toolbox option, which is in the view menu option.

    I am using msvw 2010 express. There does not seem to be an HTMLencode option available .

    Michael
     
  4. click in the gridview to select it, then select the little pointy thing to select Geidview properties.
    Select 'Edit columns' and apply selections as appropriate.

    There is a LOT of stuff u can do with a gridview

    Since youre "starting out", you might benefit from studying a copy of ASP.NET 4 Unleashedby Walther et al
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page