When you click on the HTML TEXTAREA control you can write in it starting from the middle. If you want to write starting from the left you can easily configure it.
Here is a simple java script function that is called on the onfocus event of the HTML TextArea controls.
function WriteFromLeft()
{
// The name of the text area is txtArea1 and the name of the form is Form1
document.Form1.txtArea1.value = "";
}
yup thats it just remember that this function is called on the "onfocus" event of the TextArea control.
Saturday, February 05, 2005
Wednesday, February 02, 2005
Error in Microsoft Application Block
Took me two days to overcome this problem. According to Microsoft documentation about using the data access application block when passing parameters we should something like this:
SqlHelper.ExecuteNonQuery(connectionString,"My_Stored_Procedure",param1,param2,param3);
Unfortunately this does not work and we need to supply more parameters. In the Microsoft examples they used param1,param2,param3 as a simple variable which is not the case.
Here is the right way of doing the same thing.
SqlHelper.ExecuteNonQuery(connectionString,CommandType.StoredProcedure,"My_Stored_Procedure"
,new SqlParameter("@Param1",param1),
new SqlParameter("@Param2",param2),
new SqlParameter("@Param3",param3));
And now that should work !
SqlHelper.ExecuteNonQuery(connectionString,"My_Stored_Procedure",param1,param2,param3);
Unfortunately this does not work and we need to supply more parameters. In the Microsoft examples they used param1,param2,param3 as a simple variable which is not the case.
Here is the right way of doing the same thing.
SqlHelper.ExecuteNonQuery(connectionString,CommandType.StoredProcedure,"My_Stored_Procedure"
,new SqlParameter("@Param1",param1),
new SqlParameter("@Param2",param2),
new SqlParameter("@Param3",param3));
And now that should work !
Subscribe to:
Comments (Atom)