This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CPU ID | |
string sQuery = "SELECT ProcessorId FROM Win32_Processor"; | |
ManagementObjectSearcher oManagementObjectSearcher = new ManagementObjectSearcher(sQuery); | |
ManagementObjectCollection oCollection = oManagementObjectSearcher.Get(); | |
foreach (ManagementObject oManagementObject in oCollection) | |
{ | |
sProcessorID = (string)oManagementObject["ProcessorId"]; | |
} | |
//HDD ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=640, initial-scale=1, maximum-scale=1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Reflection; | |
using System.Web; | |
using System.Text; | |
namespace CANBATUERDEM | |
{ | |
public static class ExcepitonExtensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Task<DataTable> db() | |
{ | |
return Task.Run(() => | |
{ | |
SqlConnection baglan = new SqlConnection("Server=.\\sqlexpress;Database=eczanem;Trusted_Connection=True;"); | |
string sorgu = textBox1.Text; | |
SqlDataAdapter adp = new SqlDataAdapter(sorgu, baglan); | |
DataTable dt = new DataTable(); | |
adp.Fill(dt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="VAD.test" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
<script src="Scripts/jquery-1.9.1.min.js"></script>//jquery dosyamız | |
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>//ckeditor dosyamız |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override object SaveViewState() | |
{ | |
//bu fonksyion ile viewstate i kaydediyoruz | |
object[] controlState = new object[4]; | |
controlState[0] = base.SaveViewState(); //kontrolün kendi viewstateleri | |
controlState[1] = this.baslangic;//bizim degiskenimiz | |
controlState[2] = this.bitis;//bizim degiskenimiz | |
controlState[3] = this.coklu;//bizim degiskenimiz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE [dbo].[usp_Create_Table_DDLs] | |
( | |
@sTable_Name SYSNAME, | |
@Create_Table_Ind BIT = 1, | |
@PK_Ind BIT = 1, | |
@FK_Ind BIT = 1, | |
@Check_Ind BIT = 1, | |
@Default_Ind BIT = 1 | |
) | |
AS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROC sp_generate_inserts | |
( | |
@table_name varchar(776), -- The table/view for which the INSERT statements will be generated using the existing data | |
@target_table varchar(776) = NULL, -- Use this parameter to specify a different table name into which the data will be inserted | |
@include_column_list bit = 1, -- Use this parameter to include/ommit column list in the generated INSERT statement | |
@from varchar(800) = NULL, -- Use this parameter to filter the rows based on a filter condition (using WHERE) | |
@include_timestamp bit = 0, -- Specify 1 for this parameter, if you want to include the TIMESTAMP/ROWVERSION column's data in the INSERT statement | |
@debug_mode bit = 0, -- If @debug_mode is set to 1, the SQL statements constructed by this procedure will be printed for later examination | |
@owner varchar(64) = NULL, -- Use this parameter if you are not the owner of the table | |
@ommit_images bit = 0, -- Use this parameter to generate INSERT statements by omitting the 'image' columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<title></title> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> | |
<script type="text/javascript" > | |
var map; | |
var marker; | |
var infowindow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Bu kodlar ile txt dosyasından aldık. Böylece Taslak Değişeceği zaman template.html değiştirmek yeterli. | |
TextReader txt = File.OpenText(Server.MapPath("~/App_Data/template.html")); | |
var strTemplate=txt.ReadToEnd(); | |
txt.Close(); | |
txt.Dispose(); | |
//Adim 1. Templatei verdik. | |
Template template = Template.Parse(strTemplate); | |
//Veri Normalde bu database den gelir ben kendim olusturdum. |
OlderNewer