July 31, 2003

Upload Files With ASP.NET

UPLOAD FILES One of the nastier challenges of Web development is uploading files to the Web server for processing and storage. ASP.NET, though, provides built-in file-upload support without any need for third-party components or workarounds.

BYPASS UPLOAD SIZE LIMITS Most developers don’t realize that by default ASP.NET limits the size of uploaded files to 4 MB. -- how to tweak machine.config so users can upload whatever size of file you want. Read the article and get the code at.

Posted by sachauncey at 03:20 PM

Post Entire Form to Another Page

Q&A: POST TO A DIFFERENT FORM You want to use a form, do validation on it, but then submit the entire form to another page.

Posted by sachauncey at 03:17 PM

RSS Aggregator List...

These aggregators and newsreaders support RSS 2.0.


Posted by sachauncey at 01:56 PM

July 04, 2003

Farpoint's Spread for Webforms

Spread for Webforms "Use FarPoint's Spread 6 to easily incorporate advanced grid and high-level spreadsheet features into your applications. You get unmatched flexibility at the cell level for maximum control over the display and entry of the data, plenty of events to respond to user changes and an impressive feature list for everything in between; including import/export capabilities, enhanced printing, 13 cell types, formulas, plus many more features you'd expect from the market-leading component. "

Posted by sachauncey at 07:42 PM

Output Names of Columns in Tables...

"...take a given recordset (which may or may not contain multiple recordsets) and output every column (with column names) and every row neatly, without having to know ANYTHING about the data returned." (from GnomeCODE submission by a reader)
1:     function outputRS(oRs)

2: { count = 1;
3: while( oRs )
4: {
5: Response.Write("<table style=
'font-size:10px;' border='1' cellspacing='0'
cellpadding='2' bordercolor='#555555'>");


6:
Response.Write("<tr bgcolor=
'#dddddd'><td colspan=" + oRs.Fields.Count + "><b>RecordSet
" + count + "</b></td></tr><tr bgcolor=#eeeeee>");

7: for( i = 0; i < oRs.Fields.Count; i++ ){
8: Response.Write("<th>" + oRs.Fields(i).Name + "</th>");
9: }
10: Response.Write("</tr>");
11: while( !oRs.EOF )
12: { Response.Write("<tr>");
13: for( i = 0; i < oRs.Fields.Count; i++ ){
14: if( new String(oRs.Fields(i)) != "undefined" )
15: { Response.Write("<td>" + oRs.Fields(i) + "</td>");
16: }
17: else
18: { Response.Write("<td> </td>");}
19: }
20: Response.Write("</tr>");
21: oRs.MoveNext();
22: }
23: Response.Write("</table><BR><BR>");
24: count++;
25: try{ oRs = oRs.NextRecordset(); }catch(e){ }
26: }
27: }
28: var oConn = Server.CreateObject("ADODB.Connection");
29: oConn.ConnectionString = your_DB_Connection_String;
30: oConn.Open();
31: var multipleRS = Server.CreateObject("ADODB.CreateRecordset");
32: multipleRS.ActiveConnection = oConn;
33: queryString = "Northwind.dbo.prReturnMultipleRecordsets";
34: multipleRS.Open(queryString);
35: outputRS(multipleRS);
36:


Posted by sachauncey at 05:28 AM

July 02, 2003

Form Builder

"Introducing FormBuilder.NET, a brand new 100% web-based product that allows anyone to create ASP.NET forms visually using Internet Explorer 6. With FormBuilder.NET anyone can create ASP.NET forms without any programming experience. The FormBuilder.NET form generator automatically creates the necessary VB.NET or C# programming code used in the ASP.NET Web forms. You never have to see or program a single line of code (although you can if you'd like after the form code is generated)!"

Posted by sachauncey at 09:10 PM