Link to home
Start Free TrialLog in
Avatar of silemone
silemoneFlag for United States of America

asked on

URGENT...What is going on with my <asp:ListBox>?

Summary:
Say I have a page called issueReport.aspx page, i pass a URL that has fields Comments1, Comments2, and Comments3.  Comments2 is derived from selections from a limitless ListBox.   Then all data is passed to issueReportViewer.aspx which of, is the viewer for a CrystalReport.rpt...



Some More Info:  
So in more detail let's say I'm storing Comments2 in a field on the crystal report that is limited to 511 characters.  So I've truncated the string because I was getting an error:  Buffer too small for String or missing Null byte.  

(I would like to have added extra fields on the report but didn't know how to access new fields I added because it was a special field type in Crystal Reports called Report Comments and I guess you can only have one though you can add as many as you like...however I was unable to find a way to access them by their object name...only by (rpt  my CR document) rp.SummaryInfo.ReportComments...but couldn't find away to access ReportsComments2 as opposed to ReportComments1.)



The Problem:
To make a short story long, I couldn't find a way to add entire Comment2 string to CR so i truncated it as stated.  However, now the issue is if I select all 150 items in my ListBox since it's multiselect, and pass it to the page by QueryString, I get IE error:

Internet Explorer cannot display the webpage.   Most likely causes:You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address.



Question:
Any thoughts?  Maybe some characters messing up querystring?  i don' t think querystrings have a limit to it's length.  Example queryString is below (Are / or () messing up querystring?):


http://localhost:47893/Reports/RptViewer.aspx?S=9/28/2008&E=10/28/2008&ST=0&CD=0&CU=0&AD=0&IG=0&IT=1,2,197,4,5,6,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,225,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,198,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,196,179,180,181,182,183,184,185,186,187,188,189,191,190,192,193,194,195&A=&DH=False&B=False&RC=Issue Group: All    &RC2=Issue Type: A/C, A/C VENTS, AC HOT/COLD, ALUMINIUM COMPRESSOR, ANTENNA (GENERAL), ARTWORK/PICTURES/STATUES, BAND SAW, BATHROOM FIXTURE, BATHTUB, BATHTUB, BED, BEDDING, BEER COOLER, BINGO MACHINE, BLAST CHILLER, BLINDS, BLOWER, BRAISING PAN, BREAD SLICER, BROADCAST CTR EQUIP, BUFFALO CHOPPER, CABINET, CANOPY, CANOPY, CAPUCCINO MACHINE, CARPETED FLOOR, CARVING STATION, CASINO, CEILING, CHAIR, CHEESE GRINDER, CLOCK, CLOSET, COAT HOLDER, COFFEE MACHINE, COLUMNS, COMPUTER, COUNTER, CURTAINS, CUTTER MIXER, DECK CHAIR, DECT PHONE, DEEP FAT FRYER, DESK, DISHWASHER, DISPLAY CASE, DOOR, DOOR, DOORBELL, DOUGH DIVIDER, DOUGH ROLLER, DRAIN, DRAWER, DRESSER/VANITY, DRINKING FOUNTAIN, DRY STORE CABINET, DRY WASTE SHREDDER, ELEVATOR, ESCALATORS, EXHAUST FAN, FAN, FAUCET, FITNESS EQUIPMENT, FLASHLIGHT, FLAT GRILL, FLOOR CLEANING, FLOOR MAT, FOOD CONTAINER/BASIN, FREEZER (WALK-IN), GALLEY, GARBAGE BIN, GLASS CRUSHER, GLASS HOLDER, GLASS WASHING MACHINE, GLASS WASHING MACHINE, GLASS/WINDOW, GOLF SIMULATOR, GRILL, GROOVE GRIDDLE, HAIRDRYER, HAM SLICER, HAND SANITIZER DISPENSER, HANDICAP LIFT, HANDRAIL , HEATING LAMPS, HOT DOG MACHINE, HOT PLATE, ICE CREAM FREEZER, ICE CREAM MACHINE, ICE CRUSHER, ICE MACHINE, ICE/WATER
ASKER CERTIFIED SOLUTION
Avatar of brwwiggins
brwwiggins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of silemone

ASKER

good brwwiggins...and i did read that...however, how can i calculate my string to find if i'm over that limit?  would that be:  each letter is bits...so 8 x all characters in string? is unicode version of letters passed and if so is unicode worth only 1bit?  thanks...
on yeah and looking at my querystring, do you think that is over 2k?
ok...well i guess I will just use a session variable.  someone else designed the program this but using a session variable should work...anyway, thanks for the help...