Click here to Skip to main content
15,923,689 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: What is this error Pin
Akhilesh Yadav2-Nov-06 23:20
Akhilesh Yadav2-Nov-06 23:20 
AnswerRe: What is this error Pin
ednrgc3-Nov-06 5:36
ednrgc3-Nov-06 5:36 
QuestionHow to print header in each page Pin
Renukapadhamanaban2-Nov-06 15:10
Renukapadhamanaban2-Nov-06 15:10 
QuestionCannot install Visual Web Developer Pin
aharrisreid2-Nov-06 12:12
aharrisreid2-Nov-06 12:12 
AnswerRe: Cannot install Visual Web Developer Pin
Sathesh Sakthivel2-Nov-06 18:14
Sathesh Sakthivel2-Nov-06 18:14 
QuestionHow to pass multidimensional array to client Pin
MrBink2-Nov-06 11:57
MrBink2-Nov-06 11:57 
AnswerRe: How to pass multidimensional array to client Pin
Guffa2-Nov-06 14:06
Guffa2-Nov-06 14:06 
GeneralRe: How to pass multidimensional array to client Pin
MrBink2-Nov-06 14:55
MrBink2-Nov-06 14:55 
Thanks you.
As you can no doubt tell I'm quite new to ASP.NET / Jscript.NET, though very experienced with Jscript5.6... I had built a jagged array as you described on the server ... I'll look at RegisterStartupScript to see how I might use that to move the array to the client.
I've wondered too about working with the ArrayList Class in System.Collections ... do you know if there's any real advantage to using that instead of the Array Object?


BTW, here's my server side code (more or less)....

<br />
var DirPathIs : String;<br />
var MultLvArr : Array = new Array();<br />
var FiltSlash = /\\/g;<br />
var FltToRel = /topicsdir.+$/i;<br />
var FiltFName = /[ \w\-\(\)]+(?=\.ssproj)/i;<br />
var ClnPath : String;<br />
var ClnName : String;<br />
<br />
for(i in AllTopics){<br />
	DirPathIs = AllTopics[i].Name;<br />
	MultLvArr[i] = new Array();<br />
	MultLvArr[i][0] = "\""+DirPathIs+"\"";<br />
	MultLvArr[i][1] = new Array();<br />
	ByTpcFilesItr = AllTopics[i].GetFiles("*.ssproj", SearchOption.AllDirectories);<br />
	for(q=0; q<ByTpcFilesItr.length; q++){<br />
		ClnName = ByTpcFilesItr[q].Name;<br />
		if(FiltFName.test(ClnName)){<br />
			ClnName = ClnName.match(FiltFName)[0];<br />
			}<br />
		ClnPath = ByTpcFilesItr[q].FullName;<br />
		ClnPath = ClnPath.replace(FiltSlash, "/");<br />
		if(FltToRel.test(ClnPath)){<br />
			ClnPath = ClnPath.match(FltToRel)[0];<br />
			}<br />
		else{<br />
			ClnPath = "none";<br />
			ClnName = "File Path Error";<br />
			} <br />
		MultLvArr[i][1][q] = new Array("\""+ClnName+"\"", "\""+ClnPath+"\"");<br />
		}<br />
	}<br />
RegisterArrayDeclaration("MultLvlPathsItr", MultLvArr);

QuestionConnectionString Problem!!! [modified] Pin
immori2-Nov-06 11:47
immori2-Nov-06 11:47 
QuestionRe: ConnectionString Problem!!! Pin
Guffa2-Nov-06 14:08
Guffa2-Nov-06 14:08 
AnswerRe: ConnectionString Problem!!! Pin
immori3-Nov-06 18:51
immori3-Nov-06 18:51 
AnswerRe: ConnectionString Problem!!! Pin
Guffa4-Nov-06 2:24
Guffa4-Nov-06 2:24 
QuestionError Type: Either BOF or EOF is True Pin
Skanless2-Nov-06 11:25
Skanless2-Nov-06 11:25 
AnswerRe: Error Type: Either BOF or EOF is True Pin
Akhilesh Yadav2-Nov-06 23:31
Akhilesh Yadav2-Nov-06 23:31 
QuestionHTTP Module and Application path Pin
Ponzano Paolo2-Nov-06 10:10
Ponzano Paolo2-Nov-06 10:10 
AnswerRe: HTTP Module and Application path Pin
Akhilesh Yadav2-Nov-06 23:34
Akhilesh Yadav2-Nov-06 23:34 
QuestionPostback result in new window? Pin
pahlsson2-Nov-06 9:41
pahlsson2-Nov-06 9:41 
AnswerRe: Postback result in new window? Pin
Britney S. Morales2-Nov-06 11:58
Britney S. Morales2-Nov-06 11:58 
QuestionSQL Server 2005 Looping Pin
nature02762-Nov-06 9:37
nature02762-Nov-06 9:37 
QuestionMultiple SiteMapProviders Pin
nlindley72-Nov-06 9:20
nlindley72-Nov-06 9:20 
QuestionAsp.net User controls Pin
mcd24242-Nov-06 8:32
mcd24242-Nov-06 8:32 
AnswerRe: Asp.net User controls Pin
Guffa2-Nov-06 8:43
Guffa2-Nov-06 8:43 
GeneralRe: Asp.net User controls Pin
mcd24242-Nov-06 8:46
mcd24242-Nov-06 8:46 
QuestionAdd nodes to SiteMapPath Pin
shapper2-Nov-06 7:46
shapper2-Nov-06 7:46 
AnswerRe: Get XML node value Pin
Elina Blank2-Nov-06 7:46
sitebuilderElina Blank2-Nov-06 7:46 

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.