Solved

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

Posted on 2008-10-28
4
215 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:silemone
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
brwwiggins earned 500 total points
ID: 22825824
There is a 2k limit for query strings http://forums.asp.net/t/1305074.aspx
0
 
LVL 21

Author Comment

by:silemone
ID: 22826083
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...
0
 
LVL 21

Author Comment

by:silemone
ID: 22826094
on yeah and looking at my querystring, do you think that is over 2k?
0
 
LVL 21

Author Comment

by:silemone
ID: 22826277
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...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now