Note that there are some explanatory texts on larger screens.

plurals
  1. POabout split command in string using vb.net
    text
    copied!<p>am having url .it contain the querstring value like this.to split the url and store the querystring values in an array .query string values are not passed with in application . it comes from another application</p> <pre><code>url ---- http://.....?lead_id=152818&amp;vendor_id=100001&amp;list_id=1001&amp;gmt_offset_now=0.00&amp;phone_code=91&amp;phone_number=9942321400&amp;title=MR&amp;first_name=Hari&amp;middle_initial=Q&amp;last_name=PUBLIC&amp;address1=249+MUNDON+ROAD&amp;address2=MALDON&amp;address3=FL&amp;city=44&amp;state=TN&amp;province=NO_PROVINCE&amp;postal_code=600004&amp;country_code=IN&amp;gender=M&amp;date_of_birth=0000-00-00&amp;alt_phone=9942321400&amp;email=test@test.com&amp;security_phrase=nothing&amp;comments=COMMENTS&amp;user=22222&amp;pass=test&amp;campaign=OUTBOUND&amp;phone_login=22222&amp;original_phone_login=22222&amp;phone_pass=test&amp;fronter=22222&amp;closer=22222&amp;group=OUTBOUND&amp;channel_group=OUTBOUND&amp;SQLdate=2012-08-07+164931&amp;epoch=1344338372&amp;uniqueid=1344338352.12754&amp;customer_zap_channel=&amp;customer_server_ip=&amp;server_ip=10.103.200.177&amp;SIPexten=22222&amp;session_id=8600062&amp;phone=9942321400&amp;parked_by=152818&amp;dispo=N&amp;dialed_number=9942321400&amp;dialed_label=MAIN&amp;source_id=10001&amp;rank=1&amp;owner=Southeast&amp;camp_script=&amp;in_script=&amp;script_width=600&amp;script_height=340&amp;fullname=J.Hariharan&amp;recording_filename=OUTBOUND_20120807-164911_22222_9942321400&amp;recording_id=248601&amp;user_custom_one=&amp;user_custom_two=&amp;user_custom_three=&amp;user_custom_four=&amp;user_custom_five=&amp;preset_number_a=&amp;preset_number_b=&amp;preset_number_c=&amp;preset_number_d=&amp;preset_number_e=&amp;preset_dtmf_a=&amp;preset_dtmf_b=&amp;session_name=1344338181_2222216466857" my question is i want to store the querystring values in an one dimensional string array. my code ------- Dim strarr() As String Dim s As String = "http://...../test.aspx?lead_id=152818&amp;vendor_id=100001&amp;list_id=1001&amp;gmt_offset_now=0.00&amp;phone_code=91&amp;phone_number=9942321400&amp;title=MR&amp;first_name=Hari&amp;middle_initial=Q&amp;last_name=PUBLIC&amp;address1=249+MUNDON+ROAD&amp;address2=MALDON&amp;address3=FL&amp;city=44&amp;state=TN&amp;province=NO_PROVINCE&amp;postal_code=600004&amp;country_code=IN&amp;gender=M&amp;date_of_birth=0000-00-00&amp;alt_phone=9942321400&amp;email=test@test.com&amp;security_phrase=nothing&amp;comments=COMMENTS&amp;user=22222&amp;pass=test&amp;campaign=OUTBOUND&amp;phone_login=22222&amp;original_phone_login=22222&amp;phone_pass=test&amp;fronter=22222&amp;closer=22222&amp;group=OUTBOUND&amp;channel_group=OUTBOUND&amp;SQLdate=2012-08-07+164931&amp;epoch=1344338372&amp;uniqueid=1344338352.12754&amp;customer_zap_channel=&amp;customer_server_ip=&amp;server_ip=10.103.200.177&amp;SIPexten=22222&amp;session_id=8600062&amp;phone=9942321400&amp;parked_by=152818&amp;dispo=N&amp;dialed_number=9942321400&amp;dialed_label=MAIN&amp;source_id=10001&amp;rank=1&amp;owner=Southeast&amp;camp_script=&amp;in_script=&amp;script_width=600&amp;script_height=340&amp;fullname=J.Hariharan&amp;recording_filename=OUTBOUND_20120807-164911_22222_9942321400&amp;recording_id=248601&amp;user_custom_one=&amp;user_custom_two=&amp;user_custom_three=&amp;user_custom_four=&amp;user_custom_five=&amp;preset_number_a=&amp;preset_number_b=&amp;preset_number_c=&amp;preset_number_d=&amp;preset_number_e=&amp;preset_dtmf_a=&amp;preset_dtmf_b=&amp;session_name=1344338181_2222216466857" strarr = s.Split("?") Dim s1 As String = strarr(1) Dim constr() As String constr = s1.Split("&amp;") but am not get correct result my result --------- list_id=1001 gmt_offset_now=0.00 phone_code=91 phone_number=9942321400 expected result --------------- 1001 0.00 91 9942321400 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload