yes there is a limit on the size of the file, it can however be changed see - here
Gavin Jeffrey
Posts
-
Upload Big File -
FSO read in?are you using asp.net or asp 3? cause the code i have given you will only work in asp.net. if you wanted to do this in asp 3 you would have to have do something like:
'get the file path - Set txtFilePath = Replace(f1.name, right(lcase(f1.name),4), ".txt") 'then read the file using fso dim txtStream Set txtStream = fso.OpenTextFile(txtFilePath, fsoForReading) 'the write the string out Response.Write txtStream.ReadAll txtStream.Close
im a bit rusty in this area but this should give you more or less an idea! -
FSO read in?i would do something like -
foreach (string s in System.IO.Directory.GetFiles(@"c:\dir", "*.gif")) { string txtPath = s.Substring(0, s.Length - 3) + "txt"; System.IO.TextReader tr = new System.IO.StreamReader(txtPath); string text = tr.ReadToEnd(); tr.Close(); }
-
URGENTCan you tell us what you are using to create the xml? Basically your problem is that an xml document can only have one root node so - is invalid. The valid way to store two nodes would be -
-
How to Deploy my Vb.net 2005 application on server ? [modified]you should look into clickonce deployment. Basically all you need to do is right click on your project and click on publish. There is a lot of info from Microsoft on this. http://msdn2.microsoft.com/en-us/library/t71a733d.aspx
-
Access Id Returned From Stored ProcedureiSet.Tables[0].Rows[0][0].Tostring(); ??
-
a couple of C# questions- decimal decEuro = Convert.ToDecimal(txtEuro.Text.Trim()); - would throw an FormatException - I would say that double would be better for currency - returned is always object i.e. it is an Object of decimal - You could look at something like: System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-ZA");//I think? i don't really know much about this so I can't really help. Or you could format your data in your query before it gets returned to the front end e.g. select convert(varchar(10),DateCaptured,101)... would return me my date already in the format i want - you could use response.redirect("pageb.aspx?txtFName=" + txtFName.Text + "); and then at page b you could use Request["txtFName"].ToString();
-
Unicode problemif you know that the data in the columns doesn't exceed a length of 8000 you could try something like - update Table1 set test1=replace(convert(varchar(8000),test1),'x','a'), test2=replace(convert(varchar(80000),test2),'x','a') Otherwise you might have to go the code route.
-
SQL Writable DataWell it depends on what your stored proc does - if it does an insert/update call registerCMD.ExecuteNonQuery(); If it return something you can either call registerCMD.ExecuteReader(); or use a SqlDataApabter
-
Unicode problemYou could (should be able to depending on the database u r using?) do the entire thing at the database level, below is a mssql example - update Articles_production set Description = replace(Description,'junk character','replacement character'), Description_abtract = .... You may however have to run the update statement for each junk character.
-
Creating objects in IIS failsThis is just a total stab in the dark but if IIS is version 5.1 check out the link for a fix http://www.brooksyounce.com/xp_asp_fix.htm
-
hide and show the textbox in the webform....use javascript in the dropdownlist add something like onchange="showHide()" then with javascript - function showHide() { if(document.getElementById("txtboxID").style.display == "none") document.getElementById("txtboxID").style.display = "block"; else document.getElementById("txtboxID").style.display = "none"; }
-
Serial Ports in C#This link might shed some light on the matter - http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx
-
ODBC Dataadapter - Error HY007 on update!You need to specify the update command that the dataApdater should use i.e. the UpdateCommand.
-
diplaying data in datagrid without child tablehmmm...not sure really - what about setting the DataMember i.e. dg.DataMember = "parent"; or clearing all the relations on the dataset i.e. dataset.Relations.Clear();
-
diplaying data in datagrid without child tableChange your datagrids datasource property to be = parent table and not the dataset
-
positioning a web user controlPretty much the same way you would position any other control. Either specify a top and left in the style or put it into a table/div
-
How to "post " form variable to another windows ?You can use the Server.Transfer method to hide variables between pages check out - http://www.dotnetbips.com/displayarticle.aspx?id=79 for an example
-
Session time outThats because the session hasn't ended and just timed out. If you close the browser window you should be able to see the event being fired.
-
Web based active directory loginCould you tell us more about your environment i.e. what version of iis you are using and what version of windows? Also post the code were the error is happening.