I'm coding a site using ASP .NET. I want to use a YM! icon in my site in order for the users to see if this Yahoo ID is online or not. The users can also click on the icon to open the chatting window. Please help me! Ich liebe .NET :)
Thang T
Posts
-
Help me with Yahoo Messenger icon!!! -
How to set background color?I don't remember exactly, but you can use the property in the Page
Page.BackColor = Color.Red
Ich liebe .NET :) -
give codeI think it is not a feature of ASP .NET. You can use HTML Tag to use Windows Media Player in your site! Ich liebe .NET :)
-
about loading pageHi, I did know your problem because I did it. Now I give you a bunch of codes in Visual Basic .NET because i am familiar with VB .NET. But I think it is very easy to translate into C# :) I assume that you have created a table with online one row is the header with 3 columns: ID, Name, URL. The table name is tbMyTable, you can create this table in design mode, or using tag. Then in the Page_load events, your code is
Dim cnn as sqlConnection = new sqlConnection(connectionString) 'connectionString is the your connection String Dim cmd as sqlCommand = new Command() Dim reader as new sqlDataReader() cnn.open() cmd.Connection = cnn cmd.CommandText = "SELECT * FROM tbContent" reader = cmd.ExecuteReader() Do While reader.read Dim dr as new TableRow() Dim dcID as New TableCell() Dim dcName as New TableCell() Dim dcURL as New TableCell() dcID.Text = reader.getInt32(0) dcName.Text = reader.getString(1) dcURL.text = "<a href = ''>" & reader.getString(2) & "</a>" dr.Cells.Add (dcID) dr.Cells.Add (dcName) dr.Cells.Add (dcURL) tbMyTable.Rows.Add (dr) Loop reader.close cnn.close()
Ich liebe .NET :) -
[Q]Yahoo Messenger Icon???I'm coding a site using ASP .NET. I want to use a YM! icon in my site in order for the users to see if this Yahoo ID is online or not. The users can also click on the icon to open the chatting window. Please help me! Ich liebe .NET :)
-
ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work???Thanks Mike! The problem has been fixed. Because in the SP2, the Firewall starts at default. So I have to add the instance of SQL Server in the Exception list of the Firewall Manager. Thanks for you links :) Ich liebe .NET :)
-
DataGrid CustomizationI think this article is helpful for you! http://aspalliance.com/articleViewer.aspx?aId=138&pId <- write in database http://authors.aspalliance.com/das/readimage.aspx <- retrieve from database http://aspalliance.com/articleViewer.aspx?aId=141&pId <- view in datagrid Ich liebe .NET :)
-
redirect from a cs fiel?Hi, for example, if your class is used by errorpage.aspx. then you view the write to session("errorMessage") in the errorpage.aspx Then, when the error occurs, we call Response.redirect("errorpage.aspx") to redirect to the errorpage to show the error message in which you have saved in Session("errorMessage") Ich liebe .NET :)
-
ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work???Thank you very much! I can fix the problem now! Ich liebe .NET :)
-
checking values in datagrid rowsDear, You can try in this way. You can use the method FindControl of the datagrid item to find the control in your datagrid
Dim x as new control for each x in datagrid.controls ... next
You use this code to show all the control in the datagrid, then you can try deeper into the datagrid item to find your combobox... then you can use the method findcontrol in the datagrid item to get value and set value for your control. PS: I'm not sure if the code is correctly right or not. But that's the idea. I did well in ASP .NET Ich liebe .NET :) -
ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work???Hi everybody, I'm using ASP .NET with MS SQL Server 2000 Personal Edition. They work well in Windows XP SP 1, but when I set up Window XP SP2, an error occurs:
SQL Server does not exist or access denied. 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: SQL Server does not exist or access denied
Then I thought it is an trouble with the MS SQL Server, so I reinstalled MS SQL Server several times, but this error still occurs. Please help me!!! Thank you very much! Ich liebe .NET :) -
ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work???Hi everybody, I'm using ASP .NET with MS SQL Server 2000 Personal Edition. They work well in Windows XP SP 1, but when I set up Window XP SP2, an error occurs:
SQL Server does not exist or access denied. 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: SQL Server does not exist or access denied
Then I thought it is an trouble with the MS SQL Server, so I reinstalled MS SQL Server several times, but this error still occurs. Please help me!!! Thank you very much! Ich liebe .NET :)