Value cannot be null. Parameter name: name

add web reference ile web service eklenirken, veya web service çalıştırılırken, dbml'in güncel olmaması nedeniyle bulunamayan nesneler (stored procedure vb.) bu hataya neden olabiliyor.

indexed view with schemabinding

ALTER VIEW [dbo].[Vw_View1] WITH SCHEMABINDING AS
SELECT ...
FROM ...

CREATE UNIQUE CLUSTERED INDEX [IX_Index1] ON [dbo].[Vw_View1]
(
[Column1] ASC
)
GO

related errors:
Cannot create index on view  because the view is not schema bound.

http://www.mssqltips.com/tip.asp?tip=1610

checkboxlist prerender

protected void cblDilekceTipi_PreRender(object sender, EventArgs e)
{
foreach (ListItem item in cblDilekceTipi.Items)
{
item.Text = item.Text.Replace(" Dilekçesi", "");
}
}

ie6 background image

{ background: transparent url('../img/external.gif') no-repeat; padding-left: 10px; height: 20px; float: left; position: relative; filter: alpha(opacity=40); opacity: .40; }

the critical points are bold.

fixed bottom bar (facebook style) with jquery

http://ryan.rawswift.com/2009/02/15/fixed-that-bar-at-the-bottom-like-facebook/

jquery ui tabs sayfa yüklenirken dağılma sorunu

sayfanın tamamı yüklenmeden önce, yani document.ready sırasında çalışacak ve tab'ları düzenleyecek tabs metodu çalışmadan önce, tab'lar açık görünüyor. bunun önüne geçmek için kullanılabilecek bir yol; tab içeriğini gizlemek, sayfa yüklendikten sonra göstermek:

$("div[id*='tabs']").tabs({
fx: {
opacity: 'toggle',
duration: 'fast'
}
});

$(document).ready(function() {
document.getElementById('toptab').style.display = 'block';
}

http://stackoverflow.com/questions/1069758/should-jquery-tabs-be-inside-document-ready

jquery tipsy ie tooltip bug fix

http://github.com/jaz303/tipsy/commit/88923af6ee0e18ac252dfc3034661674b7670a97

initcap: set first letter uppercase, rest of other lowercase

CREATE FUNCTION [dbo].[InitCap] ( @InputString varchar(4000) )
RETURNS VARCHAR(4000)
AS
BEGIN

DECLARE @Index INT
DECLARE @Char CHAR(1)
DECLARE @PrevChar CHAR(1)
DECLARE @OutputString VARCHAR(255)

SET @OutputString = LOWER(@InputString)
SET @Index = 1

WHILE @Index <= LEN(@InputString)
BEGIN
SET @Char = SUBSTRING(@InputString, @Index, 1)
SET @PrevChar = CASE WHEN @Index = 1 THEN ' '
ELSE SUBSTRING(@InputString, @Index - 1, 1)
END

IF @PrevChar IN (' ', ';', ':', '!', '?', ',', '.', '_', '-', '/', '&', '''', '(')
BEGIN
IF @PrevChar != '''' OR UPPER(@Char) != 'S'
SET @OutputString = STUFF(@OutputString, @Index, 1, UPPER(@Char))
END

SET @Index = @Index + 1
END

RETURN @OutputString

END
GO


http://www.sql-server-helper.com/functions/initcap.aspx

select a treenode, and expand all parent nodes of it

select a treenode, and expand all parent nodes of it.

private void SetSelectedNode(int sira)
{
if (sira > 0)
{
TreeNode selectedNode = null;
foreach (TreeNode node in tvMadde.Nodes)
{
if (node.Value == sira.ToString())
{
selectedNode = node;
}

if (selectedNode == null)
{
if (node.ChildNodes.Count > 0)
{
selectedNode = GetNode(node, sira);
}
}
else
{
selectedNode.Checked = true;
selectedNode.Select();
if (selectedNode.Parent != null)
{
// selectedNode.Parent.Expand();
// selectednode'un tüm parent'larını aç
ExpandParent(selectedNode);
}

break;
//return;
}
}

if (selectedNode != null)
{
selectedNode.Checked = true;
selectedNode.Select();
selectedNode.Parent.Expand();
}
}
}

private void ExpandParent(TreeNode childNode)
{
if (childNode.Parent != null)
{
childNode.Parent.Expand();
ExpandParent(childNode.Parent);
}
}

making one button click another

input type="button" value="File" onclick="document.getElementById('file').click()"
input type="file" style="display:none" id="file" onchange="alert(this.value)"

http://www.webmasterworld.com/forum91/3606.htm

search this blog (most likely not here)