Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1648)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

(Page 1 of 26) 779 Result(s) found 

 

Automatically hyperlink URLs in ASP.NET Pages
Total Hit (10354) Suppose that your ASP.NET pages display contents read from database fields. Suppose also that some of those fields may contain URLs or email addresses. A typical example is when you display user information such as the email address or the personal Web site. By using regular expressions, you can aut ....Read More
Rating
Better user experience with the SmartNavigation property
Total Hit (3297) During a page postback, the page is redrawn by default and users see a short but annoying flickering. Worse, the scroll position isn't preserved during postbacks (the page scrolls to its top) and the first control on the page takes the input focus. This behavior contrasts with the experience that us ....Read More
Rating
Creating a default button for the page
Total Hit (2832) It is usual for a web form to have more than one button control. How can you set the default button that should submit the form and raise its Click event on the server when the enter key is pressed on the form? The textbox and the other input controls don't have a property that allow you to specify ....Read More
Rating
Creating a popup calendar control
Total Hit (9894) Many data entry forms have one or more text fields that the user should fill with a date value. Many sites have a button near these fields that when clicked pops up a new small window with a calendar, to help the user select the date. When the user clicks on a day (rendered as a hyperlink), this pop ....Read More
Rating
Creating multi-steps input forms
Total Hit (3220) In a typical user registration form, you may ask for quite a lot of data, such as the first and last name, full address, phone and fax numbers, e-mail address, newsletters subscriptions and other data for the site personalization. All this data shouldn't the asked in a single step, because a long li ....Read More
Rating
Disabling the session state to improve performances
Total Hit (3020) Sessions management consumes server's resources and memory, thus, if you don't use them in your application, you should disable them to improve performances. You can disable sessions for the entire application by setting to False the mode attribute in the web.config's <sessionState> tag, as follows: ....Read More
Rating
Discern among servers with the MachineName property
Total Hit (3137) As in classic ASP, you can use the Server object from inside any ASP.NET application. This property returns a reference to an HttpServerUtility class. The HttpServerUtility class exposes only two properties: ScriptTimeout (the timeout in seconds for a request) and the new MachineName property, wh ....Read More
Rating
Don't preserve viewstate when doing a Server.Transfer
Total Hit (3333) The ASP.NET version of the Server.Transfer method accepts a second argument which, if true, causes the query string and all the form's fields to be transferred and made available to the destination page. However, when the destination page executes, the following error is likely to be generated: ....Read More
Rating
Dynamically moving a server control
Total Hit (3075) Dynamically moving a server control instance on the page is very easy, thanks to the possibility to add any style attribute to the control. In this case, you can dynamically add the control's LEFT and TOP coordinates, and another attribute that says you want to use DHTML's absolute positioning. To t ....Read More
Rating
Improve performance with the EnableViewState property
Total Hit (3047) All Web Forms controls, and the page itself, expose the EnableViewState property, a boolean that says whether the current value of the control must be saved in the __VIEWSTATE hidden field and restored during a page postback. By default this property is True, which means that a field's value is ....Read More
Rating
Input validation in ASP.NET 1.1
Total Hit (2901) ASP.NET 1.1 automatically validates input posted to the server against a list of potentially dangerous strings (the values are hard-coded, unfortunately, it would have been nice to be able to edit this list). For example, by default it prevents the user to submit text that contains "<script>", to pr ....Read More
Rating
Parse URLs with the System.Uri class
Total Hit (3440) The Url and UrlReferrer properties of the Request ASP.NET object return a reference to the URL of the page and the URL of the page that referred to this one. Both properties return a System.Uri object; you can query the properties of this object to learn more about the address of the page that so yo ....Read More
Rating
Passing values from a page to another by means of the Context object
Total Hit (3022) Sometimes you may want to gather the user input with a page, and process it in a different page. As you know, ASP.NET web forms can post only to themselves, so you can't just change the form's <i>action</i> attribute and make the form post to a different page. And anyway, you may want to do some pro ....Read More
Rating
Persistent session state
Total Hit (3097) In ASP.NET 1.0 you have the option to maintain the session state on an external process, in SQL Server, by setting the mode attribute of the sessionState tag in web.config to SQLServer. The problem is that the data is stored in the SQL Server's Temp database, and thus the data is lost if the SQL Ser ....Read More
Rating
Preload subject and body when offering an email URL
Total Hit (3123) You can easily add a link in your ASP and ASP.NET pages that, when clicked, runs the default mail program (e.g. Outlook) and allows the user to send a message to the email address you provide: «Code LangId=4» <a href=mailto:someone@yoursite.com>Click here to send a message</a> «/Code» Interes ....Read More
Rating
Redirecting to the real referrer page during a postback
Total Hit (3967) Say that you have a page loaded from another page, and that in this page you have a "Save and Return" button that does something and returns to the previous page. For example you may have an Orders page that loads a Details page, where you make some changes and press the button to save the changes a ....Read More
Rating
Saving data between postbacks in the ViewState collection
Total Hit (2873) In classic ASP, the only way to preserve information - for example, the value of a variable- - between consecutive client requests is by means of Session variables, cookies, or other awkward techniques, such as arguments on the query string or values in hidden fields. ASP.NET gives you yet anoth ....Read More
Rating
Saving HTTP requests for better debugging
Total Hit (2879) The new SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True to its second argument if you want to save HTTP headers as well: «Code LangId=4» Request.SaveAs "c:\lastrequest.txt", True «/Co ....Read More
Rating
Sending files to the browser
Total Hit (3055) The ASP.NET Response object has been greatly expanded in its capability to send output to the client browser. For example, the WriteFile method can send the contents of any text, HTML, or XML file to the browser; in classic ASP you have to load the file in memory and then pass its contents to a Writ ....Read More
Rating
The AutoPostBack property requires client-side scripting
Total Hit (2816) A few Web Forms control expose the AutoPostBack property, which makes it possible to start a postback when the user clicks on these controls or changes their contents. By default this property is False, but you can set it to True for the following controls: TextBox, CheckBox, RadioButton, CheckBoxLi ....Read More
Rating
The MapPath method
Total Hit (2969) The ASP.NET Page object exposes the MapPath method, which converts a virtual path into a physical path, so it' is useful for passing arguments to objects that don't work with virtual paths: «Code LangId=4» Dim sr As New System.IO.StreamReader(Me.MapPath("/data/values.dat")) «/Code» You can al ....Read More
Rating
Update the ACL of a file from an ASP.NET application
Total Hit (2914) It's not uncommon that ASP.NET applications have the need to use a personal .config file to write some runtime information. Since ASP.NET applications are not granted the permission to create or edit files on the server, the best place to store persistent data is a table in a database server (not an ....Read More
Rating
Uploading a file on the server
Total Hit (5161) Uploading a file from the client to the server is very straightforward with ASP.NET. Just use the «code LangId=4»<input type="file" runat="server"> «/code»tag and its wrapper class HtmlInputFile. Here's how you define the control on the page: «Code LangId=4» <form runat="server" enctype="multipa ....Read More
Rating
Using static variables instead of the Application object
Total Hit (4021) If you want to share a value or an object instance between all the pages of any session, you typically use the Application object. However, a good alternative is to use a public variable defined in a module (VB.NET only), or a static field/property defined in a class. Static properties maintain thei ....Read More
Rating
Accessing user controls from the code-behind
Total Hit (3053) When you add a user control to an ASP.NET page, Visual Studio .NET does not add a control declaration as it does when you add standard ASP.NET web controls. The result is that you can't directly access the user control from the code-behind and programmatically change its properties and call its meth ....Read More
Rating
Adding a confirmation popup for delete buttons defined within templates
Total Hit (4081) The DataList and DataGrid controls easily allow to add a "Delete" button/hyperlink in your template. When clicked, this button/link raises a DeleteCommand event that you can handle to delete the data item of the parent DataList's/DataGrid's row. Here's an example that shows how to declare two column ....Read More
Rating
Creating a scrollable DataGrid
Total Hit (3239) When you create a DataGrid, it would be often good to specify its height, and have the DataGrid show a scrollbar if the content is longer than the given height. This would allow to make up a fixed layout that doesn't get messed up if there are a few or a lot of lines/records to show. The DataGrid co ....Read More
Rating
Hiding controls defined within templates to some users
Total Hit (2938) It happens frequently that you want to hide some input controls or links if the current user is not logged in (it runs with the anonymous account), or if the logged user is not a member of a specific group. For example, you may want to hide the Edit/Delete buttons to users that are not Administrator ....Read More
Rating
Implementing a two-way sorting for the DataGrid control
Total Hit (2919) DataGrid's sorting functionality is not automatic, the control takes care of "just" rendering the column headers as hyperlinks, and gives you the ability to handle the click on those links, by means of the SortCommand event. Then you manually sort the records (by means of a new DataView from an exis ....Read More
Rating
Moving the focus on a control when the page loads
Total Hit (2864) ASP.NET doesn't provide a built-in method for giving a control the input focus when the page loads. In fact, you can assign the TabIndex properties to controls on a page, but you can't use this property to set the initial focus on a control of your choice. The following procedure provides you wit ....Read More
Rating


(Page 1 of 26) 779 Result(s) found  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.