Click here to Skip to main content
15,902,777 members

Comments by Nilendra Nath (Top 16 by date)

Nilendra Nath 10-Feb-15 6:35am View    
Deleted
Show me your css, or check yourself for class "TextArea", there must be something. You can check yourself by removing class and id one by one to get to know from where problem is there.
Nilendra Nath 5-Feb-15 7:37am View    
This is because you have the output control of type <p>, so when data is copied from text area to paragraph, it get displayed in single line.
you can do something like this:
/*------------------*/
str2 = "<textarea id='p_" + elem + counter + "' style='border:none' class='c'></textarea>";
/*------------------*/
otherwise more coding can be done in func1 and func2 to display data in <li>

if you have need and not able to do, let me know, I will help.
Nilendra Nath 5-Feb-15 3:06am View    
Floyd,
here are some changes you need to put on your code of creating dynamic controls, I am giving just 1 example:
/*----------------------------------------------------------------*/
if (elem == "heading") {
str = "<span id='s_" + elem + counter + "'> Heading </span><input type='text' ></input><input type='button' value='Delete' ></input>";
str2 = "

";
}
/*----------------------------------------------------------------*/

Also add 1 more method in js part:
/*----------------------------------------------------------------*/
function deleteControl(id)
{
var value = $("#" + id).val();
var id2 = id.split("_")[1];
//alert(id2);
$("#s_" + id2).css("display", "none");
$("#t_" + id2).css("display", "none");
$("#" + id).css("display", "none");
}
/*----------------------------------------------------------------*/

I hope you can update the CSS as per your choice. If any issue let me know.
Nilendra Nath 3-Feb-15 6:16am View    
ok, good. Then accept the answer as solution and Let me know for any modification needed.
Nilendra Nath 3-Feb-15 1:58am View    
Hi,

Actually in disconnected mode data adapter manages to connect and disconnect with db. So no need to manually close the connection any time.
You can have a look in following link:

http://dotnethearts.blogspot.in/2013/05/connected-and-disconnected-mode-in.html