SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Silicon Investor, under the hood

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: SI Dave who wrote (36)1/8/2005 6:44:40 PM
From: Tom C   of 81
 
I'm used to C# and I can't try this right now but I would look at getting the parameter part of the url string and use the split function if it's basically an array of 'str=name'. Without trying it I'm not sure of the appropiate request object method that would give me the paramater string.

Example URL:someprog.aspx str=jim&str=biff&str=tad&str=mike&str=bill

StringBuilder strSql = new StringBuilder("DoThis ");

String tmpStr[] = Request.{something}.Split("=");
for each item in tmpStr {
if item != "str"
strSql.Append("'" + item + "',")
}
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext