Click here to Skip to main content
15,895,370 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: RegisterStartupScript not working Pin
Brij12-Apr-10 21:37
mentorBrij12-Apr-10 21:37 
GeneralRe: RegisterStartupScript not working Pin
AKSharma8312-Apr-10 21:43
AKSharma8312-Apr-10 21:43 
GeneralRe: RegisterStartupScript not working PinPopular
Brij12-Apr-10 21:45
mentorBrij12-Apr-10 21:45 
GeneralRe: RegisterStartupScript not working Pin
AKSharma8312-Apr-10 21:54
AKSharma8312-Apr-10 21:54 
AnswerRe: RegisterStartupScript not working Pin
farogh haider13-Apr-10 3:16
farogh haider13-Apr-10 3:16 
QuestionWriting contents of tab delimited text file into excel file using asp.net Pin
Swati_g198512-Apr-10 21:06
Swati_g198512-Apr-10 21:06 
AnswerRe: Writing contents of tab delimited text file into excel file using asp.net Pin
Suresh Suthar13-Apr-10 1:27
professionalSuresh Suthar13-Apr-10 1:27 
QuestionHow to find the Link button control in Datalist control usibng Javscript Code Pin
ChandrakanthGaddam12-Apr-10 20:20
ChandrakanthGaddam12-Apr-10 20:20 
Hi,

This is from chandrakanth. working on dotnet.

Actually i got one problem with javascript in button click event.

i have one Datalist control. In that Datalist control i have one Linkbutton. I am trying to find the ID of Link button ID through Javascript.

But it is giving error here

"obj.substring(0, 60);"


--Object does not support this property";


Please see the below my Javascript code which i am using.

---------------------------------------------------------------
'sidebar' -- divtag id

function SwitchMenus()
{
var divObj = document.getElementById('sidebar');
var objdatalist = document.getElementById('<%#dlstToDoList.ClientID%>;').childNodes[0];
var obj = objdatalist.getElementsByTagName('ctl00_dlstToDoList_ctl00_lnkTodo'); -- Link button id


if (divObj.style.width == "22%")
{
divObj.style.width = "26%";
divObj.align = "left";
objdatalist.style.width = "100%";
obj.substring(0, 60);

}
else {
divObj.style.width = "22%";
divObj.align = "left";
obj.substring(0,40);

}

}
-------------------------------------------------------------



----------------------------------------------------------------

<itemtemplate>

AnswerRe: How to find the Link button control in Datalist control usibng Javscript Code Pin
Brij12-Apr-10 21:05
mentorBrij12-Apr-10 21:05 
AnswerRe: How to find the Link button control in Datalist control usibng Javscript Code Pin
Arindam Tewary12-Apr-10 21:11
professionalArindam Tewary12-Apr-10 21:11 
Questionajax modal popup Pin
m@dhu12-Apr-10 18:49
m@dhu12-Apr-10 18:49 
AnswerRe: ajax modal popup Pin
Brij12-Apr-10 19:58
mentorBrij12-Apr-10 19:58 
GeneralRe: ajax modal popup Pin
m@dhu12-Apr-10 20:15
m@dhu12-Apr-10 20:15 
GeneralRe: ajax modal popup Pin
Brij12-Apr-10 20:58
mentorBrij12-Apr-10 20:58 
GeneralRe: ajax modal popup Pin
michaelschmitt13-Apr-10 2:44
michaelschmitt13-Apr-10 2:44 
QuestionAccessing ASP.net control in [Ajax.JavascriptMethod()] Pin
raghu.g12-Apr-10 8:00
raghu.g12-Apr-10 8:00 
AnswerRe: Accessing ASP.net control in [Ajax.JavascriptMethod()] Pin
Not Active12-Apr-10 9:02
mentorNot Active12-Apr-10 9:02 
GeneralRe: Accessing ASP.net control in [Ajax.JavascriptMethod()] Pin
raghu.g12-Apr-10 9:19
raghu.g12-Apr-10 9:19 
GeneralRe: Accessing ASP.net control in [Ajax.JavascriptMethod()] Pin
Not Active12-Apr-10 10:13
mentorNot Active12-Apr-10 10:13 
Questionprevent page reload Pin
Enobong Adahada12-Apr-10 4:45
Enobong Adahada12-Apr-10 4:45 
AnswerRe: prevent page reload Pin
Abhijit Jana12-Apr-10 5:17
professionalAbhijit Jana12-Apr-10 5:17 
AnswerRe: prevent page reload Pin
itsravie12-Apr-10 5:45
itsravie12-Apr-10 5:45 
AnswerRe: prevent page reload Pin
jaypatel51212-Apr-10 14:55
jaypatel51212-Apr-10 14:55 
AnswerRe: prevent page reload Pin
farogh haider13-Apr-10 3:18
farogh haider13-Apr-10 3:18 
QuestionHow to get TextBox value from one class to another Pin
Sr...Frank12-Apr-10 4:12
Sr...Frank12-Apr-10 4:12 

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.