Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
when i give a value(id) in a textbox based on that i should get the paticular data(like description in my case) on the same page in the fckeditor.For this i have written a method as following:

C#
private void GetCasestudy()
       {

           DataTable dt = new DataTable();
           dt = clsAdminBLL.GetCasestudy();
           if (dt.Rows.Count > 0)
           {
               FCKeditor1.Value = dt.Rows[0]["description"].ToString();
           }
       }

and my stored procedure as:

SQL
ALTER PROCEDURE [dbo].[getcasestudy]
    -- Add the parameters for the stored procedure here
    @txtcaseid  int
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;

    -- Insert statements for procedure here
    SELECT description from [GTK_Casestudy] WHERE casestudy_id=@txtcaseid
END


But iam understanding where to cal this method.As soon as i enter a value in the textbox and press tab i should get the data ..I even doubt that there is some other way to write the procedure for my need anyone please help me.
Posted
Comments
Lantei 20-Sep-10 9:36am    
I dont think your question is clear at all..what problem are you having with the code you have?..what do you want it to do? and what is it not doing? I'm sure you could get much better help if you made these things clear :)

1 solution

Take a look at this[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900