Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Henryas

    Burning to an Audio CD?

    Does anyone know how to burn songs to an Audio CD using C#? Thanks.
  2. Henryas

    DataGrid

    Hi, How do you get selected data from DataGrid after it has been sorted? I have a DataGrid bound to a DataTable. When a user clicks on one of the rows, my program will get the row index (using DataGrid.CurrentRowIndex property) from the DataGrid, use the index to retrieve the appropriate...
  3. Henryas

    loading stylesheets at runtime

    Is the 'cssLink' variable properly declared in your header.ascx.cs? You should see something like this in your variable declaration. private System.Web.UI.Controls.Literal cssLink;
  4. Henryas

    Coud you guys take a look?

    Your main page is the first thing that people see about your site. You should put some catchy marketing pitch on the main page (eg. discounts, promotion, description, etc.) to encourage people to click your other links and explore your site. From my point of view when I first arrived at your...
  5. Henryas

    sql database help

    If you are doing a login function, this may help. You don't need to retrieve both username and password to validate a user. Either one should suffice. The following example only retrieve the password. SqlConnection connection = new SqlConnection(connectionString); SqlCommand command = new...
  6. Henryas

    Frames on aspx web page

    You can add frames or any HTML codes into aspx page. The easiest way I find is by using web control's panel. Draw the panel on the specific region where you want to alter. Then, switch to the view code mode, use the panel to add literal control containing the html codes you want to add...
  7. Henryas

    Forms Authentication multiple websites

    I am assuming that your users are shown another login page right after they log on. Hence, they have to login twice? If that's the case, I had a similar problem earlier. It turns out that, for my case, the problem comes from using Server.Transfer() with storing Session state. So my initial...
  8. Henryas

    ASP.NET and cross-browser compatibility issue

    Aaarrgghh!! I am pulling my hair right now. How do you guys deal with non-IE browsers that do not display your web controls properly? They make my user interface looks horribly, horrendously, and undescribably ugly. Henry
  9. Henryas

    Problem with reading web.config

    Ok, I found the problem. I am using NUnit to test my project and apparently System.Configuration.ConfigurationSettings.AppSettings does not work in standalone mode, such as for unit testing. That's why it doesn't read web.config for my test unit. So I guess I have to resort to manual XML...
  10. Henryas

    Real big deployment problem

    I think there maybe some referencing problem there. How did you deploy your application? If the production server supports FrontPage extension, try deploying using FrontPage extension and see if it works.
  11. Henryas

    Problem with reading web.config

    Thanks for the reply, Henna. I tried your suggestion but the problem still persist. System.Configuration.ConfigurationSettings.AppSettings["connectionString"] still return null, as if the key "connectionString" does not exist. In fact, ConfigurationSettings.AppSettings.Count returns 0...
  12. Henryas

    Problem with reading web.config

    Ok, it has nothing to do with web service project. I tried it on a web application project, and I have the same problem. I suspect that the appsettings in the web.config is not read at all. Is there any way to verify this?
  13. Henryas

    I want to kill a cookie.

    Have you tried Request.Cookies.Remove(string cookiename)? Henry
  14. Henryas

    Problem with reading web.config

    Hi, I have a problem with reading web.config. I can't seem to figure out what's wrong with it. Below is a snippet of my codes //web.config <configuration> <appSettings> <add key="connectionString" value="server=(local);user=username;password=blabla;database=mydb;Trusted_Connection=yes"...
  15. Henryas

    SQL/MYSQL question

    Hello Obislavu, Thank you for the reply. I did open the connection. I just didn't include it in the my code snipet. When I tried your suggestion, the following error occurs: "Specified cast is not valid." right at the point where "Int32 count = (Int32)cmd.ExecuteScalar();" is. I am not...
  16. Henryas

    SQL/MYSQL question

    Hi, How do you programmatically check the existence of a data in a SQL/MYSQL database? I have tried to do the followings, but it does not seem to work: string command = "SELECT COUNT(*) FROM table WHERE username = 'DoesNotExist'; MySqlCommand cmd = new MySqlCommand(command,connection)...

Part and Inventory Search

Back
Top