Permalink
Browse files

git-svn-id: http://svn.textmate.org/trunk/Bundles/ASP_vb_NET.tmbundle…

…@2842 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
0 parents commit 06b20dbad3db69d4c2ac4a6a85e8d824cb854099 @subtleGradient subtleGradient committed Mar 8, 2006
Showing with 1,962 additions and 0 deletions.
  1. +24 −0 Snippets/ASP TamplateColumn Checkbox.plist
  2. +21 −0 Snippets/ASP.NET Function.plist
  3. +28 −0 Snippets/ASP.NET SQLDataReader.plist
  4. +20 −0 Snippets/ASP.NET Sub (group selection).plist
  5. +19 −0 Snippets/ASP.NET Sub.plist
  6. +16 −0 Snippets/ASP.NET single quote in SQL statement.plist
  7. +18 −0 Snippets/Bound Column.plist
  8. +18 −0 Snippets/Hilight Search Terms(TEXT).plist
  9. +18 −0 Snippets/IIf() quote html.plist
  10. +18 −0 Snippets/IIf() quote.plist
  11. +18 −0 Snippets/IIf().plist
  12. +18 −0 Snippets/If then HTML.plist
  13. +120 −0 Snippets/MM_DataGrid Sort Page Edit.plist
  14. +89 −0 Snippets/MM_DataGrid Sort Page Search.plist
  15. +18 −0 Snippets/Regex.Replace().plist
  16. +16 −0 Snippets/Request.Cookies (ASP).plist
  17. +16 −0 Snippets/Request.Form (ASP).plist
  18. +16 −0 Snippets/Request.QueryString (ASP).plist
  19. +18 −0 Snippets/Response.Write().plist
  20. +24 −0 Snippets/SQLDataReader Bound.plist
  21. +37 −0 Snippets/ServerVariables.plist
  22. +16 −0 Snippets/Session (ASP).plist
  23. +23 −0 Snippets/SqlCommand.plist
  24. +18 −0 Snippets/String.Format().plist
  25. +18 −0 Snippets/asp_BoundColumn.plist
  26. +25 −0 Snippets/asp_TemplateColumn.plist
  27. +16 −0 Snippets/break out of string.plist
  28. +16 −0 Snippets/embedded source return value.plist
  29. +18 −0 Snippets/embedded source.plist
  30. +17 −0 Snippets/vbCrLf.plist
  31. +16 −0 Snippets/vbProperCase.plist
  32. +16 −0 Snippets/vbUpperCase.plist
  33. +296 −0 Syntaxes/ASP VB.net.plist
  34. +830 −0 Syntaxes/HTML for ASP.net.plist
  35. +47 −0 info.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;asp:TemplateColumn HeaderText="${1:`echo $TM_SELECTED_TEXT`}" Visible="True"&gt;
+ &lt;itemtemplate&gt;&lt;asp:CheckBox ID="${1:`echo $TM_SELECTED_TEXT`}" runat="server" Checked='&lt;%# Users.FieldValue("${1:`echo $TM_SELECTED_TEXT`}", Container) %&gt;' enabled="false" /&gt;&lt;/itemtemplate&gt;
+ &lt;edititemtemplate&gt;
+ &lt;asp:CheckBox ID="${1:`echo $TM_SELECTED_TEXT`}" runat="server" Checked='&lt;%# Users.FieldValue("${1:`echo $TM_SELECTED_TEXT`}", Container) %&gt;' /&gt;
+ &lt;/edititemtemplate&gt;
+&lt;/asp:TemplateColumn&gt;
+</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>asp:TemplateColumn Checkbox</string>
+ <key>scope</key>
+ <string>text.html.asp.net</string>
+ <key>tabTrigger</key>
+ <string>asp:</string>
+ <key>uuid</key>
+ <string>E740C23F-7520-4685-9165-045CD52DDF21</string>
+</dict>
+</plist>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Function ${1:Process}(${2:This_Item} As ${3:String}) As ${4:Boolean}
+ Return ${5:True}$0
+End Function
+</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>Function</string>
+ <key>scope</key>
+ <string>source.asp</string>
+ <key>tabTrigger</key>
+ <string>function</string>
+ <key>uuid</key>
+ <string>312FE06B-D9DA-4EBF-AF43-5CF67CC8A127</string>
+</dict>
+</plist>
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Dim con$4 as new System.Data.SQLClient.SQLConnection(System.Configuration.ConfigurationSettings.AppSettings("${3:MM_CONNECTION_STRING_TIW_LIVE}"))
+con$4.Open()
+ Dim strSQL$4 as String = "${1:${TM_SELECTED_TEXT:SELECT * FROM Users WHERE Clue &gt; 0}}"
+ Dim com$4 as new System.Data.SQLClient.SQLCommand(strSQL$4, Con$4)
+ Dim r$4 as System.Data.SQLClient.SQLDataReader = Com$4.ExecuteReader()
+ While r$4.Read()
+ ${5:r$4(0)}$0
+ End While
+ r$4.Close()
+con$4.close()
+</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>SQLDataReader Loop</string>
+ <key>scope</key>
+ <string>source.asp</string>
+ <key>tabTrigger</key>
+ <string>sql</string>
+ <key>uuid</key>
+ <string>A20AA1B8-4F3E-492B-B619-2EF46832CB69</string>
+</dict>
+</plist>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string> ${1:Process}($2)
+${3:sub ${1:Process}($2)
+${TM_SELECTED_TEXT:'Do that thing you do
+}$0end sub
+}</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>Sub (group selection)</string>
+ <key>scope</key>
+ <string>source.asp</string>
+ <key>uuid</key>
+ <string>56A9D3BB-181D-4950-9389-664E2435DC3C</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>sub ${2:Process}(${2:sender as Object, e as EventArgs})
+ ${1:${TM_SELECTED_TEXT:'Do that thing you do}}$0
+end sub
+</string>
+ <key>name</key>
+ <string>Sub</string>
+ <key>scope</key>
+ <string>source.asp</string>
+ <key>tabTrigger</key>
+ <string>sub</string>
+ <key>uuid</key>
+ <string>BD4C231E-8F19-4ACA-844B-B0F4D065D2AD</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>"&amp; Chr(39) &amp;"</string>
+ <key>keyEquivalent</key>
+ <string>'</string>
+ <key>name</key>
+ <string>' = "&amp;Chr(39)&amp;"</string>
+ <key>scope</key>
+ <string>text.html.asp declaration.tag string.quoted.single source.asp string.quoted.double, text.html.asp declaration.tag.html string.quoted.single.html meta.source.embedded.bound source.asp.embedded.html string.quoted.double.asp, text.html.asp meta.tag string.quoted.single source string.quoted.double</string>
+ <key>uuid</key>
+ <string>A0D228AD-2CDA-423A-A621-597238AD472A</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;%# DataBinder.Eval(Container.DataItem, "${1:${TM_SELECTED_TEXT:ColumnName}}"${2:, "{0:C\}"}) %&gt;$0</string>
+ <key>keyEquivalent</key>
+ <string>^#</string>
+ <key>name</key>
+ <string># Container.DataItem</string>
+ <key>scope</key>
+ <string>text.html.asp.net</string>
+ <key>tabTrigger</key>
+ <string>#</string>
+ <key>uuid</key>
+ <string>DFF5EEC2-48AA-41AE-A0F5-AD0CCC49F285</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>${3:IIf(Request.Querystring("s")&lt;&gt;"",Regex.Replace(${1:${TM_SELECTED_TEXT:"Hello World!!!1!"}}, "("&amp; Request.Querystring("s") &amp;")", "&lt;${2:span} class='ss'&gt;\$1&lt;/${2:span}&gt;"),$1)}</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>Hilight Search Terms(TEXT)</string>
+ <key>scope</key>
+ <string>source.asp</string>
+ <key>tabTrigger</key>
+ <string>format</string>
+ <key>uuid</key>
+ <string>4BC9912E-93CF-4C5D-A264-425D0151C542</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;%= IIf(${2:Is_This_True?},"${1:${TM_SELECTED_TEXT:True}}",${4:"$3"})$0 %&gt;</string>
+ <key>keyEquivalent</key>
+ <string>^@i</string>
+ <key>name</key>
+ <string>IIf() "" html</string>
+ <key>scope</key>
+ <string>text.html string -source</string>
+ <key>tabTrigger</key>
+ <string>IIf</string>
+ <key>uuid</key>
+ <string>FBDCCC35-1DB9-42BE-8C97-96183C2D0CA0</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>"&amp; IIf(${2:Is_This_True?},"${1:${TM_SELECTED_TEXT:True}}",${4:"$3"})$0 &amp;"</string>
+ <key>keyEquivalent</key>
+ <string>^@i</string>
+ <key>name</key>
+ <string>IIf() ""</string>
+ <key>scope</key>
+ <string>source.asp string</string>
+ <key>tabTrigger</key>
+ <string>IIf</string>
+ <key>uuid</key>
+ <string>516A2F6B-E1BD-4E30-9CBA-FCB2D400C60B</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>IIf(${1:${TM_SELECTED_TEXT:Is_This_True?}},${2:true},${3:false})$0</string>
+ <key>keyEquivalent</key>
+ <string>^@i</string>
+ <key>name</key>
+ <string>IIf()</string>
+ <key>scope</key>
+ <string>source.asp -(source string), text string source.asp -(source string)</string>
+ <key>tabTrigger</key>
+ <string>IIf</string>
+ <key>uuid</key>
+ <string>7624FE5A-4293-4081-BDA8-7CD6534D7D5A</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;% if ${2:Is_This_True?} %&gt;${1:${TM_SELECTED_TEXT:True}}${4:&lt;% else %&gt;$3}&lt;% end if %&gt;$0</string>
+ <key>keyEquivalent</key>
+ <string>^@i</string>
+ <key>name</key>
+ <string>If then HTML</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>IIf</string>
+ <key>uuid</key>
+ <string>E2DA60E2-97F4-42AC-AF9E-5A0C7DE4B724</string>
+</dict>
+</plist>
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>${9:&lt;div id="search_${1:Orders}"&gt;
+ &lt;form action="" method="get"&gt;
+ Search &lt;input name="s" value="&lt;%= Request.Querystring("s") %&gt;" /&gt;
+ &lt;input type="submit" value="Search ${1:Orders}" /&gt;
+ &lt;/form&gt;
+&lt;/div&gt;
+}&lt;div id="${1:Orders}"&gt;
+${7: &lt;%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %&gt;
+ &lt;mm:pagebind runat="server" PostBackBind="true" /&gt;
+} &lt;mm:dataset ID="${1:Orders}"
+ runat="Server"
+ IsStoredProcedure="false"
+ ConnectionString='&lt;%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_${3:Common_LIVE}") %&gt;'
+ DatabaseType='&lt;%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_${3:Common_LIVE}") %&gt;'
+ CommandText='&lt;%# "${2:select * from users where clue is not null} ORDER BY "+ IIf((Not Request.Querystring("sortOn") Is Nothing), Request.Querystring("sortOn"), "${4:username}") +" "+ Request.Querystring("sortDir") %&gt;'
+ Debug="true" PageSize="25"
+ &gt;
+ &lt;parameters&gt;${5:
+ &lt;parameter name="@s" value='&lt;%# "%" + IIf((Not Request.Querystring("s") Is Nothing), Request.Querystring("s"), "") + "%" %&gt;' type="VarChar" /&gt;
+ }&lt;/parameters&gt;${6:
+ &lt;editops&gt;
+ &lt;editopstable name="dbo.tblFedExSecurity" /&gt;
+ &lt;parameter name="password" type="NVarChar" /&gt;
+ &lt;parameter name="customerid" type="NVarChar" /&gt;
+ &lt;parameter name="locationid" type="Int" /&gt;
+ &lt;parameter name="style" type="NVarChar" /&gt;
+ &lt;parameter name="sub_style" type="SmallInt" /&gt;
+ &lt;parameter name="make_style" type="SmallInt" /&gt;
+ &lt;parameter name="shipping_method" type="SmallInt" /&gt;
+ &lt;parameter name="type" type="NVarChar" /&gt;
+ &lt;parameter name="role" type="NVarChar" /&gt;
+ &lt;parameter name="phone" type="NVarChar" /&gt;
+ &lt;parameter name="email" type="VarChar" /&gt;
+ &lt;parameter name="viewreport" type="Bit" /&gt;
+ &lt;parameter name="viewreportnumbers" type="Bit" /&gt;
+ &lt;parameter name="viewreportmoney" type="Bit" /&gt;
+ &lt;parameter name="viewtracking" type="Bit" /&gt;
+ &lt;parameter name="addlocations" type="Bit" /&gt;
+ &lt;parameter name="viewlocations" type="Bit" /&gt;
+ &lt;parameter name="sendemail" type="Bit" /&gt;
+ &lt;parameter name="fundsallocation" type="Bit" /&gt;
+ &lt;parameter name="supplyordering" type="Bit" /&gt;
+ &lt;parameter name="generatecalltag" type="Bit" /&gt;
+ &lt;parameter name="generateprp" type="Bit" /&gt;
+ &lt;parameter name="viewlogins" type="Bit" /&gt;
+ &lt;parameter name="createlogins" type="Bit" /&gt;
+ &lt;parameter name="${4:username}" type="NVarChar" isprimary="true" /&gt;
+ &lt;/editops&gt;}
+ &lt;/mm:dataset&gt;
+ &lt;script runat="server"&gt;
+ Sub ${1:Orders}_sortCommand(sender as Object, e as DataGridSortCommandEventArgs)
+ dim sortDir as string = ""
+ if Request.QueryString("sortOn") = e.SortExpression then
+ if (Request.QueryString("sortDir") = "")
+ sortDir = "ASC"
+ else if (Request.QueryString("sortDir") = "ASC")
+ sortDir = "DESC"
+ else if (Request.QueryString("sortDir") = "DESC")
+ sortDir = "ASC"
+ end if
+ else
+ sortDir = "ASC"
+ end if
+ Response.Redirect(Request.ServerVariables("SCRIPT_NAME") + "?sortOn=" + e.SortExpression + "&amp;sortDir=" + sortDir + "&amp;s=" + Request.Querystring("s"))
+ end sub
+ &lt;/script&gt;
+ &lt;asp:DataGrid ID="${1:Orders}_DG"
+ DataKeyField="${4:username}"
+ AutoGenerateColumns="true"
+
+ runat="server"
+ AllowSorting="true"
+ OnSortCommand="${1:Orders}_sortCommand"
+
+ DataSource="&lt;%# ${1:Orders}.DefaultView %&gt;"
+ OnItemDataBound="${1:Orders}.OnDataGridItemDataBound"
+ OnEditCommand="${1:Orders}.OnDataGridEdit"
+ OnUpdateCommand="${1:Orders}.OnDataGridUpdate"
+ OnDeleteCommand="${1:Orders}.OnDataGridDelete"
+ OnCancelCommand="${1:Orders}.OnDataGridCancel"
+
+ AllowPaging="true"
+ AllowCustomPaging="true"
+ PageSize="&lt;%# ${1:Orders}.PageSize %&gt;"
+ OnPageIndexChanged="${1:Orders}.OnDataGridPageIndexChanged"
+ virtualitemcount="&lt;%# ${1:Orders}.RecordCount %&gt;"
+ PagerStyle-Mode="NumericPages"
+
+ ShowHeader="true"
+ ShowFooter="false"
+ &gt;
+ &lt;headerstyle CssClass="headerstyle" /&gt;
+ &lt;itemstyle CssClass="itemstyle" /&gt;
+ &lt;alternatingitemstyle CssClass="alternatingitemstyle" /&gt;
+ &lt;footerstyle CssClass="footerstyle" /&gt;
+ &lt;pagerstyle CssClass="pagerstyle" /&gt;
+ &lt;columns&gt;
+ &lt;asp:EditCommandColumn ButtonType="LinkButton" CancelText="Cancel" EditText="Edit" HeaderText="Edit" UpdateText="Update" visible="True"/&gt;
+ $0
+ &lt;/columns&gt;
+ &lt;/asp:DataGrid&gt;
+&lt;/div&gt;
+</string>
+ <key>keyEquivalent</key>
+ <string>^~</string>
+ <key>name</key>
+ <string>MM:DataGrid Sort Page Edit</string>
+ <key>scope</key>
+ <string>text.html.asp</string>
+ <key>tabTrigger</key>
+ <string>datagrid</string>
+ <key>uuid</key>
+ <string>68A09D9A-8324-4CCC-AC4A-6D175536EF38</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit 06b20db

Please sign in to comment.