Monday, 9 March 2015

save/upload files in folder and download files from folder in asp.net

Front end code:
<div>
<asp:FileUpload ID="fileUpload1" runat="server" /><br />
<asp:Button ID="btnUpload" runat="server" Text="Upload" onclick="btnUpload_Click" />
</div>

Back End Code:
protected void btnUpload_Click(object sender, EventArgs e)
{
string filename = Path.GetFileName(fileUpload1.PostedFile.FileName);
fileUpload1.SaveAs(Server.MapPath("Files/"+filename));
con.Open();
}

Sunday, 8 March 2015

How to Generate Popup window on method called or button click

In this I am explaining how to display Message Boxes in ASP.Net using JavaScript. ASP.Net. With the use of JavaScript alert we can display messages on different events in an ASP.Net Web Application.

C# code is given Below....
protected void Page_Load(object sender, EventArgs e)
{
  string message = "Hello! Mudassar.";
  System.Text.StringBuilder sb = new System.Text.StringBuilder();
  sb.Append("<script type = 'text/javascript'>");
  sb.Append("window.onload=function(){");
  sb.Append("alert('");
  sb.Append(message);
  sb.Append("')};");
  sb.Append("</script>");
  ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());
}

ScreenShots:



Wednesday, 4 March 2015

New Ways To Interact With Your Computer - CES 2015 GetConnected TV

HP shows you some new technology that allows you to interact with your computer in ways not seen before. Join Andy Baryer at the CES 2015 ShowStoppers convention as he chats with HP about their new tech and HP Sprout.

The Future of Touch screen Technology 2015

This is the result of TAT's Open Innovation experiment. It is an experience video showing the future of screen technology with stretchable screens, transparent screens and e-ink displays, to name a few. I think this is pretty cool and shows the true capability of screen technology.

5 Mind Blowing Facts About Your Smartphone!

Today's smartphones are not what they used to be even just a few years ago. Smartphones are the fastest growing industry in history but that's not all.. Watch and learn these amazing facts about the devices in your pocket!

10 must have smartphones coming in 2015

As 2015 approaches,the next generation of smartphones are beginning to emerge. What will be the 10 must have smartphones of 2015?

computer Latest technology 2015

computer Latest technology 2015 Which All Based On touch and Pam Computers

Allie 720 Degree Interactive Video

IC Realtech demos their Allie cameras and software at CES Unveiled 2015.

Dying Light Using Oculus VR

Kyle Russell got an early look at first-person zombie-survival game Dying Light, which arrives on PC and consoles in January. This wasn’t your run-of-the-mill demo, however — Techland, the studio behind the game, let me play on an Oculus Rift connected to a maxed out gaming rig.

Google's DIY virtual reality cardboard headset - BBC News