Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadUpload
ID
=
"RadUpload1"
runat
"server"
>
</
asp:Button
"Button2"
Text
"Button"
OnClick
"Button2_Click"
/>
protected
void
Button2_Click(
object
sender, EventArgs e)
{
UploadedFile file = RadUpload1.UploadedFiles[0];
StreamReader reader =
new
StreamReader(file.InputStream);
string
s = reader.ReadToEnd();
MatchCollection collection = Regex.Matches(s, @
"[\S]+"
);
Response.Write(collection.Count);
}