I had to do two things to get this to download successfully. I added encoding with the value of "28591", which is the .NET reference for ISO 8859-1.
And i had to change the WriteLine on the StreamWriter to just Write to avoid add a LineFeed CarriageReturn at the end which apparently corrupts...
I think this is what's going on.
I'm seeing a ton of EFBFBD sequences. I would conjecture that adding 2 characters for each high ascii character would swell the file up considerably with a zip file...
Server on the other end is not one we have ever downloaded from before. If I browse to the site and click on the dropdown and the button for download - the file is saved to my machine just fine.
The corrupt version is about a million bytes (almost double) bigger than the one I downloaded...
I have used this code other places with no problem. The site I'm trying to download from now is always coming back as corrupt. Is there something else I need to add to this code to successfully bring this file down to my machine? Here's my code.
string strVars = "";
try
{...
I'm workingin with some jquery code downloaded from Google.
I'm trying to clone some functionality I don't understand from one project to another. This is some code that I'm putting in an aspx page. There is a css file associated - with ui- prefacing all of the statements for the datepicker...
I have hidden fields which contain data which can be imported into other visible text fields if a checkbox is checked.
The click calls a javascript function which has this code. (asp.net page)
f.<%=ddlCountry.ClientID%>.value = f.<%=hidCountry.ClientID%>.value...
I was pretty sure there was a setting on the sort order. You have explained it very nicely. I won't risk altering the collation order on the DB itself. So I guess all the sprocs will have to change, but the change should be minor - just to add the collation property. Thanks so much!!
I got a request that I modify a million applications (maybe a slight exaggeration) to have them all sort a certain field so that all values which start with ( show up at the bottom. Of course they want the top of the list to be ascending. So I decided the best way to do this is replace the ()...
I have come up with a solution. I use the dataset object with the ReadXml method to put the data into a dataset. Then I can walk the second table and use my column numbers to pick up the desired data.
I have a database driven project which allows the app to take data coming in from multiple sources and process it in the manner desired. This was column based so text files, excel worksheets, etc. work just fine. Now a new request has come down the pipeline and the vendor is sending me xml data...
Hmmm. The sample worked because there were just 3 elements. Now I'm working with the real page and I have 20 or so elements. They all show up on the same line.
It seems like it requires 3 <br /> to break to a new row. There must be a better way to do that? And how do I add padding between...
Thanks!
I was asking more along the lines of a strategy to validate user controls of any type. I was not aware of the CompareValidator. That is pretty slick. I think the solution here is to dynamically assign the controltovalidate to provide the name of the user control assigned when the page...
I have a mockup of a website to create. The mockup shows sometimes three fields in a line - with the label for the textbox/dropdown etc. above the input element. I am not allowed to use a table which would make this fairly painless. How do I format this so I can get multiple controls on the...
I have a mockup of a website to create. The mockup shows sometimes three fields in a line - with the label for the textbox/dropdown etc. above the input element. I am not allowed to use a table which would make this fairly painless. How do I format this so I can get multiple controls on the...
I have found a calendar control that I'm inserting into my pages where dates need to be entered. What is the best way to validate that only valid dates are entered if the user types something. I'm wondering if I have to put the validator in the control module itself. Since sometimes the date...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.