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.Generic; | |
using System.Collections.ObjectModel; | |
using System.ComponentModel; | |
using System.Data.SqlClient; | |
using System.IO; | |
public static class MGExtensions | |
{ | |
public static bool DoluMu(this string s) | |
{ |
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 Biggy; | |
using Biggy.JSON; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace AYarlar | |
{ | |
public class Firma |
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
//Kaynak: http://stackoverflow.com/questions/18550769/sqldatareader-best-way-to-check-for-null-values-sqldatareader-isdbnull-vs-dbnul | |
using System; | |
using System.ComponentModel; | |
using System.Data.SqlClient; | |
public static class SqlReaderHelper | |
{ | |
private static bool IsNullableType(Type theValueType) |
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
<asp:DataPager ID="DataPagerProducts" runat="server" PagedControlID="LvCategoryItems" PageSize="10" OnPreRender="PagerCategoryItems_PreRender" class="btn-group pager-buttons"> | |
<Fields> | |
<asp:NextPreviousPagerField ShowLastPageButton="False" ShowNextPageButton="False" ButtonType="Button" ButtonCssClass="btn" RenderNonBreakingSpacesBetweenControls="false" /> | |
<asp:NumericPagerField ButtonType="Button" RenderNonBreakingSpacesBetweenControls="false" NumericButtonCssClass="btn" CurrentPageLabelCssClass="btn disabled" NextPreviousButtonCssClass="btn" /> | |
<asp:NextPreviousPagerField ShowFirstPageButton="False" ShowPreviousPageButton="False" ButtonType="Button" ButtonCssClass="btn" RenderNonBreakingSpacesBetweenControls="false" /> | |
</Fields> | |
</asp:DataPager> |
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].[deleteAllDataFromAllTables] AS | |
SET NOCOUNT ON | |
DECLARE @dropAndCreateConstraintsTable TABLE ( DropStmt varchar(max) , CreateStmt varchar(max) ) | |
insert @dropAndCreateConstraintsTable select | |
DropStmt = 'ALTER TABLE [' + ForeignKeys.ForeignTableSchema + | |
'].[' + ForeignKeys.ForeignTableName + | |
'] DROP CONSTRAINT [' + ForeignKeys.ForeignKeyName + ']; ' | |
, CreateStmt = 'ALTER TABLE [' + ForeignKeys.ForeignTableSchema + |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-6 col-md-4 col-md-offset-4"> | |
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1> | |
<div class="account-wall"> | |
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120" | |
alt=""> | |
<form class="form-signin"> | |
<input type="text" class="form-control" placeholder="Email" required autofocus> | |
<input type="password" class="form-control" placeholder="Password" required> |
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
DROP FUNCTION IF EXISTS slugify; | |
DELIMITER ;; | |
CREATE DEFINER='root'@'localhost' | |
FUNCTION slugify (temp_string VARCHAR(200) CHARSET utf8) | |
RETURNS VARCHAR(200) | |
DETERMINISTIC | |
BEGIN | |
DECLARE x, y , z Int; | |
DECLARE new_string VARCHAR(200); | |
DECLARE is_allowed Bool; |
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
var formData = {}; | |
$(".form-secici").serializeArray().map(function (x) { formData[x.name] = x.value; }); | |
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
var formData = {}; | |
$(".form-secici").serializeArray().map(function (x) { formData[x.name] = x.value; }); | |
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
//Extensiyonumuz | |
public static class HtmlExtensions | |
{ | |
public static MvcHtmlString Script(this HtmlHelper htmlHelper, Func<object, HelperResult> template) | |
{ | |
htmlHelper.ViewContext.HttpContext.Items["_script_" + Guid.NewGuid()] = template; | |
return MvcHtmlString.Empty; | |
} |