/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/handlers/dataupload.ashx
34 строки
1 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ WebHandler Language="VB" Class="dataupload" %> Imports System Imports System.Web Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports edGridNamespace Public Class dataupload : Implements IHttpHandler Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim sr As New StreamReader(context.Request.InputStream) Dim tableName As String = sr.ReadLine Dim clearData As String = sr.ReadLine Dim data As String = sr.ReadToEnd Dim tl, upl As Integer context.Response.ContentType = "text/plain" If data <> "" Then Try Call (New tableConfig(tableName)).UploadDataToTable(data, tl, upl, clearData = "Y") Catch ex As Exception context.Response.Write(ex.Message) End Try End If context.Response.Write(tl & "/" & upl) End Sub End Class