select newid()
select abs(checksum(newid())) as number
select abs(cast(cast(newid() as varbinary(10)) as int)) as number
This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default5.aspx.cs" Inherits="Default5" %><!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Page</title></
head><
body> <form id="form1" runat="server"> <div> <asp:FileUpLoad id="FileUpLoad1" runat="server" /><
asp:Button id="UploadBtn" Text="Upload File" OnClick="UploadBtn_Click" runat="server" Width="105px" /> <asp:Label ID="Label1" runat="server" Width="188px"></asp:Label></div> </form></
body>using
System;using
System.Data;using
System.Configuration;using
System.Collections;using
System.Web;using
System.Web.Security;using
System.Web.UI;using
System.Web.UI.WebControls;using
System.Web.UI.WebControls.WebParts;using
System.Web.UI.HtmlControls;public
partial class Default5 : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e){
}
protected void UploadBtn_Click(object sender, EventArgs e){
if (FileUpLoad1.HasFile){
FileUpLoad1.SaveAs(
@"C:\webfiles\" + FileUpLoad1.FileName);Label1.Text =
"File Uploaded: " + FileUpLoad1.FileName ;}
else{
Label1.Text =
"No File Uploaded.";}
}
}