How can I get the value of fckeditor using javascript or jquery.
>> var inst = FCKeditorAPI.GetInstance("description");
var html = inst.GetHTML();
where description is the name or id of fckeditor instansce
Thursday, April 14, 2011
Wednesday, February 3, 2010
Find row index of gridview on RowCommand without CommandArgument
Gridview has a template field with item linkbutton delete with CommandName now when user click on linkbutton then find the rowindex on Rowcommand event of gridview using C#.net
protected void grdtest1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "DeleteRow")
{
LinkButton gv = (LinkButton)e.CommandSource;
GridViewRow gvr = (GridViewRow)gv.Parent.Parent;
int rownum = gvr.RowIndex;
}
}
protected void grdtest1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "DeleteRow")
{
LinkButton gv = (LinkButton)e.CommandSource;
GridViewRow gvr = (GridViewRow)gv.Parent.Parent;
int rownum = gvr.RowIndex;
}
}
Friday, April 3, 2009
Bind multiple column value in row in gridview using asp.net(c#.net)
Problem: I want to bind more than one column value in row in gridview . I fetch the value from database in table format now I want to bind the five row value in a single row in grid like this....
Tuesday, March 24, 2009
Replace enter key value
from textbox using asp.net with c#.net and save in database
Problem: when I wants save multiline textbox value in database using asp.net with c#.net and show as it is its not happening ....
Actually the problem is when we enter the value in textbox and press enter key. value like this
this is dilip
web developer
it save in database but when fetch value from database its showing in same line like this: this is dilip web developer
solution: string txtvalue = mytextbox.Text.ToString().Replace("\r\n", "
");
and save it.
Because enter key value is \r\n . and now it will show as u entered text
Actually the problem is when we enter the value in textbox and press enter key. value like this
this is dilip
web developer
it save in database but when fetch value from database its showing in same line like this: this is dilip web developer
solution: string txtvalue = mytextbox.Text.ToString().Replace("\r\n", "
");
and save it.
Because enter key value is \r\n . and now it will show as u entered text
Wednesday, March 18, 2009
Return last date of the current month using sql
SELECT datepart(dd,DateAdd(day, -1, DateAdd(month, DateDiff(month, 0, getdate())+1, 0))) AS Dateval
Subscribe to:
Posts (Atom)