‘ASP.NET’ Category Archives


Duloxetine 20mg Pills $133.00

by Lynn Demarest in ASP.NET, SQL Server, Technical, Web

Comments Off Comments

Cheapest viagra world I was rolling along one night, cheapest viagra world tired but making good progress, cheapest viagra world when one of my DropDownLists refused to fire its OnSelectedIndexChanged event.

Cheapest viagra world During the postback, cheapest viagra world Page_Load fired, cheapest viagra world but the OnSelectedIndexChanged event for the control did not.

Cheapest viagra world After some time, cheapest viagra world I finally realized that the VALUES of the ill-behaving DropDownList were all the empty string (“”) because I had forgotten to make the key column of the table supplying the list data an IDENTITY column in SQL Server. Cheapest viagra world So even though the selected INDEX was changing, cheapest viagra world the selected VALUE was not. Cheapest viagra world It was always “”, cheapest viagra world because the keys were NULL in SQL Server.

Cheapest viagra world My point here is that had Microsoft named the event better — or fixed it so that it is fired when its name says it will be — the confusion could have been avoided.

Cheapest viagra world Be forewarned: The selected index in a DropDownList can change all it wants, cheapest viagra world but unless the underlying value changes the control’s SelectedIndexChanged event will not be fired.

Cheapest viagra world  

Average Rating: 4.6 out of 5 based on 259 user reviews.


Canadian Viagra

by Lynn Demarest in ASP.NET, jQuery, Miscellaneous, Technical, Web

Comments Off Comments

Viagra label The jQueryUI sortable widget works like magic. Viagra label Apply it to an HTML DIV that contains other DIVs and you can magically drag and drop the inner DIVs to reorder them on the client. Viagra label Say, viagra label for example, viagra label you have an image gallery and want to allow the site administrator to reorder the images. Viagra label Drop the images into the inner DIVs, viagra label attach the widget to the outer DIV and you’re done.

Viagra label Here’s how:

Viagra label 1. Viagra label Add jQuery files

Viagra label <script type=”text/javascript” src=”//code.jquery.com/jquery-2.1.1.min.js” ></script>

Viagra label <script type=”text/javascript” src=”//code.jquery.com/ui/1.10.4/jquery-ui.min.js” ></script>

Viagra label <link rel=”stylesheet” href=”//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css” />

Viagra label 2. Viagra label Insert startup scripts to make the outer DIV with the ID “sortable” sortable

Viagra label <script>

Viagra label $(function () {



Viagra label </script>

Viagra label 3. Viagra label Create the div with the sortable ID. Viagra label Put the inner divs inside it.

Viagra label <div id=”sortable” >

Viagra label <div style=”height:200px;”>
<img id=”ctl00_ContentPlaceHolder1_RIL1_Repeater1_ctl00_Image1″ ImageID=”50″ src=”http://www.mysite.com/donuts.jpg” style=”height:200px;border-width:0px;” />
<input type=”hidden” name=”ids” id=”ids” value=’50′ />

Viagra label <div style=”height:200px;”>
<img id=”ctl00_ContentPlaceHolder1_RIL1_Repeater1_ctl01_Image1″ ImageID=”48″ src=”http://www.mysite.com/BMproduce.jpg” style=”height:200px;border-width:0px;” />
<input type=”hidden” name=”ids” id=”ids” value=’48′ />
… and so on

Viagra label </div> <!– end id=sortable –>

Viagra label The thing to notice here is that, viagra label instead of trying to use the widget’s fancy UPDATE event to trigger a javascript routine charged with reporting the new image order back to the server, viagra label perhaps via AJAX, viagra label we instead include in each list element a hidden input field containing the id of the element to be reordered. Viagra label When a list item gets dragged to a new position, viagra label this hidden field gets dragged along with it.

Viagra label Finally, viagra label we give all of these hidden fields the same name: ids. Viagra label When the form is posted back, viagra label the form field named ids contains the keys in order, viagra label like this:

Viagra label ids=23, viagra label43, viagra label54, viagra label67, viagra label65, viagra label87, viagra label67

Viagra label Given these record keys, viagra label of course, viagra label you can just create SQL statements to update each record’s “SEQ” value. Viagra label In other words, viagra label set the SEQ of record 23 to 1, viagra label set the SEQ of record 43 to 2 and so on.

Viagra label Simple!

Viagra label  

Average Rating: 4.7 out of 5 based on 287 user reviews.


Archive Blog Buy Inurl Viagra

by Lynn Demarest in ASP.NET, Technical, Web

Comments Off Comments

Imitation viagra WARNING: This technique, imitation viagra sadly, imitation viagra only works in Full trust mode. Imitation viagra Most shared servers use medium trust. Imitation viagra If you’re one of those, imitation viagra you’ll have to use the old URLRewrite module, imitation viagra which should be pre-installed for you by your hosting company.

Imitation viagra Finally, imitation viagra Microsoft has come up with a version of Friendly URLs that is friendly to programmers, imitation viagra too. Imitation viagra Nonetheless, imitation viagra there are a few things you need to be aware of.

Imitation viagra First, imitation viagra the Microsoft.aspnet.FriendlyUrls assembly follows the standard “forward slash” model. Imitation viagra So URLs look like this: //www.mydomain.com/documents/2013/01

Imitation viagra When parsing the URL, imitation viagra the module starts from the right and searches for a file name that when stripped of its .aspx extension matches the segment. Imitation viagra For example, imitation viagra say you have a documents.aspx page in the root folder. Imitation viagra If the URL //www.mydomain.com/documents/2013/01 is submitted, imitation viagra the module first tries to find “01.aspx” in the “documents/2013″ folder. Imitation viagra Not finding it, imitation viagra it assumes “01″ is data. Imitation viagra Next, imitation viagra it moves to “2013″ and also does not find a page called 2013.aspx in the “documents” folder, imitation viagra so it assumes “2013″ is data as well. Imitation viagra Finally it gets to “documents”, imitation viagra finds documents.aspx in the root folder, imitation viagra and executes it.

Imitation viagra Installing the Microsoft.aspnet.FriendlyUrls module extends the regular Request object with several new objects. Imitation viagra One of these is the zero-based GetFriendlyUrlSegments array, imitation viagra which contains each of the URL segments that follow the segment that matched the ASPX page. Imitation viagra In our example, imitation viagra Request.GetFriendlyUrlSegments(0) would return the string “2013″ and GetFriendlyUrlSegments(1) would return “01″.

Imitation viagra That’s great so far, imitation viagra but unfortunately ASP.NET assumes that the last segment of the URL is the script name, imitation viagra and so sets the form’s action property to it. Imitation viagra In our test case, imitation viagra the action would be “01″. Imitation viagra Submitting the form causes an error, imitation viagra because there’s no “01.aspx” file in the root folder.

Imitation viagra One solution to the problem is to simply update the form’s action property to match your entire friendly URL, imitation viagra and not just the tail end of it. Imitation viagra To do this, imitation viagra add an OnPrerender sub to the page (or master page) and add this line to it:

Imitation viagra form1.Action = Request.CurrentExecutionFilePath

Imitation viagra CurrentExecuteFilePath is defined as “the virtual path to the current request.” In our case, imitation viagra it’s the entire string “/documents/2013/01″.

Imitation viagra Now the form posts back to itself, imitation viagra as it should.

Imitation viagra By the way, imitation viagra after you install the Microsoft.aspnet.FriendlyURLs package, imitation viagra your web site should:

Imitation viagra 1. Imitation viagra Have the following files added to the bin folder

Imitation viagra /bin/Microsoft.AspNet.FriendlyUrls.dll

Imitation viagra /bin/Microsoft.AspNet.FriendlyUrls.dll.refresh

Imitation viagra /bin/Microsoft.AspNet.FriendlyUrls.xml

Imitation viagra /bin/microsoft.web.infrastructure.dll

Imitation viagra /bin/microsoft.web.infrastructure.dll.refresh

Imitation viagra 2. Imitation viagra Have the following lines in web.config’s configuration/system.web/compilation/assemblies section

Imitation viagra <add assembly=”Microsoft.Web.Infrastructure, imitation viagra Version=, imitation viagra Culture=neutral, imitation viagra PublicKeyToken=31BF3856AD364E35″/>
<add assembly=”System.Web.Routing, imitation viagra Version=, imitation viagra Culture=neutral, imitation viagra PublicKeyToken=31BF3856AD364E35″/>

Imitation viagra You can have Visual Studio insert these lines by adding a reference to the ddl files in /bin. Imitation viagra (WEBSITE/Add Reference)

Imitation viagra 3. Imitation viagra Include the assembly in all code pages that use the extensions to the Request object, imitation viagra

Imitation viagra Imports Microsoft.AspNet.FriendlyUrls

Imitation viagra 4. Imitation viagra The global.asax file should “turn on” friendly urls by adding references to the assemblies and calling “EnableFriendlyUrls.”

Imitation viagra <%@ Import Namespace=”System.Web.Routing” %>
<%@ Import Namespace=”Microsoft.Aspnet.FriendlyUrls” %>

Imitation viagra <%@ Application Language=”VB” %>

Imitation viagra <script runat=”server”>
Sub Application_Start(ByVal sender As Object, imitation viagra ByVal e As EventArgs)

Imitation viagra         ‘ Code that runs on application startup

Imitation viagra         RouteTable.Routes.EnableFriendlyUrls()

Imitation viagra end sub

Imitation viagra (… and so on)

Average Rating: 4.7 out of 5 based on 235 user reviews.