.Net Tips
.NET Tips now moved to a new site . Please Visit : http://dailydotnettips.com For Daily Tips on .NET.
==========================================================================================
Tips from http://dailydotnettips.com
Tip 15: How to remove Hyperlink from ASP.NET TreeView Control Nodes ?
Tips 14 : Enabling Tracing Programmatically in ASP.NET
Tips 13 : Generate Method Stubs using Shortcut Key in Visual Studio
Tip 12 : Calling Methods From Watch Window
Tip 11 : Use Conditional Breakpoints with Method Calling in Visual Studio
Tip 10: Know when your application pools recycling in IIS 7.5 – Log an entry in Event Viewer while recycling
Tip 9: How to count number of active session for State Server Session Mode ?
Tip 8: How to calculate Session data size for SQL Server session mode?
Tip 7: Color Indicator for Code Changes – Track Changes in Visual Studio
Tip 6: How to setup multiple startup projects in Visual Studio ?
Tip 3: How to select Block of Code in Visual Studio?
Tip 2 : How to Place your reusable code into Toolbox in Visual Studio?
Tip 1 : How to Freeze GridView Header While Scrolling ?
====================================================================================================================
How to select Block of Code in Visual Studio?
You can select line by line code very easily using mouse or keyboard. But if you want to copy some code block where you don’t to select all part of line or something like that, here is a Quick TIP For you. Press and Hold “Alt” Key, and select the code region.
Using Press ALT Key Default Selection
How to Place your reusable code into Toolbox in Visual Studio?
This is very important and small tips for all VS users. Sometimes we need a small piece of code in many places of our application or in some different application. What we do? We just copy the code from one page and paste it to the destination page.
Visual Studio having a great feature, that you can place your code snippet inside the toolbox. For that you need to just select the code snippet and drag the selected snippet on to the general Tab.
You can rename the selected snippet, by just right clicking on snippet and click on Rename.
Now, you can use it anywhere in your application or in any VS Application by just drag and drop of the selected snippet.
Hope this will help you in future from rewrite of code.
How to Freeze GridView Header While Scrolling ?
This is very common problem in Web development that we need to freeze the GridView header at the time of scrolling, Here is one simple tips:
Step 1 : Create a CSS class as following
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
Step 2 Set Gridview’s HeaderStyle CssClass as follows
CssClass="HeaderFreez"
That’s all. Some times we need also maintain the scroll positions while selecting any data from GridView, and quite difficult to maintain the position while we are using AJAX, I have written a complete article on that, hope this will help Maintain GridView Scroll Position inside updatepanel
Cheers!!
Abhijit









Hi Abhijit,
Great article you are writing. Please help developmenet community much by writing various articles.
Keep it up.
Cheers!
Rakesh Yadav
Thanks Mate
how do i create a asp.net. have an assignment dat i can’t seem to understand. please help
Thanks man!
This is really a good tip. This is indeed helpful.
Cheers!
Aftab
ComputerVideos.110mb.com/
Cheers !!
When i make a postback by textchange , the header of the grid move to the right of the page , and the layout of the datagrid changed to be wrong
Do you have any solution
Its very difficult to say without seeing the code.
Hi Dude!
Iam a first time visitor of ur site.. its very nice.. and simple.. u just simply decorate your website with ur certifications which is very interesting !
cheers
Thank you!
Hi Abhijit,
I have seen your article and your your Website. I am realy impressed you. I am beginner of .Net technology. Please suggest me best book for ASP.net.
Regards & Thanks
Manmohan
Thanks mate. Regarding book you can go with Aprees ASP.NET Book or may be from Wrox publication. Also try to read from online articles.
Let me know if you have any concern.
hi sir
i m new to ur site..
u write good articles.keep it up
Thanks Sharad.
Hai Abhi.
compliments of the day.
First of all we not from soft/hard fileds.my comapny having website last one year.i want to known how many pople viewed(visted) my company website.
we want to keep comapny website in google search.
Kindly advice
Regards
Kranthi
Thanks !!!
Keep it up man.
Cheers mate
Plz tell me the way to store images(jpeg) into the sql server 2000 and how to retrieve them.
You have made a nice website of yours.
hi preety ,, thank u so much
how to retrieve image from database
How did you stored image in DB? as binary format or image path ?
thanks for your wonderful tips. I am the regular reader of your articles. I have read your article ” Beginner’s Guide to ASP.NET Application Folder”. please send one article only on App_code like Session.
Nice to know you liked my article. Regarding App_code article, there is noting much to write like session. I am really out of time… still Two article is in progress. hope to publishef soon.
Great presntation .. never seen before on net .. Keep the great work going on..
Thank You !
Good one.. jeet..
Thank you so much Mate
Hi Boss,
It’s really Suprep.NO words to explain you.Thank u very much.
Hey. Thanks Mate.
Recently I have published one Article on Remote IIS Debugging, Hope you will like it
Remote IIS Debugging : Debug your ASP.NET Application which is hosted on “Remote IIS Server”
Thank You
Hi Abhijit,
I am a regular reader of your articles.Just now I have read “Exploring Session in ASP.NET”,I liked it very much……keep publishing…
Sujoy Thanks Very Much.
Here is my new article, hope you will like it
Remote IIS Debugging : Debug your ASP.NET Application which is hosted on “Remote IIS Server”
Hai Abijith, Your articles are great. Is there any way to play flash file in Gridview column
Hi Abhijit,
i am really pleased with ur articles.this is the first time i am visiting ur site.i want to write microsoft certification exams.but i dont know which one to write as a fresher.could u tell me the exam name and number.
thanks
Nice to know u liked my article, Regarding Microsoft Certification exam. I will mail u the details ..
Hi Abhijit,
Great work , have gone throug u r article so nice…..
Thank you so much !
Hi Abhijit
I am visiting your site first time. It’s really good to read such articles. Keep it up. Please mail me names of book you reffered before and reffering now related to ASP.NET,AJAX,C#,VB,SQL SERVER
Thanks ! You can go with either of Apress or Wrox book for Asp.net and SQL Server. Let me if you have any further questions.
Will above css (To freeze header of Grid) work in IE6?
Hi dude,
I read your article about ViewState.
It is fantastic. It is first time I am visiting your article & it seems to me that I will explore all your your articles on the site. Please response my Q’s If I ask to u.
Thanking u.
Deepak,
Nice to know, you liked my article.
Feel free to ask me any Q
, I will try my best to give you answer
Cheers !
Abhijit
Hello Boss,
How are you? I have seen you article on codeproject on session it is really nice.
I impressed and go through your profile looks gr8 yaar
keep it up. My self ashish amodia, done MCA working as software developer at surat. Nice to see you.
This is my mail Id amodia.a.s@gmail.com.
I am also on orkut “Ashish Amoida”.
It think its good to be friends we can share many things.
Ok than c u bbye
whts ur ID ???
Thanks Yar..
I will drop you a mail from my yahoo id.
DADA
Its really nice to know you. Gr8 keep it up
nice knowing you.
happy fortune …
Thanks Ashish !
Hi Abhi,
It’s pleasure to talk with u.
I have a problem just like…
I want to zoom+ a picture in ASP.NET on OnMouseover event. How it will get effect? I asked this question but one suggested to use “Jquery”. I m not familiar with “Jquery” but ASP.NET AJAX.
JQuery is good for this. This will give a very nice look and feel . Just search for some JQery Image Zooming Control.
If you want to know some alternative process, try with Div.
Here is an sample example,
CodeProject Article
Just have a look into Live demo,
Live Demo
Hope this will help you.
Thanx dude,
I m done with ur reply…Ohh..Sorry,I explored ur answers & You never replies,instead,it is always solution for the query…for me & same to all..
Thank u again.
I really liked your blog and bookmarked it
Thanks !!
Hi
I’d like to receive more info on this:
http://www.codeproject.com/Messages/3199136/Re-Passing-Credentials-from-ASP-NET-to-OWA.aspx
please contact me by e-mail.
thank you very much
Hi i am begnier i asp.net and now days i am faceing some problem that is “Unabele to connect asp.net server” at the time of website run plz help me
more evere ur realy cooooool
Hi Anand ! Thanks
When you are getting this error ?
hello sir..
i am developing 3-tier web application in asp.net with c#..
right now in doubt regarding where to write code for session ,cookie management?
will you give me example showing this clearly?
thank you.
i’m a beginner in the vb asp.net and have an assignment
wud u help out. don’t know the codings
hi abhijit jana
i am completed my BCA from mcu bhopal.i am developing web application in asp.net with c#..
place give me tips.
Thank you !
let me know if you need any h elp
Thank you !
let me know if you need any h elp
hi abhijit jana
I have completed by B.tech in cs stream. I am trying to develope a website in asp.net using c# i would like to know how i can add the session for each user and how to destroy it when user signout and the page must not be restored if he press the back button in the browser after signingout.I would be very thankful if i can get some sort of help from you so that i can learn something.
Thanking you
Please read this article. This will help you.
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx
If you are having further problem, let me know.
Hi Abhijit Sir,
This is ashish shukla from lucknow.Sir i have completed my mca from uptu and working in a lucknow based company.Sir i have visited ur site since last few months,i really inspired by you and your articles.Sir please guide me how can i explore my knowledge in field of .net.
I will be very thankfull to u.
Hi Ashish,
Nice to know you liked my article and blog . Great man !!
I have sent a mail to your gmail id from my personal id. Let me know if you need any help from me.
Thanks again!
Thanks a lot for replying me sir !!
It’s alright. Let me know if you need any help from me.
Hi Abhijit,
I am really impressed by your contribution towards .Net.
Thanks a lot.
Thanks Anurag !
Hi Abhijit,
Is it possible to write a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip.
Thanx..
Hi Abhijit,
I have seen your article and your your Website. I am realy impressed you.
I read your article about ViewState. It is fantastic.
keep it up !!!!!!!!!!!!!
Regards & Thanks
UDDHAV GARKAL
(FACULTY)
{NIIT}
Hi Abhijit Sir,
This is Abhijeet Jadhav from Pune. I have completed my mcs from pune university and working in a pune based company.Sir i have read ur articles,i really inspired by you.
Sir please Can you suggest some guidelines how to develop dot net skills.
I will be very thankful to u.
i have dropped u a mail from my gmail id. please keep in touch with me. and let me know what help do you need.
Send me your Contact No
Hi Abhijit.
I want code to preserve status of grid having textbox templates while pagination is enabled for grid.
Hi dear ,
please send me idea about making messanger in asp.net with c#……..
Thanks in advance
hi,abhi.i read your web posts and articles on codeproject.I want some help about session management.
I read your article exploring session i.e.
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx.It's really helpful and useful.I want to use session between 2 or more subdomain.I have more that one subdomain and i want to share session object between all subdomain. i need to use sqlserver or stateserver? or need to build webfarm?
Great Article!
If I could write like this I would be well chuffed
The more I read articles of such quality as this (which is rare), the more I think there might be a future for the Web. Keep it up, as it were.
Thanks for your comments !
HI Abhijit,
I have asekd abt ActivDirectory. For that you gave me one link. I missed that link. Could you plz give me that link again.
Thanks & Regards
Mohan Dass.
I think, this may be the link,
http://www.codeproject.com/KB/system/everythingInAD.aspx
I have seen your article related to “How IIS Process ASP.NET Request” is great.
Thanx
Thanks Ashish
Hi Abhijith,
First of all congrats to wons a Sony VAIO® Notebook for ZoomSliderVSX article.I also follow the codeproject and dotnet fundas.Your article are wonderful and very use ful.Keep going.
Raghav
Thankyou Raghav
Your articles have been so inspiring and helpful. Keep it up!
I have tried (and still trying hard) so many times to configure IIS on windows server 2003 standard edition. It seems not to be working despite reference to tens of articles, how-tos and walkthroughs. Can you please give me SURE guides on how to configure IIS on Windows server 2003. I really want to run my ASP.Net website on my Local Network first before hosting them on website. I already have compiled ASP.Net projects I want to setup.
Thanks for your help
Hi Samuel.
Thank you very much !
What problem are you getting to configure IIS on WIN 2K3 Server ? Please let me know in deatils. So that I can help you.
Here is my One Complete Article on IIS 6.0 . Please go through it. It may help you
http://www.codeproject.com/KB/aspnet/ExploringIIS.aspx
Thanks !
I have read this before; but couldn’t get it to work. But I will go through it again; and keep you posted on the progress. Thank you so much for being of help
how can i register my IIS with the ASP.NET
using aspnet_regiis command
I got this error when i try to browse my website from the IIS Manager:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
——————————————————————————–
Please try the following:
Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 – Forbidden: Execute access is denied.
Internet Information Services (IIS)
——————————————————————————–
In Virtual Directory property window, you have a dropdown box “Execute permission”, what is the value of that ?
And you can register iis using asp.net using aspnet_regiis command.
Thanks
I just noticed you used php on this website when i submitted this comment. Why? despite your wealth of asp.net knowledge. Is it that php is better than aspx in certain instances?. Kindly enlighten me.
Hello, This site is hosted on wordpress.com which is designed using php .
Thank you for the real instant response
1. “Execute permission”= None. But when i change this to either of the 2 0ther options; i get the message that ‘The Web Application is not available’
2. On which directory in the command prompt am i to use the ‘aspnet_regiis’ command.
Hi,
Check the security Tab of your Folder and check what permission do you have.
“Execute permission” should be chnaged script and executable.
For Ruuning aspnet_regiis form the the Framework Directory. Ideally it should like C:\Windows\Framework\Version\V 2. XXXX\ aspnet_regiis.exe
Goto Command prompt > navigate to that folder > Run > aspnet_regiis – i
After that, Goto IIS > Right Click on Virtual Dir > Goto ASP.NET Tab > Set the proper version
Let me know if it not resolved.
Thank you for for your help, i was able to successfully register aspnet with my iis using the instruction you provided.
Also i changed the execute permission property to ‘Script and Executable’
i also changed the version of ASP.Net to 2.0.50727
But when i browse the site from iis manager, i got the following error message:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
What do i do to resolve this? Thanks
Did you create the aplication form : Right Click Virtual Directory > Goto Virtual Directory Tab > Goto Application Setting Section > Click on Create Button.
You also need to give aspnet user access to that virtual directory.
Then Reset your IIS.
You are ready to go..
Let me know if you need any more help.
Thank you. The error ‘Server Application Unavailable’ is still there even after i did all you said i should do except ‘give aspnet user access to that virtual directory’
So, how do i ‘give aspnet user access to that virtual directory’
Hi, Sorry for late response. There should not be any error. I would suggest you to delete the virtual directory once and create fresh one. Set all the properties properly. Hope this will resolve your issue.
And regarding how to give user access, I would recomand you to go through my IIS article.
Thanks !
Thank you so much. I will keep you informed of my progress
Friend Abhijit ,
Nice tips also very useful. thanks alot friend. i wanna touch with you.
Thanks & Regards
vidyasankar N
Thanks !
thanks……. Good work:)
i want to take vs 2010 MCTS 70-515 , can you help me ?
Nice Abhijit, Great work your are doing
Hello,
I appriciate your habit of sharing of u r knowledge.
Thanks Rachana !
Hey Abhijit ,
Your articles are always great.
Raj thakur
thanks Raj !
Hi Abhijit,
Wonderful articles thanks for this.
This is PradeepKumar
I am using VS 2003 and i have made changes in one file and builded the application.
The problem is it is not executing the new code which i have written, can you please help me out to sort this.
For eg: see below code
Existing code ———————————– 1
New code i have written here ——————–2
When i try to set break point and execute it directly goes to next line of 2 in above it is not executing the new code.
I have done all the posibilites, i have deleted pdb even obj and bin folders and regenarated all.
I have even created new solution and tried adding new project and added the files even then problem persists.
Please help me out.
Thanks
PradeepKumar Gnanavel.
Hi Abhijit,
I am working on development of an online exam application, can u plz suggest me the way to do it using database? I have created table for storing questions and answers, I want to print the question and its options on the page. Question will be a label, and options will be in RadioButtonList.
There will be multiple questions on the page.
Table structure is QuestId, QuestName, option1, option2, option3, option4, CorrecrtAnswer..
Please do help me..
Thanx in advance..
greetings sir
I had just gone through you website for the first time, i find it awesome…you are doing a great job sir….keep provide us the best articles so that we can can get maximum out of it and every student like me will find easy to work with the visual studio. I really appreciate you.
Thank you
Salil Kumar Gupta
Thanks For This Post, was added to my bookmarks.
Very informative post. Thanks for taking the time to share your view with us.
I find myself coming to your blog more and more often to the point where my visits are almost daily now!
cool tips
Dear Abhijit Jana,
I am Arun.Potti studying MCA final year. I recently visited u r site and read some articles in CodeProject.com site. Those are fantastic. I understand the topics very clearly and easily. I appreciate u for having great articles.
Thank u,
Arun.Potti
Hi Abhijit, nice site. i am keen to be aps.net developer, plz guide me that which book should i start and how can i come proffessional web developer. plz share your kind suggestions and if possible mail me .
Thanks
you the ocean of knowledge………..
Thanks man !!
hi abhi,
I am also a software developer on .net ………
Thanks ! We can share some common thoughts !!!
[...] Source: http://abhijitjana.net/net-tips/ [...]
Hi Abhijit,
I read your articles and very happy to learn and explore new things. Please keep writing because it would be very informative for someone(like me).
I am facing a problem related Crystal Report.My problem is “Crystal Report Print After Deployment Without Showing Preview”.
Please help me
i am new to .net, and want to make my career in .net.
Can you plz. suggest me anything about this…
waiting for reply..
Hai Abijit
I would like to join for Microsoft Research Internship program. I need to know the requirements and your tips for that…
Waiting for replay…
Anvid,
Thanks for asking. But I am really sorry, I am not right person to answer or contact for the same. You can go through the MSR Web site for details.
Tip about “How to Place your reusable code into Toolbox in Visual Studio?” was amazing!!
Thanks mate…!!
Hi Abhijit,
Very Good Artical regarding Diff between web farm and webgarder with design layout.
Keep it up for next article
Cheers mate !!!
First I wud like to say u r SUPERB BOSS , Hats OFF To u.
Second i read ur article Beginner’s Guide: How IIS Process ASP.NET Request.
I wud like u to add more about HttpModule and HttpHandler in this articles.
What i understood that HttpHandler just generates the output but how ?
I wud glad u add this also
Hi
my name is ashu
Thanks for giving such a nice articles….
Thanks Ashu !
Hello Abhijit I am also from Kolkata….
I m new(6 mths) to dot net so want to take some certification. Please help me by guiding me as which one to give first …. its name and how to prepare for it so that I can crack it in the first time only.
I will be waiting for ur reply.
Thanx,
Raj.
Raj, you will get details about all MS Certification form here
MS Certification
Thank You so much for ur reply.
Greate Man yaar. recent i read Beginner’s Guide: How IIS Process ASP.NET Request its so nice and understandable
Hi Abhijit..
Really a useful tips……..
Keep it up your work…..
I have moved the Tips Section to
http://dailydotnettips.com/
[...] .Net Tips [...]
hi abhijit
i seen your article on session its very interesting.
keep it up
Hi Abhijit Sir,
Hats off to Ur support u providing to every one.
This is Suhel khan from Bhopal. .Sir i have read Ur articles,i really inspired by you.
and will u let me know regarding the .net certifications for the fresher,and pls suggest me best to develop my skill,i am basically interested in asp.net.
Thanks in advance
Hii Sir….
I’m new in asp.net, just 8month experience in asp.net.Sir I read your articles over asp.net.
Sir I have question (what is boxing and unboxing?) Sir can u please help me in this mater…..
Thanks.
Great, keep ur task
i have seen lots of video in which presenter drag code from toolbox . At that time i was thinking how it is possible.But now i know.
Thanks Abhijit
hiii sir
i am new to your website but i am really impressed to see your contribution in making thing very easy to learn and understandable. sir, can u please tell me how to show friend list along with their profile images (that i have stored as path in sql server) in grid view in asp.net
chck this
http://www.codeproject.com/KB/aspnet/GridImage.aspx
one of my old article in codeproject
thank you sir, my problem has been solved.can you please suggest me how to make this
list more attractive.
dear sir,
ur blogs are really very helpfull
thanks alot
Hi Abhijit,
I really impressed with the way you present………. Really appreciate
Today is the first day i am seeing your posts, feeling bad how i missed your posts all these days
thnks sir
Hey Abhijit… No words for your hard work .. keep rocking ….
HI ABHI as i saw ur website then i get many idea how to do my best…
sir i ve 1 prob:–>
i want to access the webcam through the coding using C# 2010 i m not getting any idea plz if u ve any idea plz share with me..through my e-mail id (kuldeepn20@gmail.com)…
i m very thankfull to U…
Gooood Awesome Dude..!!Thanx
Hi,
I Need help with a command or script using which i can get ASP.net version of all websites listed under IIS manager ( version 6 ).
I need to get it for hundreds of servers, so need some batch script to get that details and export to a file on my desktop. Trying to find a way by which we can get these info from remote servers ….please help
Need info to be displayed in the order: Server Name , Website Name , ASP.NET version
( exported to a excel sheet or notepad )
Hi Sir,
Well done for your contribution to the society in .NET platform.
Actually I have one problem. I am kinect using Kinect SDK beta 1.0 SDK. I have one MainWindow.xaml and its code file. I want to open serial port only a single time but when I put it in Mainwindow.xaml.cs file I found that (using debugger ) code is executed several times as image is regenerating continously as I am showing image of the camera of Kinect. So where should I put sp.Open() where sp is Serial Port object so that it will be executed only once in the program i.e. at the beginning of the program.
Thanks in Advance.
Very helpful articles.Nice tips.Thanks a loot.I learn many things.Thanks so much Abhijit
Sir, Your Articles really helpful…
thanks a lot….
Hi Abhijit,
This is one of the great place i found to know all development related tricks. Thanks for great stuff
Hi abhi,
Ur articles are very easy to understnd.
thank you
Hi ahhi,
Your articles are very useful for me and many people.
Continue your good job and many thanks for share your valuable knowledge.
Regards