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 of troubleshooting and learning new Programming skills and many more. Here you will find answers for many new technologies like asp.net 2.0/3.5,4.0 C# access, mysql, Amazon Webservice ,Sql-server, JD Edwards, SAS, Salesforce, APIs, MVC and many more. please visit & discuss.
<%
@ 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.";}
}
}