Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Remove unused reference (Using)
WhatsApp
Joginder Banger
10y
3.2
k
0
1
25
Blog
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)
{
}
}
}
Up Next
How to Remove Hidden Aspect from a Alfresco Node
Ebook Download
View all
.NET Documentation
Read by 2.3k people
Download Now!
Learn
View all
Membership not found