TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Remove unused reference (Using)
Joginder Banger
Dec 26, 2014
3.1
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this small blog we can learn how to remove unusing reference on single click.
When we are create any .aspx page,Automatically create some reference add on the page like
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
You know all reference no need on every pages. Suppose we have no used Linq in our project so why reference add this. If we want remove reference one by one lot of time waste and have no idea which reference are used or not. So I decided some trick are used for this work. Don't worry .net provided solution. Right Click on aspx.cs page any where like
you can see above picture select the Organize Usings. After select Remove Unused Usings.
Remove the some Reference.
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
After Remove the some Reference.
using
System;
namespace
WebApplication1
{
public
partial
class
testing : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
}
}
Next Recommended Reading
How to Remove Hidden Aspect from a Alfresco Node