Posts

Case in SQL

CASE ebv.db_no WHEN 22978 THEN 'WECS 9500' WHEN 23218 THEN 'WECS 9500' WHEN 23219 THEN 'WECS 9500' ELSE 'WECS 9520' END

Uploading Image to Sql Server Image Datatype in asp.net using fileupload Control

Uploading Image to Sql Server Image Datatype in asp.net using fileupload Control  Byte[] imgbyte = null;  if (FileUpload1.HasFile)             {                 string fileName = Path.GetFileName(FileUpload1.PostedFile.FileName);                 FileUpload1.PostedFile.SaveAs(Server.MapPath("~/UserPhoto/") + DateTime.Now.ToString("_MMddyyyy_HHmmss") + fileName);                 photo = "UserPhoto/" + DateTime.Now.ToString("_MMddyyyy_HHmmss") + fileName;                 string fpathPhoto = Server.MapPath(photo);                 FileInfo fInfo = new FileInfo(fpathPhoto);                 long numBytes = fInfo.Length;                 //Open FileStream to read...
Image
Uploading video on Youtube from our .net website Video 1 Video 2 Video 3 Video 4 Video 5

Managinng Date and Time of Indian Timezone for US Servers with Asp.Net C# code

TimeZoneInfo INDIAN_ZONE = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"); DateTime indianTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE); string date1 = indianTime.ToShortDateString();                          string currentdate = Convert.ToDateTime(date1, CultureInfo.CurrentCulture).ToString("M/d/yyyy");
Web Hosting Guide for Beginners If you have been thinking of making your own website to take advantage of the Internet boom but don’t know about website hosting and other services that are essential for creating and hosting a site, this article is meant for you. There are many basic questions about website hosting and other  web hosting services  whose answers are sought by the beginners. Here we try to answers all such frequently asked questions on website hosting to guide the beginners. What is Website Hosting?  Hosting a website means making a website available to public worldwide. When you create website, it is composed of web pages having text, images, videos and other content for people to see them. However, people can see your website only when it is available on the Internet. To make your website available on the Internet, you have to store it on a computer called web server. When you buy some space on a web server and store your webpages there, your websit...

PHP Programs for MCA

Practical Slips Class Php Lecture Php

Write a VC++ Window Program to Display the Characters entered by User from the Keyboard and type five to six Lines also take care of backspace is work.

Add #define ID_EDIT 1 LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; static HWND hwndEdit; switch (message) { case WM_CREATE: hwndEdit=CreateWindow(TEXT("edit"),NULL,WS_CHILD|WS_CHILD|WS_VISIBLE|WS_HSCROLL|WS_VSCROLL|WS_BORDER|ES_LEFT|ES_MULTILINE|ES_AUTOHSCROLL|ES_AUTOVSCROLL,0,0,0,0,hWnd,(HMENU)ID_EDIT,((LPCREATESTRUCT)lParam)->hInstance,NULL); break; case WM_SETFOCUS: SetFocus(hwndEdit); break; case WM_SIZE: MoveWindow(hwndEdit,0,0,LOWORD(lParam),HIWORD(lParam),TRUE); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam);    }    return 0; }