hi, Anyone please suggest an good article for the difference between inheritance vs composition in .net ram
Ramasubramaniam
Posts
-
inheritance vs composition -
Page ActivationHi, I want a web page (aspx) needs to be active even user doesn't touch anything more than 20 Minutes, basically how to make a web page active for long hours? Ram
-
Header Checkbox issue in GridViewHi, I have done it in the datagrid. You can add the checkbox control to the header on the itemdatabound() event, there itself add an event to the checkbox (check event). There you can make all the item checkboxes as selected. Ram
-
SecurityThere are methods to encrypt strings in .Net. Use the following article as base, http://support.microsoft.com/kb/301070 Ram
-
Error Accessing WebserviceOn IIS enable the anonymous property. Ram
-
Problem with sqlserver connections not closingHi, We have to use the below overloaded method on the executereader method of the command obect to close the connection automatically, otherwise we have to cloase manually. objCommand.ExecuteReader(CommandBehavior.CloseConnection) Ram
-
Is there a way to check that a Session variable exists without using try/catch?I tried, it is throwing object ref not set an instance of an object exception. Are you sure :) Ram
-
WEB ServicesHi, You might test your web service from your local, it was working fine. Is it? When you try to implement that web service on another server you are getting error. There is a property for web services called "URL Behavior" it is a boolean property, that needs to be set as true. Go through following link. http://www.codeproject.com/soap/wsdldynamicurl.asp Ram
-
Is there a way to check that a Session variable exists without using try/catch?Imagine the key has not been added on the session at all, that time do we need to user only try...catch block or is there any other way will work? Ram
-
Date in DataGridYou can change the date format while retriving on the query itself. Like conver as Varchar. Ram
-
Oracle error ORA-06550. PLS-00306Check the size also. Ram
-
sql connectionGo through for diff types of connection strings, http://www.sqlstrings.com/SQL-Server-connection-strings.htm Ram
-
manipulating a web application via webservices?We can call a web service from a windows application. It is like a normal call to the web service. Ram
-
Sending mails throught the applicationHi go through this link, http://www.systemwebmail.com/faq/2.3.aspx Ram
-
How to encrypt the connection string in web.configYou can write your own encryption logic, by using System.Security.Cryptography namespace. Go through the below links. http://msdn.microsoft.com/msdnmag/issues/02/06/crypto/ http://www.codeproject.com/dotnet/encryption\_decryption.asp
-
Submit buttons enter key issueI tried all possibities of scripting, could you send something.
-
Exception handling ApproachHi, you can use microsoft enterprise library for exception handling and database operations. That will log the exception on the event viewer. Catch the exceptions in all layers, but log the exception only from the UI layer. Throw exceptions from other layers to the UI layer. Istead of using enterprise library, you can log your events and exceptions with datatime on a text file in a specific directory. Those files can be used to keep track of the execution. Ram
-
Submit buttons enter key issueHi, I have an imagebutton and a submit button in my usercontrol. I have few textboxes to enter search criteria. Imagebutton placed before the submit button on the design code. When the user press "enter" key imagebutton's click event is firing, but I want the submit button't click event to get fired. Both are running at server. Both actions pulling data from the database. Ram
-
how to compare whetther a substring is available in striong or notHi here is the way, we can use "IndexOf" string class method. string strTest = "I am strong"; if(strTest.IndexOf("strong")==0) { return(false); } Ram
-
Building web application part by partHi, Most of the projects are facing this situation. I suggest you to have different versions for test and production in the VSS. Otherwise it is difficult during the build for test and production. Ram