Welcome To Snipplr


Everyone's Recent Snippets Tagged aspnet



You should include these Cookie helpers in your base page class. Enjoy!
0 1637 posted 15 years ago by mecha
create aspnet db in sql from .net tools
1 2202 posted 15 years ago by hairajeshk
integrate asp.net with sharepoint (Sharepoint)
0 1687 posted 15 years ago by hairajeshk
Old school or simple way of querying data without a DAL.
1 1904 posted 15 years ago by myke
Class to shorten text. For example for an article where people can click read more to read the whole article.
1 1745 posted 16 years ago by Fogh
Add this code to your Global.asax in your ASP.NET project, in the \"Application_BeginRequest\" event.
1 1791 posted 16 years ago by Fogh
1 1851 posted 16 years ago by emmanuelbuah
1 1943 posted 16 years ago by mpcircuitry
I removed several properties from my custom Profile class, and wanted to clean out the data from the aspnet\_Profile table. This code will remove all unwanted data from the PropertyNames and PropertyValuesString columns of aspnet\_Profile. Note this...
2 2050 posted 16 years ago by mmfusion
// Taken from : // http://www.west-wind.com/weblog/posts/42319.aspx
0 1652 posted 16 years ago by delikassap
Loop through the ListView Control within 2nd level collection. 2nd level means it's within another control (ie table html generic control).
0 2437 posted 16 years ago by the_menace
Passing values between ASP.NET and JavaScript code is messy...
0 1754 posted 16 years ago by streamt
Many times we face situation like when we need to access the code behind variables from javascript as well as accessing javascript variable from code behind. I can remember a practical scenario in my previous project. The requirement was to dra...
0 2045 posted 16 years ago by streamt
A simple, non-recursive function that I use to return the first element with an ID that contains a certain ID string. Sometimes, APS.NET appends the Naming Container ID to the IDs of controls, and in instances where the ClientID of a control you wa...
0 1290 posted 16 years ago by erintechspired
Just replace classic document.ready with pageLoad function as belows: pageLoad function will called on all postback and partial postbacks. So it makes the jquery code no matter what :D Even in update panel.
1 1775 posted 16 years ago by delikassap
Use it on your AreaRegistrationContext via the extension MapRouteLowercase
0 1858 posted 16 years ago by jmcd
0 1375 posted 16 years ago by streamt
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0 2104 posted 16 years ago by cardiffblogger
In DB.GetData(select) is executed new SqlDataAdapter(Select, dbConnection).Fill(table)
0 1595 posted 16 years ago by tomaszsimon
Load this Javascript after the MS AJAX files have been loaded. In the example I am using jQuery to call the patchMicrosoftAjax() method, but you can use any method you desire.
0 2848 posted 16 years ago by jink
I modified this helpful snippet: http://snipplr.com/view/9904/aspdropdownlist-us-states-abbreviated/ to work for the Telerik RadComboBox control.
0 1834 posted 16 years ago by sonofabit
Page_ClientValidate is a global function. When called this will return true/false if the validator group provided is valid or not.
0 1889 posted 17 years ago by jink
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 1860 posted 17 years ago by rengber
Learn how to emulate ASP.NET's AppendFormat method in Classic ASP. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1 2188 posted 17 years ago by neal_grosskopf