Click here to Skip to main content
16,004,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncarry object one page to other page Pin
rinku soni 236-Sep-09 21:58
rinku soni 236-Sep-09 21:58 
AnswerRe: carry object one page to other page Pin
Arun Jacob6-Sep-09 22:06
Arun Jacob6-Sep-09 22:06 
AnswerRe: carry object one page to other page Pin
Christian Graus6-Sep-09 22:09
protectorChristian Graus6-Sep-09 22:09 
Questioncalendar pop up on onfocus event of textbox Pin
myinstincts6-Sep-09 21:46
myinstincts6-Sep-09 21:46 
AnswerRe: calendar pop up on onfocus event of textbox Pin
Arun Jacob6-Sep-09 22:07
Arun Jacob6-Sep-09 22:07 
AnswerRe: calendar pop up on onfocus event of textbox Pin
Christian Graus6-Sep-09 22:07
protectorChristian Graus6-Sep-09 22:07 
AnswerRe: calendar pop up on onfocus event of textbox Pin
mylogics6-Sep-09 23:08
professionalmylogics6-Sep-09 23:08 
QuestionReplace text in textbox editor using java script Pin
MindDevel@per6-Sep-09 21:21
MindDevel@per6-Sep-09 21:21 
Hi all!!!
I have a simple task to replace the selected string with "<tag>SelectedString"
where tag is the value of selected item in list box.if i replace strings and show in alert it does weel but when i want to replce the text of editor in same way it did not replace. Below is the code im running......





function show(tagselection)
{
alert(tagselection);
var selection = getSelectedHTML();
var combine = "<"+tagselection+">"+selection+"</"+tagselection+">";
alert(combine);
editor1.value = editor1.value.replace(selection,combine);
alert(editor1.value);
//alert(editor1.
}
var editor1=document.getElementById('<%= Editor1.ClientID %>');

function getSelectedHTML(){
// get the active editor window
var editwin = editor1.GetWindow();


// get the active editor document
var editdoc = editor1.GetDocument();

var rng=null,html="";
if (document.selection && document.selection.createRange){
rng=editdoc.selection.createRange();
html=rng.htmlText||"";
}else if (window.getSelection){
rng=editwin.getSelection();

if (rng.rangeCount > 0 && window.XMLSerializer){
rng=rng.getRangeAt(0);
html=new XMLSerializer().serializeToString(rng.cloneContents());
}
}
return html;
}



Please guide me what im doing wrong??????
AnswerRe: Replace text in textbox editor using java script Pin
Abhishek Sur6-Sep-09 23:40
professionalAbhishek Sur6-Sep-09 23:40 
AnswerRe: Replace text in textbox editor using java script Pin
MindDevel@per7-Sep-09 5:48
MindDevel@per7-Sep-09 5:48 
Questionjavascript problem urgent Pin
venu6566-Sep-09 21:11
venu6566-Sep-09 21:11 
AnswerRe: javascript problem urgent Pin
Christian Graus6-Sep-09 21:26
protectorChristian Graus6-Sep-09 21:26 
GeneralRe: javascript problem urgent Pin
venu6566-Sep-09 21:40
venu6566-Sep-09 21:40 
GeneralRe: javascript problem urgent Pin
Christian Graus6-Sep-09 22:06
protectorChristian Graus6-Sep-09 22:06 
AnswerRe: javascript problem urgent Pin
Arun Jacob6-Sep-09 22:03
Arun Jacob6-Sep-09 22:03 
QuestionHow to zoom+ a picture on mouse hover in asp.net Pin
deepseeindeepsy6-Sep-09 20:40
deepseeindeepsy6-Sep-09 20:40 
AnswerRe: How to zoom+ a picture on mouse hover in asp.net Pin
N a v a n e e t h6-Sep-09 21:03
N a v a n e e t h6-Sep-09 21:03 
GeneralRe: How to zoom+ a picture on mouse hover in asp.net Pin
deepseeindeepsy6-Sep-09 21:07
deepseeindeepsy6-Sep-09 21:07 
GeneralRe: How to zoom+ a picture on mouse hover in asp.net Pin
Amit Patel19856-Sep-09 21:13
Amit Patel19856-Sep-09 21:13 
GeneralRe: How to zoom+ a picture on mouse hover in asp.net Pin
N a v a n e e t h6-Sep-09 21:16
N a v a n e e t h6-Sep-09 21:16 
GeneralRe: How to zoom+ a picture on mouse hover in asp.net Pin
sashidhar6-Sep-09 21:41
sashidhar6-Sep-09 21:41 
GeneralRe: How to zoom+ a picture on mouse hover in asp.net Pin
Christian Graus6-Sep-09 22:13
protectorChristian Graus6-Sep-09 22:13 
Questiondeleting a specific record Pin
swtlibra6-Sep-09 20:34
swtlibra6-Sep-09 20:34 
AnswerRe: deleting a specific record Pin
SeMartens6-Sep-09 20:55
SeMartens6-Sep-09 20:55 
AnswerRe: deleting a specific record Pin
Christian Graus6-Sep-09 21:28
protectorChristian Graus6-Sep-09 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.