You will get as MCP certificate if you cleared any of the Microsoft Paper. Like I have cleared MCTS 70-536 and 528 . I cleared 528 first . So that time I have got the MCP too. So first of all you have to know which paper you want to give. You want to do it for Web Application or Windows Application .

Hi Abhijit;
Thanks for your nice articles at codeproject. i want to ask you a question on session. i prepare a website and put session like UserId and UserName etc. but the session is not stay for longtime. I mean, suppose you use gmail or yahoo, it seems that your ar signed in how long you are staying at the browser. but mine’s is stay only for few minutes.
can you please give me solution about the problem.
thank you.

Hi
Abhijit
My self RAQUIB working in Adecco as Software Developer. I read yor Article from CodeProject regarding IIS and debugging Its really very nice and helpfull.

I have one problem regarding ViewState.
I want to disable view state of server control. I tried to do it by EnableViewState=flase on page or in contol but it retains their values after postback.
I also tried it on OnInit event
private void Page_Init(object sender, System.EventArgs e)
{
this.EnableViewState = false;
}
it also not work.
Plz help on this issue.
Thanx & Regards
Md Raquib Alam

first of all you need to know what actually happened during ASP.NET Page life cycle and ViewState.
In the ASP.Net page life cycle, two events related with View State.
1. Load View State : Where view state data is loading for the control and which happened before Page_Load.

2. Save View State : Where control data store in a hidden field before the Page_Render.

Now, If you disable the ViewState for the control it should store the view state data but, you are saying in Textbox, after you disabled the view state , control holds the data after postback,
Here is the Trick,
There is another event fired during Page Life Cycle, which is, Load PostBack Data.
ASP.NET controls which implement IPostBackEventHandler will load its value from the appropriate postback data.
This value is not read from view state but from Postback From and this is true for those control which implements the IPostBackEventHandler
and TextBox is one such control Wink

I appreciate your work and articles. Well, It’s interesting that you add graphic oriented images to explain the techniology in these articles. Can you please reply me which tool you are using to edit these images.

Hello Abhijit…i have an problem regarding web service. i have an image stored in folder on the server …that i wish to return image over the web service…i m trying converting it to byte data and then byte data to memory stream …my problem is how to generate valid XML from memory stream …..

I came across a response of yours to a query on CodeProject titled ‘Passing Credentials from ASP.NET to OWA’. In your response you state that it can be done by modifying a few files for SSO. I’m using Exchange 2007, OWA is currently configured for forms based authentication, and have coded an ASP.NET page to use system.directoryservices.accountmanagement to validate and authenticate users to the domain.

Please can help me by reply to my email address and let me know how I can achieve this.

Sorry for late response steve. Yeah I have done that few year ago. I am not able to recall the javascript file name, we have changed only in a javascript file which take the data from our asp.net application. If I found the details I will let you know the details shortly.

Hi
i like your articles they are great.BTW Happy new year.
I’m designing web application with asp.net c# and i’m using ajax timer and update panels. i want the timer to continue working after the user has quit the session. Do you know how can i do that.
Thanks in advance

Hi
i like your articles they are great.BTW Happy new year.
I’m designing web application with asp.net c# and i’m using ajax timer and update panels. i want the timer to continue working after the user has quit the session. Do you know how can i do that.
Thanks in advance

is it possible to create custom folders in the table and view section of the SQL db management studio.
I do have over 100 tables and views, and it becomes a hugh list. I would like to group them together in custom folders, like you have the system_tables and system_views folders?

Hi Abhijit..
I know u through codeproject.. Ur articles are cool.. keep it up.. I have a small issue in my Application if possible can u clarify it…
Im developing a web application here i get datas from the user and on a button click these datas get stored in my data base now i have another button on clicking it,it retrieves all the data from the database and gets saved in my system as an XML file… the code is as follows for the button that creates an xml file…

Now my issue is i need my application to create the xml file,before saving it into my system it should ask me whether to open the file or save the file so that i can specify the file name (something similar to a download window in our web browser)… please advice me… Im using VS2003 .net1.1
Thanx in advance..
Reards,
Tash

Hi ,
Abhijit, This is srinivas from Bangalore.i am new to .Net Technology.By reading your articles i learned lot,especially Debugging concepts.Actually i am searching for a job in Dotnet Technology(WebDev)with c#.
I am very thankful to you.Can you please write an article for me about
3-tier Architecture with an example(C# only).
Thank you Abhi.
Srinivas.

Hi,
Abhijit,
I read your articles from codeproject,especially Debugging and Statemanagement articles are awsome articles.i learned lot from your articles.actually i am new to this .net technology.if u don’t mine can u please write an article on 3-tier architecture with one simple example of (real time scenario) for me .
waiting for your response.
Thanks
srinivas

we have created Simple html page and use java applet with activex control.
I found some problem. I can successfully run this sample from the project folder but while I am uploading this on IIS web server 7.0 on Windows server 2008 i am getting Some error in Jre console.

Can’t open URL for reading. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgStream.stOpenStream(GlgStream.java:268) at com.genlogic.GlgObject.obLoad(GlgObject.java:3468) at com.genlogic.GlgObject.LoadObject(GlgObject.java:4924) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Null drawing. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgObject.ExtractWidget(GlgObject.java:4972) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) while I am uploading this project folder on IIS Web server 7.0 on Windows Vista 2008 I am getting above error. And while I am uploading this project folder on IIS Web server 6.0 on Windows XP then it runs successfully without any error. I have also created another sample applet without using Activex Control. In applet.htm file you can find one link by clicking on that you can view simple applet which runs successfully on each version of IIS Web server and any OS. So, I am very much confuse about this. Can you please tell me if any configuration I am missing on web server for activx Control. Can you please help me in deploying glg sample applet on IIS 7.0.

we have created Simple html page and use java applet with activex control. I found some problem. I can successfully run this sample from the project folder but while I am uploading this on IIS web server 7.0 on Windows server 2008 i am getting Some error in Jre console.

Can’t open URL for reading. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgStream.stOpenStream(GlgStream.java:268) at com.genlogic.GlgObject.obLoad(GlgObject.java:3468) at com.genlogic.GlgObject.LoadObject(GlgObject.java:4924) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Null drawing. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgObject.ExtractWidget(GlgObject.java:4972) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

while I am uploading this project folder on IIS Web server 7.0 on Windows Vista 2008 I am getting above error. And while I am uploading this project folder on IIS Web server 6.0 on Windows XP then it runs successfully without any error. I have also created another sample applet without using Activex Control. In applet.htm file you can find one link by clicking on that you can view simple applet which runs successfully on each version of IIS Web server and any OS. So, I am very much confuse about this. Can you please tell me if any configuration I am missing on web server for activx Control. Can you please help me in deploying glg sample applet on IIS 7.0.

Hi,
Abhijit,How r u? the articles(3-tier articles) what u have sent for me are very nice articles.
If u you don’t mine ,i have one small doubt.
What Design patterens we have used normally in our .Net Projects.Tell me or give me good article links about(Design Pattern) this concepts.
In real time scenario how we can approach to Design Patterns.
Thank you .
Srinivas

Hi
Can you help me?? I read many of your articles and they are very good but I can’t find an answer to my problem. On this webpage is a Frontpage Database that lists all of the videos that we have in our library. When you scroll down and press on the |< >| buttons to go to the next page, it usually doesn’t work. Sometimes it stays on 2/19 when you click on >. Sometimes it works but usually you get something different every time. Do you have any idea what causes that or where in IIS to check?
I have IIS 6.0 on windows 2003 server with Frontpage extentions running.
Thanks a lot, Norman

Hi again…
this time i have query. i have asked this question on codeproject forum but still no reply from anyone and i need it urgently.I am new in asp.net its my first project.so please can you guid me how can i do this.
my system is related to travels.In that, i want to create two applications one is on in my system and another is on Client side say “ABC travels”.When any user logon to that site for booking, i have to check that user info with info which is stored in my system by using these two applications.For that “ABC travels” my system has some permission i.e. i only want to give permission for specific 10 buses,20 cars bookings to that client.so when any user make any booking from site of “ABC travels”. first i have to check the userinfo as specified earlier then i want to send the data i.e. according permissions to their site,so that user can book any bus or car only from that 10 buses and 20 cars.If user book any bus.then the application which is in client side should send that booking information to my system.and my system will store that info in database.
this is flow of my system, i am fresher so i didn’t get how i do that will you please guid how i do this please…

I have one question, i am creating a custom asp.net control for datepicker, i have javacript, and few images. now I have embaded images, javascriptfile in to dll. now there is a problem that, in javascript file i have to give path of the images.

How can i give path in javascript for the images which are resides in DLL file?? please help me.

Hello abhijit,
I m actually confused with cookies & sessions . when user visit website (if its cookies based) then session id is assigned to that particular user in order to send data to & fro .
In case of session, when user request for page & want to store information then again server assign SessionID to user & store information in respective state provider … next time when user request for information, then server respond to user with respect to SessinID .
in both cases SessionID is assigned to user , so session ID is not particular to sessions .. I mean its not inherant property of session state .. ?
One more thing I want to ask in your article Exploring Session , in sql state portion , u have showed data table that stores several information e.g sessionID , created , expires, lock cookie etc etc .. when user request for information , server respond it using his/her session ID & retrieve data from DB , but where that information is stored , in lock cookies?

please read about RFC2617 and how to implement it.
It’s clearly mentioned on page 110 of the Integration Document:
Technology Partner Authentication
“Technology Partner”, in the context of this document, means an authorized
“Account” on the IRCTC site authorized to consume the web services. The username and password of the “Technology Partner” is set in the http header.

NOTE: IRCTC Webservices follows strictly, the HTTP BASIC Authentication
(RFC2617), so the same has to be followed by the integrating parties
whether on Java/.NET or any other platform.

i think we have to make custom soap hedaer using httpwebrequest.

plz sir help me.
i think we have to make custom soap hedaer using httpwebrequest.

Abhijeet bhai I require a small help from U in VB6 as I Came to know U are expert in VB.

My aim in VB6 is that to make a application in which is the objects in VBFORM are resized according to the Resolution Setting of the Monitor. I made a application in 1152*864 Screen but when i run it in 1024*768 the Form does not appear full, and if I run it in Large Resolution form objects appear small so on…

I have read your article on “Remote IIS Debugging”. When I try to implement it using VS 2010 it’s not working.
Steps I have followed
1) On production environment “Remoter debugger” is not installed, so I have shared remote debugger from my local system and run it on production environment as administrator.
2) In local system I have attach process and in remote machine debugger I am getting confirmation of user connected.

After attaching process I am getting warring(No executable code associated with this line) in breakpoint and debugging not working

Can you please tell me what the problem?
Is there any constraint that application pool on remote server should run on my credential (now it’s working on some service account credentials) ?

Hello Dear Abhijit,
First of all i want to thank you for sharing your very precious knowledge and helping others to learn new things from my side and Mr. Abhishek Sur, ur old friend.

🙂

and i have one query,

i want to create exactly the same menu for my friend’s project that you’ve created here in this website.

I’ve tried to create it and even succeed partially in it.
I’ve created a horizontal navigation list like your’s in this website in the master page.

By default the Home page’s menu item has a background color (different) as it is selected by default which is different from the others

when i click a menu item, i’ve a javascrpt code(in the master page) which is changing the background color of the selected menu item based on the id supplied by the list item to the javascript function.

but as the page load life cycle again happens and by default Home page’s menu is selected instead of changing the background color of the selected page, the Home page’s menu’s background is getting changed(coz of page life cyle).

It did say something about the SQL-ConnectionString, but i fixed that a minute ago, so the problem remains…
Now the Session state should be saved in my local mysql-server.

But the Main Error, is the same…
I can give you the error description:

Server Error in ‘/pm’ Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

It means you are trying to access some varible which is null. If you are trying to retreive information from Session like string name= Session[“Name”].ToString(), Before doing that do a null check of that session variable like,

I am following your articles from Codeproject , blogs and lots of important thing about .Net since couple of years and I found those really useful. I have learned plenty from your articles and really Hats off to you.

Hi Abhijit,
Thanks for your nice articles. Need one help I have one .net Web application and deployed on II7 and it works fine but some time it gets some problem, and even after that It will open the simple pages which don’t have any database connection and when it comes to pages which need to pull some data from MS SQL then is not responding. And after that it will work only when we restart application from IIS7.
Need your help to come out of this problem Please.

is it possible to upload multiple file on a single browser click in .net

Normal ASP.NET File upload control allow only one file to select. What I understand from you query is you want to select multiple files at a time . I think for this case you can go for Flash Upload control . Here you gohttp://www.codeproject.com/KB/aspnet/FlashUpload.aspx

i want to save log out time in database when application is logout or direct close for a particular user.
and i have done this but problem is when the session is experied i am not able to get user name from session then there is no log out entry save in database for the expired user.

so where i can store to get user name when session is experied or any other way to do this

hi,
I am new to .NEt, I read your article from http://www.codeproject.com/KB/aspnet/GridImage.aspx, its related to my doubt I am doing a classifieds website and tried to save the image in server,in a seperate folder and stored that address in MS access databse.when I wanted to display that image in a gridview,its not showing the image.It would be great if some one suggests the solution for it.

In the seperate column when Ia m trying to see the image location using bound field,its displaying C:\websites\Azango\user_images\rj.jpg, but where as its not showing the image in the item template field.please help me in displaying the image.
Thanks in advance.

Just right click on the Red cross mark and click on the properties. Check the what Image path its coming. I guess this is wrong path . Please verify your code what type of path you have given (absolute / related ). Best to use “Server.MapPath() in this cases.
Please let me know if this helps you or if you need any more info.

When working with resources in a Web site its always beeter to use Server.MapPath() to give the reference path. For example, you might use a URL path to reference an image file in a page or the URL, if use SErver.MapPath() , this return the physical file path that corresponds to the specified virtual path on the Web server.String imageFilePath = Server.MapPath("/Images/MyImage.jpg");
Hope this will resolve your problem.

Hi Abhijit
thanks for your information , but still , i could not able to view the image after publishing. if i send the program can you check and let me know where i made the mistake , i would like to know , do i need to enable any option in IIS 7 , because , i have published in Apache Server , its working without any issue.

Hello Sir,
This is Mohit from Delhi. Sir, I am a .net fresher and recently get touched with ur articles. These are really helpful. I am developing a .net site. I want to know that is there any use of server side javascript while using .net. If yes, then when to use it. Plz. rply.
Thanks with regards,
Mohit

hi,abhi.you are really outstanding.I like your post and it’s really helpful to me.
I would like to do any certification from the microsoft.Now Iam start up my career in .net technology.
please give your valuable suggestions to mould my career in good track.

Before thinking of certification, you should know in which technology you want to do the certification. Microsoft having many topics for certification. But, you have to be specific on your requirment. I guess you want to do certification on .NET, may be Windows or Web Application. For that you have to look for MCTS Exam details from microsoft Learning sites.

How to create html tables dynamically,means if database rows are increasing depending on that in the designer view tables are also increasing for the display.
Is there any another option is there for this.

Just Addusing System.Web.UI.HtmlControls; Namespace and the use HTMLTable,HTMLTableRow, HTMLTableCell class to generate the HTML Table. Based on your data base records you create number of rows, column using those class. Please let me know if you need any more help on this. Thanks !

hi i am fond of your article i keep reading them all free time.
but i am novice to dot net and for last few days this problem is haunting me and i am dire need to resolve this problem any how please give a glance to following link and let me know how to resolve this, if there exist a better solution from performance wise please let me know for any doubt in getting code you please comment to same issue on code project but please rid me of from this problem. all details regarding the issue are mention in the link.
I posted it to stack over flow and many more log but didn’t get any response so finally i expect from you to resolve this issue.http://www.codeproject.com/Questions/105851/Preserving-Chck-box-Value-ON-Paging-in-Grid-View.aspx
Thank in advance

I learnt a lot from your posted link but i did a alternate to save save the state of check box while paging in grid view but now the obstacle is that i want to save all checked rows record to database but how to save all checked row to a temporary datatable using session of view state or any alternate you suggest. becauses on paging it looses the records to be inserted.
please let me know the best solution for this

I learnt a lot from your posted link but i did a alternate to save save the state of check box while paging in grid view but now the obstacle is that i want to save all checked rows record to database but how to save all checked row to a temporary datatable using session of view state or any alternate you suggest. becauses on paging it looses the records to be inserted.
please let me know the best solution for this

Hi abhijit ,
We are running a problem for a few days. We have developed a web application and deployed it in IIS 7 but the problem is that it hangs after every 3 minutes. We have analyzed a lot and we fond that Worker process recycled the application pool because of Private memory or virtual memeory but we didn’t set any limit of virtual memery. We also tried memory leaks software(APNT profiler) to find where memeory leaks but it shows us System.string(taken Highest memory). Please give us a solution…is that problem of IIS 7 or anything else..

The problem is the
geocodeService.GeocodeCompleted += new EventHandler(geocodeService_GeocodeCompleted);

I have to call the Geocode function in a loop, searching for multiple locations in a time. But the problem is that the event doesn’t happen in time, and that causes the loop to continue and override the previous value. Is there a way to Geocode without an event?

I am very beginner for asp.net,
In my application i used session variables, and i am checking one session variable in all pages..
after 20 minutes the session is expired..

Now my question is,
Is there any way to get session variable value after expired?..yes there is a way Session_End method in global.asmx…but how can i use it?

if you give some example, then it is very helpful for me..

bcoz, in my application, once the session is expired, it will redirect login page..
and the login contains the module id, at the time of login i am storing the module_id in session..
so if the session is expired, then i need to pass the module id to the login page..
like “Login.aspx?Module=” + variable name contains module id

Hi Abhijeet,
I just read your artical
“Custom Control using C# For Virtual Directory in IIS…”
but in this i have faced some diffcilties ,so can you send me some demo code ,that will helpfull for me.
I’ll wait for your reply.

Thank’s for the great post…
I have seen your achievements and i want some guide from you about my carrier Iam very much confused.
I am in T.Y. BCA from YCMOU university( http://www.ycmou.com )
and GNIIT from NIIT and I want to pursue post graduation.
some people suggest MBA and some suggest MCA. so from your opinion what should i do to pursue good carrier opportunity. like you i want to join Microsoft please give me some guidence.
and if you can tell me any good university for that course also. I would be very glad for that.\
and hope you will give me right suggestion You can suggest me at my mail id also at – paddy111padam@gmail.com

Hi Abijit,
your world of .net is very informative :-)….
Have a question..I m hving a datagrid in web page n some of the cells in grid are having dropdowns the list count of each dropdown control is around 5000 records.
when i add new row to grid i want to avoid call to database to fill the dropdowns.
In this scenario should i use cachin or load data into some staic variable like array…
need ur inputs

Hi Raj,
why are you trying to show 5000 records in a dropdown list ? You can only show those records which are relevant. I am asking, why you are not applying any filter first to show the records in dropdown. I guess, the value from the list can be selcted by the user, then selecting some value from 5000 records is not a good option.
What do you think ?

You rock. Hats off to you man. You doing good service to our Microsoft developer community.

I have one doubt. I just joined the company where you worked previously at the same designation (AT L2). They are giving me a project on classic ASP & Oracle. However, I am .NET guy. Please let me know your views whether should I go ahead with the assignment. I am afraid that my .NET skills will go obsolete because assignment will go for next 6 months. I request you to please throw some guidance.

hi abhijit this is anil. . .
i am learning .net . . . while working with ADO.NET examples i am getting an error as following
“The ‘SqlOledb, DataSource=Venna,Database=aar’ provider is not registered on the local machine.”

Hi Abijit, I got a doubt in sharePoit 2010,
I got a doubt, I have created a webpart in Visual Studio 2010 and I deployed in my site, but when I am adding this webpart in my site, I am getting the following error
———————————————-A web part or web form control on this page cannot be displayed or imprted. This type is not registerd as safe
could u please tell what would be the probelm

Hi, Abhi u r realy fantastic the way write ur articales r very easy to understand. I have query to ask, i am confused about the update panel regarding;
1) what if a button which is in update panel makes request to server, will update ctrls which are in and out side the UPnl?
2) What does adding async post back triggers do?
3) What does adding sync post back triggers do?

I read your article “Exploring Session in ASP.Net” on CP. That was awesome.
Now I am a little bit confused about how to implement the session for my website scenario.
I hope you respond to my post.
Thank you In advance.

I am writing a document on “Deploying websites using VS” and planning to post it on our Knowledge Management intranet, so that other employees in my company can also benefit from reading it. I came across an article, Deploying websites using VS2005, written by you on the same subject. I would like to include this in my document. I request you to kindly grant me permission to do so. I assure you that I would give appropriate credits and references to your article in my document.
I intend to reproduce in my document.
Ref : (http://www.codeproject.com/KB/aspnet/VSDeploy.aspx)

Nice blog and nice content. I found this site while I was searching a silverlight-sharepoint problem. I’m a silverlight developer and now there is a challange with connecting silverlight and sharepoint. When I try to use ClientContext, it’s always returns null. Is there any setting trick for connection? Because I did all what you said in your articles.
Thanks

hello sir i Have a problem.I have used caching from my application .when I run application on localhost it shows information correctly but when data is fetched from server where site is uploaded it shows error:

From the error details, it is clear, that your issue is not with caching. You are writing log using Enterprise library. It worked fine when you run it from VS IDE. As VS IDE having sufficient rights to write on your drive. Now as you said, you have hosted in IIS, I am sure you created the application pool as well. By default your application pool will run of Network service Identity which does not have the privilege to write on your drive. Because of that, I guess you are getting the error. What you can do is, change the application pool identity to Local System or Use Impersonation to write log. Or Give write access to the log write folder.

I want to capture and detect Barcode ( QR/ Code 39) automatically through camera in Windows mobile 6.5. Can you please share any link / sample code for this. Also Can u please share the ppt (Advance debugging in VS2010) and the code samples that you showed in Community techdays in Kolkata.
I am waiting to hear from you shortly.

hi,Sir.
you are really outstanding.I like your post, your all articles and it’s really helpful to me.
==============================================================
i am a MCA graduate in 2010 & am new in developing line but no one have enough time time to guide me…When i read your blog it is very helpful to me but i want more things about asp controls like web parts, web services & many more….
Sir if u guide me i am very grateful to you….

I read your article regarding deployment of a .net web application on IIS. it was really very helpful. i deployed tha app as instructed but when i tried to open the webpage. page appeared as blank i mean no data appeared on that page. when i ran it locally data fetched.

hi abhijith,
I have two question on the asp.net session management session given by you today.
1 Does the enableviewstate property becomes absolute as new property ViewStateMode is introduced?
2. What kind of compression is used to compress the session data in the state server?

Suresh,
You can still use enableviewstate mode to take control over the whole page. ViewStateMode will help when you want to take control for each and every page control.
ASP.NET 4.0 used System.IO.Compression.GZStream class to compress the session mode

hi,
i want to fire a event(mainly onchange) against the telerik rad upload(for uploading files).not getting any clue from net .i hv started visting your replies but not found anything related to it
Waiting for ur reply.
Mukesh

Hi Abhijith,
I have a question, please clarify.
I have a class called PageInfo and it has a propery Name and lets say i have added this class object to a session,
and i can read the object added to session in the following two ways and change the value “Name” property.

I have a class called PageInfo and it has a propery Name and lets say i have added this class object to a session,
and i can read the object added to session in the following two ways and change the value “Name” property.

first way:

(Session[“test”) as PageInfo).Name = “SomeName”;

second way:
Page objPage = (PageInfo>P”];
objPage.Name = “test”;

What is the difference between above two approaches and which one is the best practice?

Student s = new Student{Roll=7,Name="Student 1",Bio="No Bio"};
Now, You are storing it into Session like

Student["stud"] = s;

Now when you are updating anyvalue, first step you are following is (Session["stud"] as Student).Name = "Student Name";

Which is nothing but the type casting the session object and setting the Name value.

And in Second Approch,

Student ss = (Student)Session["stud"];
ss.Name = "student new name";

Here you are doing one extra one object “SS” initilization. Which was not required

So, I will prefer the first option. But before that I will think why to store an complete object in session ? If I need to store only few properites they why no to store only those properties instead of all object. We always have to take care of session data size.

Hi Abhijith,
though that clears my doubt.., i thought you would explain me the solution is IL language perspective..,
my question is even in the IL an extra object is created and occupies some memory when we follow the second approach?

Well, in IL, as far as I know, each method declares locals in the first section and the instruction set thereafter. If you are dealing with ValueTypes, even though you create extra memory for storing your object (provided you are using struct not sealed class), the object is created in Thread stack, and it will be cleared as soon as the object is sent out of scope.

On the other hand, If you look for objects, even though you assign / cast an object coming from Session to your reference, it will only transfer your reference. Actual object creation in the heap only takes place when you create using new operation. If you are cast an object reference to a variable, it will not create additional memory to store it.

Hi, Congt8s 2 u for another feather on ur cap (MVP). I have one question in C#. Let’s say I have two methods as below
public int Add(Int16 X, Int16 Y)
{
int Result = X + Y;
return Result;
}

public int Add(Int32 A, Int32 B)
{
int Result = A + B;
return Result;
}
and now I am writing the code like this
Add(1, 1);
The method with Int32 will be called.
I want to know y this happened? Wt’s the reason behind the compiler picking up that (Int32) method?

Because By default its Int32. Try to declare variable like Int16 i=10; and Int16 j =20 and Call Add(i,j), It will invoke public int Add(Int16 X, Int16 Y)
. Then Try Int32 i=10; and Int32 j =20 and Call Add(i,j) this will public int Add(Int32 A, Int32 B). As default is Int32 which we used as alias int, its called public int Add(Int32 A, Int32 B)
.
Hope this clears your doubts !
Cheers !
AJ

Hi Abhijit ,
I am a regular reader of your blog and i love it very much.
Will you please post a details discussion about Assembly, like private /shared assembly with example.If you previously discussed about it then please send me the link.
Thank you very much for your helpfull posts.

I am working with youtube API to read the all the comments of a youtube video. My code only works for reading first 25 comments. Please let me know how i can read all the comments of a youtube video not only first 25.

My name is Anil Barnwal, a Sr. software Developer in .NET, today i see ur article on code project for exploring sessions, it is excellent.
Just like to say Thanks for sharing ur valuable information with others.

In your article on Exploring Session on CodeProject.com, you have shown a different SQL Server than the replicated DB servers for storing session in SQL Server mode. Can’t the same set of DB servers be used to store the session?

i have seen yr blog n yr site that really helpful to us. i m fresher in software engg. so i hve no knowledge up to the level but i will get it by yr blog n yr site. i m so glad to touch with u n yr site.

I have used the General Tap in VS 2010 for storing my code as you suggested, but I have purchased a new laptop and need to find out where these snippets have been stored on my old laptop in order to load then onto the new one.

Thank you for your wonderful tutorial about deploying ASP.NET websites on IIS 7.0 that I discovered thru the codeproject website. It was straight forward & very simple to follow, making it a breeze to easily deploy any web application that I may need to in future, quite literally there was nothing like else it on the web.

Abhijit da, at 1st i’d like 2 give lot of thanks. now i want 2 understand how to state management (like session, viewstate,hidden field, cookie etc.) works in page life cycle of asp.net page? hope u ll give us a new on this topic…. bye take care

You can use this tool. I did it long time back, and haven’t work on that afterwards. No, detecting changed user is not there ( You will able to see who is accessing, but no more details user ). On that time I couldn’t find any API to get the exact user name who did the operation. I was talking about the same with one my friends just few weeks back. I know this tool could be extend with many new features. There are some issue with that tool as well. I was thinking to resurrecting NetSpy and start a fresh development with same idea. Let see.
Thank you !

Hi Sir,
I m really proud of your articles on code project. God bless you. I deeply respect your intention of this website to serve the mankind by the power of knowledge, using your God gifted talents and capabilities with hardworking and enthusiasm. No doubt, those kind of people are achiever of aim of life. Plz keep it up.
Our best wishes for you.

Thanks for your nice articles at codeproject.
I want to ask you a question on session. i prepare a website and put session like UserId and UserName etc. but the session is not stay for longtime. I mean, suppose you use gmail or yahoo, it seems that your signed in how long you are staying at the browser. but mine’s is stay only for few minutes.
can you please give me solution about the problem. Also it signouts automatically after sometime
thank you. Also how to solve ViewStateMac problem ?

i have seen your site, it is good for every person working in IT and also in .net Tech.

currently i have one issue
i’m working in vs2010, while attaching process in debug option
i’m not able see the w3wp.exe file in the list and also when i’m mentioning remote ip address in qualifier
it isi saying that “Login failure: unknown user name and bad password

so how to get the w3wp.exe in the list from local system or from remote system

i have gone through your articles. they are really very helpfull thanks a lot for such nice articles.
i was wondering if you have any articles describing details about Web services.
if so can you please share the link. that would be a great help.

I have deploy an asp.net website to IIS 7.0 with an Apache server running using ProxyPass to redirect. When asp.net has to do a redirection (e.g.you try to go to a page and you are redirect to a login screen automatically) I am getting an error “The resource cannot be found” . This is because it trying to find the page at the wrong url (e.g when it should be http://MyDomain/Admin/User.aspx, the URL is http://MyDomain/Site/Admin/User.aspx) where Site is the actual name of the virtual folder in IIS. Help please

Hi !
I’m working with an web application project for my study.. I have some problems and i dont have muche time 😦
– am using listView which it bounded to myDatabase, there is a Button under the text @ItemTemlate for every generated item in the listView (onPage_load), HOW can i get the productID for this item ??? i need the id to use in code behind to send all the info about the product to the myCart site .
– I want to update a text on siteMaster when i add product to myCart, to showing the quantity and myCart site and the total cust.
– What is WCF ? and how can i use it ?

I appreciate any help as soon as possible, thank in advance
Best regards

am using listView which it bounded to myDatabase, there is a Button under the text @ItemTemlate for every generated item in the listView (onPage_load), HOW can i get the productID for this item ??? i need the id to use in code behind to send all the info about the product to the myCart site .

You can simple get the product id from the source of data. you can use ItemDataBound event to bind with every item. Try e.Item.FindControl() get the button control and do what ever association you want to with it.

Hi Abhijit,
Actually I saw your Kinect Tutorial Part I. I am using Kinect SDK 1.0 and Visual Studio 2010 but I do not get Microsoft.Research.Kinect.dll file and not getting Runnable class. So We need your help.

Hi Abhijit,
I actually how to find out the distance of a person (single or multiple) from the camera. I tried out Skeleton demo and Explorer demo of Kinect SDK but I want to know distance of a particular person in each frame. Thats all.
Thanks in advance.

Distance calculated based on the below formula,int distance = depthFrame[depthIndex] >> DepthImageFrame.PlayerIndexBitmaskWidth;
where distance is in mm. DepthImageFrame.PlayerIndexBitmaskWidth is the constant and value is 3.depthFrame[depthIndex] is the pixel value with in the player range. Sensor sends raw 16 bit depth data where first 3 bit used for player index that is the reason there is a bit wise shift operator with 3 bit (DepthImageFrame.PlayerIndexBitmaskWidth ) . So, rest high 13 bits represent the pixel distance in mm from sensor. Hope this clears your doubts.

dear sir;
i have seen ur SpyNet project developed by u by using c# and WMI but in that u have created one database in MS Accesses . i am not able to connect that sir . i am getting a run time waring showing dialog box with message “An error occurred while querying for WMI data:Accesses denied”.
the code is in this formate:

I am saikrishna from Andhrapradesh.You are
doing really a nice job .This site was very helpful to beginners for
dotnet.I want the topics of State Management Techniques,
Authentication Modes,MasterPages in Asp.net.Can ypu please provide to
me .please…….

Hi Abhi,
Great article on Kinect,Just want to know the Is it working simple IIS, hosted domain.
Windows Azure is needed for capturing kinect data?Please send me the merits and demerits.
I amplaaning to do the Kinect with IIS? Whats the cost of KINECT in INR[around]??
thanks

hi sir !
I am beginner in asp.net, with experience of web designing
i have just completed the .net course but the problem is that in institute they had not taught me well ..so now i have only theory knowledge and in practical i am 30%….but daily i practice 2-3 hr on .net framework but when i encounter any error i get confused and stop the work…there is know one around to guide me……so plssssssssssssss helllllllllp!

I have developed a web application. I have use session state inproc. but frequently user automatically log out when they are working this application. user’s approx 400. every users use 9:00 AM to 6:00 PM to my application. can any suggestion to me that what should i do?

Hello Abhijit Jana, Hope you fine and enjoying your time. I am using Kinect 2 for my project, regarding that I need some help to save skeleton joints in a text file. I already have a program that can record the RGB, depth, and infrared streams.
Also, If you don’t mind can I ask some question about the infrared images?
Thank you

Hi How are you Mr.abhijit jana?
Now a days i am reading your book kinect for window sdk programming guide. Its really good book. I am learnt much more and more about kinect for window.
I want to develope application using kinect for window. I am read first,second,third and fourth chepter of your book. I want to make my own API on c#. As you given in chapter4 in your book. I am create start,stop and exit buttons. I put my kinect start code on my start button. When i run my kinect sdk code and click on my start button, kinect run but output screen not open. Sir when i remove the code from button then it work. And when i put my whole code into button it give some errors.
Sir kindely resolve this issue as soon as possible. i am also sent you email.
I am available every time, whenever you free kindely reply me any where. if you like i will also join you on facebook or tweeter.
Thanx
Regards
Umer Saeed

Helo How are you? Mr.Abhijit Jana
Now a days i am reading your book kinect for windows sdk programming guide. Its really informative book about kinect for window. I am read 1st,second,third and fourth chepter of your book.
I want to make real time system using kinect for window. Sir as you build API in c# in chapter4 of your book. I want to build this type of API for my project. i create start,stop and exit button.
I put kinect start function code on my start button. When i run kinect sdk code and press start button, it start the kinect but not show output screen. Sir when i remove this code from button then it work. Sir kindely resolve this isuue. I will also send you email. I am available everytime. Whene ever you free kindely reply me. If you like i will also join you on facebook and tweeter.