‘Dim RecIDRE As String = Request.Form(“reId”) If Not RecID = 0 Then Try ‘define sql conn Dim connString As String connString = ConfigurationManager.ConnectionStrings(“MySQLConnectionString1”).ToString Dim conn As New SqlConnection(connString) Dim cmd As New SqlCommand() conn.ConnectionString = connString conn.Open() Dim printArray As Array = RecID.Split(“,”) Dim i As Integer For i = 0 To printArray.Length – 1 […]
Home » Posts tagged "Visual Studio" (Page 2)
Archive for the 'Visual Studio' Tag
Resize image before upload
Markup Page <div id=”FileUpd1″ runat=”server” > Default: <asp:FileUpload ID=”ImgUpload1″ runat=”server” /> <asp:Button ID=”Btn1″ runat=”server” Text=”Submit ” CssClass=”btnSubmit” CausesValidation=”true”/> Code Behind – Click to read more… Imports System.IO Imports System.Web.UI Imports System.Data.Sql Imports System.Data.SqlClient Imports System.Drawing Imports System.Drawing.Imaging Protected Sub Btn1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn1.Click ‘define variable Dim adPhotoName As String = […]