jump to navigation

Contact

If you like what you see here, or have any comments, Query, suggestions or corrections, feel free to leave a message over here. I will try to response you as early as possible.
Email me at abhijitjana@outlook.com for any query .
You can also get touch with me via Facebook or Twitter

                                   
Abhijit Jana on Twitter Counter.com

Looking for Useful Tips and Tricks on .NET. Please Visit my site http://dailydotnettips.com  and Follow @dailydotnetips

Comments»

1. jignesh - October 30, 2009

hi,abhi.you are really outstanding.I like your post and it’s really helpful to me.I also refer sacha blogs and webs.I also got his help for my silverlight issue.keep in touch and keep it up abhi….:)

Abhijit Jana - December 12, 2009

Thanks Jignesh. Thanks for your kind words. Nice to know you liked my blogs and article.

2. Deepak Kataria - October 30, 2009

Dear Sir,

I wanna to do MCP. Pls guide me and some give me study material.

Ton of thanks in advance.

Abhijit Jana - December 12, 2009

Hi Deepak,

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 .

3. biswajit - November 1, 2009

what is the effect of page in response of EnableViewState property true & false.

4. Kamrul - November 3, 2009

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.

5. MD Raquib Alam - November 3, 2009

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

Abhijit Jana - November 7, 2009

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

Hope this clears your doubts and This will helps you.

6. Krishna - November 5, 2009

Hi Abhijit,

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.

Regards, Krishna.

Abhijit Jana - November 7, 2009

Hi Krishna,
Thanks ! and I used only Micorsoft PowerPoint 2007 for creating those graphics :)

7. Ravi - November 5, 2009

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 …..

8. simil - November 13, 2009

how to use membership in asp.net

Abhijit Jana - December 12, 2009

Using membership provider is quite easy in asp.net as ASP.NET internally managed all things. I will suggest you to check following links
http://msdn.microsoft.com/en-us/library/ms998347.aspx

9. Steve - November 30, 2009

Greetings Abhijit,

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.

Kind regards
Steve

Abhijit Jana - December 12, 2009

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.

Thanks Again !

10. khalil - December 1, 2009

I want to find week ends in current week i.e. saturday and sunday can u plz help me.

11. Nitinkumar kakulde - December 11, 2009

hi you are so experts ..i always reffer your site and blogs written by you ..
thanking you

Abhijit Jana - December 12, 2009

Thanks Nitin

12. nkbeauty - December 11, 2009

hi
i m using windows vista, iis 7.0,classic asp
if i run asp page, i received following error
internal server error 500
isapi module
ModuleName IsapiModule
Notification 128
HttpStatus 500
HttpReason Internal Server Error
HttpSubStatus 0
ErrorCode 2147942570
ConfigExceptionInfo
Notification EXECUTE_REQUEST_HANDLER
ErrorCode The requested resource is in use. (0x800700aa)

I tried uninstall and reinstalled iis
application pools — set local system to identity
isapi filters – add asp.dll
and remove it

pl help me

thank you

Abhijit Jana - December 12, 2009

Are you talking about Classic ASP or ASP.NET ?

13. nkbeauty - December 14, 2009

I am using Classic ASP, windows vista Business and IIS 7.0

previously ASP pages are worked, i dont know whats wrong in this system now.
if i try to open any ASP page, it does nt show anything. HTML tags are working well.

I try to trace out error, “The requested resource is in use.” – its a warning.

pl guide me
thank you

14. Mohan Dass - December 14, 2009

HI Abhijit Jana,

I read your article from code project all are nice article.It gives clear view.Thanks.I have one doubt could you please explain.What is “Active Directory” ?

Thanks & Regards
Mohan Dass.P

Abhijit Jana - December 14, 2009

Thanks Mohan,

Active Directory is an LDAP based Directory service. I am giving you one link, please go through this, this will clears your doubts.

http://www.learnthat.com/Software/learn/1295/Introduction-to-Active-Directory/

Mohan Dass - December 16, 2009

Hi Abhijit,

Thanks for your reply. Its very helpful. You are doing such an excellent job to all.All the best.

Thanks & Regards
Mohan Dass

15. Lukasz Smolinski - December 16, 2009

Hi.

How I can set a WebService Extension status (Allowed/ Prohibited) from c# code?

Sory for My English.

Regards.

16. Lukasz Smolinski - December 16, 2009

Ok I found solution.

DirectoryEntry iis;
iis = new DirectoryEntry(“IIS://localhost/W3SVC”);
iis.Invoke(“EnableWebServiceExtension”, “ASP.NET v2.0.50727″);
iis.CommitChanges();

17. manish - January 1, 2010

Happy new year sir, i have read ur article about session object it increases my knowledge regarding session object. i want ur help , i create login in ASP.NET but when i login during processing it gives error :
Unable to cast object of type ‘System.Int32′ to type ‘System.String’.
—————————————————–
Label1.Text = (String)Session["rollno"] ;
ssql = (“SELECT * FROM studentinfo1 WHERE rollno=” + (Int32 )Session["rollno"]);
i dont know which line is giving error , plz send me solution . Thanx in advance

18. Pavithra - January 4, 2010

Hi,

Your blogs are very help full, i understand them very well. So whenever i have doubts i refer your blogs its very nicely explained.

Thanks,
Smiley

Abhijit Jana - January 4, 2010

thanks Pavitra. Nice to know that u liked my blog. Let me know if u need any help !!

19. abhishek - January 8, 2010

hello..
ur articles r really very good n understandable.keep up the good work sir..thank u.

Abhijit Jana - January 8, 2010

Thanks !!

20. dimitar.dk - January 12, 2010

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

21. dimitar.dk - January 12, 2010

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

22. Amit - January 14, 2010

HI Abhijit Jana,

I read your article from code project all are nice article.It gives clear view.Thanks.
Do u have some other articles on OOPS,ASP.NET,WCF
Plz. Help me
Thanks & Regards
Amit

23. Benoit - January 14, 2010

Abhijit,

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?

thanks,
Benoit

24. Veena - January 17, 2010

Hi,
your articles on IIS r very good. If u any articles on asp.net page life cycle then please give me that link.

Abhijit Jana - January 17, 2010
Veena - January 18, 2010

Thanks

25. Puneet - January 25, 2010

Hi Abhijit!! Fist of all Congratulation for the award.

I just want to know, have u ever wrote any article on OOPS.. if any plz provide us link. Or any web side for the same..

Thanks in advance
Puneet

26. Maruf - February 3, 2010

Hey..Love your articles..Can you please write some beginner articles on WPF?

27. Tash - February 4, 2010

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…

private void Button1_Click(objectsender,System.EventArgs e)
{
SqlDataAdapter da = null;
try
{
con = new SqlConnection();
con.ConnectionString = ConfigurationSettings.AppSettings["DSN"];
da = new SqlDataAdapter(“select * from card_details”,con);
DataSet ds = new DataSet(); da.Fill(ds,”card_details”);
ds.WriteXml(“D:\ADIB\OutputXML.xml”);
}
catch(SqlException ex)
{
throw new System.Exception (“Error — ” +ex.Message);
}
catch(Exception exp)
{
throw new System.Exception (“Error — ” +exp.Message);
}
finally
{
con.Close();
da.Dispose();
}
}

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

28. srinivas - February 4, 2010

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.

29. srinivas - February 5, 2010

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

Abhijit Jana - February 5, 2010
30. hira - February 6, 2010

hi
abhijit i m new here i want b webdevloper what u will sugest for me?
and when i can talk with u online

31. srinivas - February 7, 2010

Thanks Abhijit

32. viral sarvaiya - February 10, 2010

Subject: problem of deployment of java applet in iis7.0

Hi,

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.

Thanks in Advance.

33. viralsarvaiya - February 10, 2010

Subject: problem of deployment of java applet in iis 7.0

Hi,

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.

Thanks in Advance.

34. srinivas - February 11, 2010

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

35. Norman Rowe - February 12, 2010

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

36. madhuri - February 26, 2010

hi, thanks Sir, you always give answers and its helpful to me…. thanks

Abhijit Jana - February 26, 2010

Nice to know my answer helped you !

37. madhuri - February 26, 2010

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…

38. Sundeep - March 14, 2010

Hi Abhijit,

I am a follower of all your articles on codeproject. All are cleanly and easily understandable.

I am also planning to blog technical articles, could you please tell me which tool you use for drawing images.

Thanks,
Sundeep

Abhijit Jana - March 14, 2010

Hi Sundeep,

Nice to know that you liked and follow my article.

Its nice to know that you are also interesed to writing blogs. I use Powerpoint to draw the images.

Here is my new article, in DotNetFunda, Have a look into this,

http://www.dotnetfunda.com/articles/article821-beginners-guide-how-iis-process-aspnet-request-.aspx

Please let me if I can help you anything else.

Sundeep - March 14, 2010

Thanks Abhijit. My first article on the way this weekend.

Abhijit Jana - March 14, 2010

Let me know after publish. I am waiting for that !

Sundeep - March 20, 2010

Hi Abhijit, here is my first one:-) http://stweet.wordpress.com
If you are free, please do visit.

Abhijit Jana - March 27, 2010

Yes. I saw that !! Great Work !

39. Indrajeet Sutar - April 5, 2010

Hello sir,

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.

Thank you,

40. sandy - April 6, 2010

Hi, I’m interested on a good book or site that can help me deploy a asp.net web application to a windows server 2008.

thanks

41. manas - April 14, 2010

Please all controls on asp.net controls and code for beginners

42. anjaria - April 18, 2010

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?

43. venkatesh - April 25, 2010

Hi this is venkatesh .i am searching for job based on .net i want to know get the certification of MCTS.How can i get the test n where i have to approach

44. kunal - May 6, 2010

Hi sir,

I am calling a webservice in asp.net by http basic authentication(RFC2617) but unable to do so despite numerous attempts.
i am not using wcf.

my code is(not working for me):

MyService service = new MyService();
service.Credentials = new NetworkCredential(“username”, “password”);
service.PreAuthenticate = true;

and
MyService service = new MyService();
NetworkCredential netCredential = new NetworkCredential(“username”, “password”);
Uri uri = new Uri(service.Url);
service.Credentials = netCredential.GetCredential(
uri, “Basic”);
service.PreAuthenticate = true;

My client has given me document as follows how to call webservice:

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.

Thanks & Regards
Kunal Tilak

Vinay - August 16, 2010

Hi Kunal,

This is Vinay, Bangalore.

your IRCTC problem (RFC 2617 Http Basic Authentication) solved or still it is open. If it is closed please post ur comment on this problem.

45. Mohammed Afroze - May 11, 2010

Hi, Abhijeet…

My self is Mohammed Afroze, I`m from Hyderabad pursuing B.E C.S.E III rd Year II Sem almost finished…

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…

If U want me I can send you the VB Application Source of my project.

46. Sanjay Mishra - May 12, 2010

Hi abhijit,

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) ?

Abhijit Jana - May 12, 2010

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

This warrning is for all breakpoints or any particular breakpoint ? Just try to put a simple break point on page load of current page and let me know the result.

47. Manjeet Ranga - May 15, 2010

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).

please suggest some idea about this.

Do i’ve to do it on server side by maintaining state???

Thanks in advance

Abhijit Jana - May 15, 2010

Manjeet,
Thanks for writting to me. Are you usign ASP.NET Menu Control or any custom control ?

Thanks
Abhijit

48. Monisha - May 24, 2010

Hi,

I have 5+Yrs. of .Net Experience, but I am failing in technical interview, my communication skill is good. Please guide me how should I prepare for clearing the interview…

Thanks,
Monisha

49. srinivas - May 25, 2010

Hi, abhijit ,
i have one task, i hope that u can give an example for that .
actually,
how can we display chart for height and weight by varying years…..by using silverlight controls.
plz help me.

50. Dominik Sigmund - May 27, 2010

Hi Abhijit,

I read your Article about deploying ASP.NET Applications on IIS7.0 (http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx) and i have the same problem:

I get a NullReferenceException when my Application tries to read the Sessions, i can set them without any problems…

But if i want to configure my IIS with other options than in proces, my application gives me a configuration error…

Could you pls give me some advice how to solve that problem?

Many thanks in advance!

Abhijit Jana - May 27, 2010

But if i want to configure my IIS with other options than in proces, my application gives me a configuration error…

Please let me know the exact configuration error that your are getting ?

Thanks!

Dominik Sigmund - May 27, 2010

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.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
ProjectManager.normal.Page_Load(Object sender, EventArgs e) in D:\User\Projects\ProjectManager\ProjectManager\normal.Master.cs:30
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
System.Web.UI.Control.OnLoad(EventArgs e) +131
System.Web.UI.Control.LoadRecursive() +65
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

51. Abhijit Jana - May 27, 2010

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,

if (Session["Name"] ! = null )
{
name = Session["Name"].ToString();
}

Hope, you got my point.

Dominik Sigmund - May 28, 2010

Hi,

yeah got it…
I just was to sure, that the variable will be set…

With the test for null, i can be sure, that the corretc page will be loaded!

Many Thanks!
Keep up the good work!

52. Milind Chavan - May 27, 2010

Hello Abhijit,

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.

Thanks for doing great work.

Regards,
Milind

Abhijit Jana - May 27, 2010

Milind,
Thanks ! and nice to know you liked my article and it helps you !

Regards,
Abhijit

53. mukesh - May 29, 2010

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.

Thank & Regards
Mukesh

54. Zinnia Sarkar - June 4, 2010

Hi!
I had found an article by u, which showed how to fill image in gridview. But i lost that link while trying to join u at twitter. Can u plz tell me the link plz.
Regards,
Zinnia

Abhijit Jana - June 4, 2010

Hi, Thanks !
I think you were looking for this one,
http://www.codeproject.com/KB/aspnet/GridImage.aspx

Let me know if you need any help !

Thanks !
Abhijit

55. Satish Naphade - June 4, 2010

hi Abhijit

I read your web farm article and it’s very nice.
i want your little help.
is it possible to upload multiple file on a single browser click in .net

n if yes
then how can i get this.

thanks in advance
Satish

Abhijit Jana - June 4, 2010

Thanks ! and nice to know it helped you !

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 go
http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

Or you can do, you can use list box to add file name one by one, then upload at a time. like
http://www.codeproject.com/KB/user-controls/MultifileUploadUserContro.aspx

Let me know if u need more help !

56. Zinnia Sarkar - June 5, 2010

Many many thnx, for spending ur precious time. And it worked nicely. I need checkbox list/multiple check boxes, within a dropdown list. Can u get me related links plz?
Thnx
Zinnia

Abhijit Jana - June 5, 2010
57. Zinnia Sarkar - June 5, 2010

Hi!
Recd the link. Let me try n give u feedback. Till then many thnx.
Rgds,
Zinnia

58. Zinnia Sarkar - June 5, 2010

Its working as reqd by my boss.
Thnx
Zinnia

59. Abhijit Jana - June 6, 2010

yes. great ! Let me know if you hant any more dobuts.

thanks!
abhijit

60. Zinnia Sarkar - June 6, 2010

i have to make a case study named ‘site search’, which will function like google. Hope i could explain u, my requirement. Can u send me help links plz?

61. Jacob - June 7, 2010

Hi Abhijit,

Thanks for your Excellent articles.

I have one doubt regarding webfarm, perfomance wise which session mode is the best state server or sql server ?

Many Thanks

Jacob

Abhijit Jana - June 8, 2010

Hi Jacob,

Performance wise State server is better as its stored information in memory where as in SQL server, session data stored in disk.
I would request you to please go through this link for details.
http://stackoverflow.com/questions/1447175/sqlserver-vs-stateserver-for-asp-net-session-state-performance

62. Satish Naphade - June 9, 2010

Hi Abhijit,

thanks for your help regarding multiple file upload. it’s really rocking.

now i have one more problem.

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

thanks
Satish

63. ARUN - June 14, 2010

Hi abhijitjana,

Your articles are very intresting and valuable, it helps me out alot.

It will be very helpful for me if you provide article on Caching Application Block 4.1 using database cache storage pls.

Regards,

Arun

64. phanindra - June 16, 2010

i am going to take MCTS 70-515 , can you help in preparing that stuff

65. sravanthi - June 21, 2010

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.

<asp:ImageButton ID="ImageButton1" runat="server" style="border:none; width:100px; height:50px;" ImageUrl='’ />

66. sravanthi - June 21, 2010

sorry code dint come completely so I am posting here
,

<asp:ImageButton ID="ImageButton1" runat="server" style="border:none; width:100px; height:50px;" ImageUrl='’ />

67. sravanthi - June 21, 2010

ok I dont knwo why,code does not paste here,
but you can check my code here,
http://forums.asp.net/p/1570885/3937043.aspx#3937043

68. Anant Choudhari - June 23, 2010

Hello Sir,
Am a MCA Fresher and love to work in .Net.I gone through ur Site and Articles.Its help a lot.
Plz give me advice,on what topic i should concentrate more in present Market Scenario.

Thnks a lot Sir.

69. Praveen - July 14, 2010

Hi Abhijit,

I am Praveen. working on Asp.net 3.0 and also on MOSS 2007 and Sharepoint 2010.

Your articles are ver good.Its very help full.

I want to do MCP(Microsoft Certified Specialist) Certification. How to get study material for that?

Abhijit Jana - July 14, 2010

Hello Praveen,

Thanks !

Which certfication you want to do ? Please visit this link for details of Microsoft Certification
http://www.microsoft.com/learning/en/us/certification/cert-overview.aspx

Please let me know if you need any more information.

Regards,
Abhiijit

70. Praveen - July 14, 2010

hi Abhijit,

I am working on Asp.net3.0 , MOSS 2007 and Sharepoint 2010. I had seen your articles,are very good. I want to have MCP Certification. Wher can I get materials for MCP certification

Regards,
Praveen

71. Ram - July 21, 2010

Hi abhijith,
This is Ram from Bangalore
can u please share some SoapUi (testing for Dotnet applications) related docs

Thanks In Advance

72. asutosh - August 2, 2010

Hello Abhishek

i am asutosh satpathy iwant to know how i use wcf in 3-tire architecture.

plese send me some source code with dal,bl,pl,service layer.

Thank you for your time and consideration.

Thanks & Regards,

asutosh.

73. asutosh - August 2, 2010

Hello Abhijit

i am asutosh satpathy iwant to know how i use wcf in 3-tire architecture.

plese send me some source code with dal,bl,pl,service layer.

Thank you for your time and consideration.

Thanks & Regards,

asutosh.

74. Manaji - August 4, 2010

Hi Abhijit,
I have read your IIS Artical,
Please give me IIS Administration Guide in PDF Format,
Link for IIS Deep Study.

in Mail

Thanks
Manaji

75. Gnanam - August 6, 2010

Hi Abhijit,
after i published the ASP code in IIS 7 , and when i open the site at any client site , i cannot see the image , its shows only cross mark, how to resolve this issue

Gnanam
Sri Lanka

Abhijit Jana - August 6, 2010

Hi Gnanam,

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.

Thanks !
Abhijit

76. Gnanam - August 6, 2010

Hi Abhijit
all the paths are correct , i have given below the image link code, please show me how to use Server.mappath

i have tried with the same code in Apache Http 2.2 , its work fine , but i don’t know why AJex controls are not working in Apache Http 2.2

Thanks
Gnanam

Gnanam - August 6, 2010

sorry , i have attached the link belw

Gnanam - August 6, 2010

asp:image runat=”server” id=”Image1″ ImageUrl=”CompanyLogo.png”

Abhijit Jana - August 7, 2010

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.

77. Sreejith - August 6, 2010

I am using VS 2010. It has default ajaxtoolkit loaded.but i cant drag and drop it in webform.why?

Abhijit Jana - August 6, 2010

Are you getting any error while Drag and Darp ?

78. Gnanam - August 7, 2010

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.

Thanks
Gnanam

Gnanam - August 7, 2010

Thanks Abhijit
i found the mistake , i didn’t install Static Content in the IIS 7 , after re-install that option every think works fine

Thanks
Gnanam

79. Gnanam - August 11, 2010

hi Abhijith

how to change the background of the text box color on mouseover event

thanks
Gnanam

80. prafull Gangboir - August 12, 2010

Hi Abhijit,

I have seen ur article for SOAPUI its really helpful.
I want to test my web methods which takes object as input parameter.
Is there way I can create testScript in SOAPUI tool to test my web methods

81. Mohit Gaur - August 17, 2010

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

82. Salil Kumar Gupta - August 21, 2010

hello sir,
I am using visual studio2010, how can i install crystal report. plz let me know as soon as possible.
thanks with regards
salil

83. chandrashekhar R - August 30, 2010

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.

Abhijit Jana - August 31, 2010

Thanks and nice to know my articles helped you !

I would like to do any certification from the microsoft.

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.

Please let me know if you need any more help.

Thanks !

chandrashekhar R - September 3, 2010

thank you abhi,

Abhijit Jana - September 3, 2010

Cheers !

chandrashekhar R - September 9, 2010

Hi Abhi,

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.

Thanks in advance,

Abhijit Jana - September 9, 2010

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 !

chandrashekhar R - September 10, 2010

thank you abhi,

Is any controle available for this requirement.

84. Rupesh malviya - August 31, 2010

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

Abhijit Jana - August 31, 2010

Rupesh,

Here is one great article written by one of my friend Samir Nigam on preserving Check box on Gridview paging.
http://www.codeproject.com/KB/webforms/States_of_CheckBoxes.aspx

Please let me know if you have still doubts.

Cheers !
Abhijit

Rupesh malviya - September 1, 2010

Hi abhijit jana,

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

85. Rupesh malviya - September 1, 2010

Hi abhijit jana,

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

86. Rakib - September 16, 2010

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..

87. dio-mi-dis - September 18, 2010

Hello Abhijit Jana,

Thank you for your great posts. I have a serious question about bing maps and silverlight, using geocoding (http://www.codeproject.com/Articles/95096/Bing-Maps-Silverlight-Control-Integration-with-Sha.aspx?display=PrintAll)

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?

Help me please!

Thank you very much!

88. Sahaya Arul Sekar - September 20, 2010

Hi,

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

89. Gourav Vishnoi - September 21, 2010

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.

Abhijit Jana - September 21, 2010

Gourav,
I guess you are talking about this article
http://www.codeproject.com/KB/miscctrl/VDir_Control.aspx

The articles contains the demo code and I think that worked properly. If you have faced any specific issue let me know with your IIS Version thanks

Abhijit

90. Padmnabh Vyas - September 23, 2010

Hiiiii Abhijit,

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

Thank’s and waiting for your reply..

91. Raj - September 29, 2010

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

Abhijit Jana - October 2, 2010

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 ?

Raj - October 3, 2010

thanku for ur reply…
ya true …i wana apply filter like this..i ll display a textbox ,as soon as i start typing the part id in textbox the listitems both(partid n description) should start displayin..for example google search

Abhijit Jana - October 3, 2010

Yes, like Auto complete text box. You can also do the same using XMLHTTPRequest . Let me know if you need any further help.

Thanks !
Abhijit

92. Raja ramesh - October 6, 2010

Dear Abhijit,

I have read your IIS article, you are really outstanding.
I like your post and it’s really helpful to me
it was simple supper. after reading your article i got very good idea on IIS.

Could please give your email, to be touch with you.

give me tips how to learn WCF,

Thanks
Raja

93. Suresh - October 8, 2010

Hello Abhijit,

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.

Thanks & wish you all the best.

94. Rupesh - October 12, 2010

Hi
haven’t you written an article on application object in asp.net?
if u have already written then please provide me the link.

Abhijit Jana - October 13, 2010

No Rupesh, I don’t have any article on Application object state.

You can read the below article, written by Brij, which has a nice walkthrough !!
http://www.codeproject.com/KB/aspnet/ApplicationState.aspx

Let me know if you have any doubts on that !

Thanks !

AJ

95. Basilmir - October 13, 2010

Hello,

Read your article on Visual Studio 2010 Extensions. Do you have any experience developing more complex extensions? More to the point, text editor extensions?

I’ll leave my email so we can talk.

96. anil - October 17, 2010

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.”

Pls help to resolve this problem. . .

97. Sonal - October 30, 2010

hi abhijit,

your session article is really useful for us to understand session

thank you very much

Abhijit Jana - October 30, 2010

Thanks very much Sonal !!

98. tencere - November 3, 2010

thanks very good

99. Phani Kumar - November 3, 2010

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

100. durgesh gupta - November 3, 2010

hi, can u guide me for share point
give some url related to sharepoint ………..
happy Diwali…………..

101. shoab shah - November 15, 2010

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?

102. Bhupendra Chauhan - November 16, 2010

hello abhi…your articles are very helpful.i always read ur articles…and also refers to my frends to read ur wonderful articles.Thank u….

103. arlen - November 18, 2010

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.

104. sagnik - November 28, 2010

thanks for the great presentation in CTD , kolkata. hope to see u next time !!

Abhijit Jana - November 29, 2010

Thanks Sagnik !!

105. Ayan Choudhury - November 29, 2010

Hi Abhijit,

This is Ayan. I was there in techdays seminer yesterday. It was really a great presentation by you.
Thanx for sharing your knowledge with us.

Abhijit Jana - November 29, 2010

Thanks Ayan !!

106. Rattan Kumar - November 30, 2010

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)

107. İbrahim KIVANÇ - December 2, 2010

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

Abhijit Jana - December 3, 2010

I replied you on the article post !

108. Amit Mehan - December 3, 2010

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:

The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter, null]) failed: Request for the permission of type ‘System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed. (Strategy type Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)

Abhijit Jana - December 3, 2010

Amit,

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.

Hope this will help.

Thanks
AJ

109. Madhab Dutta - December 3, 2010

Hi Abhijit,

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.

Abhijit Jana - December 3, 2010

Hi Madhab,

I don’t have any ready link for barcode detection. If I found something, will let you know !!!

Regarding Kolkata CTD Presentation, I have uploaded it on the same day over here,

Kolkata CTD

There you have download presentation link just after my session description.

Regarding Source code, I didn’t upload it till now. Will upload shortly and will update you !

Thanks !
AJ

110. Dipak Nayak - December 12, 2010

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….

So please sir reply me soon.
Thanking You
Deepak

111. Adarsh Mishra - December 13, 2010

Hi Abhijit,

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.

Please suggest me!!!

thanks

112. suresh kumar - December 18, 2010

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?

Abhijit Jana - December 20, 2010

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

I have posted an Session Summary note over here, you may look into that.
My Session Summary

Again thanks !!

113. Mukesh Rai - December 23, 2010

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

114. .NET Tip a Day, Keeps painkillers away! – Live at http://dailydotnettips.com – 27th Dec 2010 « Abhijit's World of .NET - December 27, 2010

[...] Contact [...]

115. suresh - January 17, 2011

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.

first way:

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

second way:
Page objPage = (PageInfo)Session["test"];
objPage.Name = “test”;

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

116. suresh - January 17, 2011

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?

Abhijit Jana - January 19, 2011

Hi Suresh,
For Both the cases you ar doing the same thing.

Let say I have a class called Student

internal sealed class Student
{
public int Roll { get; set; }
public string Name { get; set; }
public string Bio { get; set; }
}

Creting and storing the Student Object

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.

Hope this clear your doubts !

117. Suresh - January 19, 2011

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?

Thanks
Suresh Kumar

Abhijit Jana - January 19, 2011

I will write to you details soon !

Abhishek Sur - January 25, 2011

Hi Suresh,

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.

Hence the entire doubt centered on your mind doesn’t need any water. I hope you got my point.

Abhijit Jana - January 25, 2011

Abhishek thanks !

Cheers !

Abhishek Sur - January 25, 2011

BTW, If you want to know more about Intermediate Language and also how it works you can try my Internal Series

http://www.abhisheksur.com/search/label/internals

You can also follow my blog
http://www.abhisheksur.com

for more internal stuffs. I would love to answer your needs.

Thanks

118. Sumanta - January 20, 2011

Ki Abhijit Da, tumi ki codeproject e article lekha bondo kore dile keno? Onek din hoye gelo tumi natun kono punlish koro ni! Microsoft join kore ki busy hoye gale?

Tomat next article er janno wait korchi!

Dhanyabad.

Abhijit Jana - January 23, 2011

Hi Sumanta,
I have published many article at codeproject last year. Just check Technical Blog section at my profile in CP

119. Tejalal - January 20, 2011

nice work. your articles are knowledgeable.

120. Abhishek Dikshit - January 23, 2011

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?

Abhijit Jana - January 23, 2011

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

Abhishek Dikshit - January 24, 2011

Its awesome explanation. Now clear.
Thanks for prompt response.
Cheers !!!

121. Sujit Kumar Jha - January 24, 2011

Dear Abhijit ! I want asp.net dropdown list has to be load according to group wise. I want your help. Please do needful.

Abhijit Jana - January 24, 2011
122. suresh - January 25, 2011

abhishek,
Good explaianation.., that clears my doubt…
thanks for the link….

123. Rajkumar - February 2, 2011

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.

Abhijit Jana - March 14, 2011

Will try to post it out !!

124. Robin Banga - February 9, 2011

How do I register/ Participate in MS Virtual Tech Days….. How do I come to know about any up coming tech day activity.

Please send your response on robinbanga@gmail.com

Thanks
Robin Banga

125. sakthi - February 11, 2011

Hi Abhijit,

Am plan to take certification on Asp.Net 3.5,WCF(3.5),Is there dumps are available in any website,if so please share the path and advice further.

Thanks

126. basiri - February 13, 2011

Hi Abhijit Jana.
please tell me what am i doing to be professonal in asp.net.
please tell me some reference about asp.net
thank you.
i love you

127. Nikhil Kumar - March 7, 2011

friend i need some help can u tell me where i can get notes, links and book on asp.net ajax

Abhijit Jana - March 8, 2011

http://asp.net is the best location for all these. You can go with the quick hit video !

128. Ajay Kumar - March 8, 2011

Hi

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.

129. Vasantha Ramalinga Koushik - March 9, 2011

Hi Abhijit,

Its nice to get a friend like you from CP.

You can contact me at any time.

130. Amit Kumar Chakraborty - March 11, 2011

sir one of my website ( asp.net 2.0 — code base vb — database sql server ) is taking 99% cpu resources in the server. how to solve this

—–
We have logged into the server and checked the VPU utilization.

Found that 98-99% of the CPU is utilizing by a IIS worker process which is ‘w3wp.exe*32′

pioneercareer.com is the Domain using application pool ‘pioneercareer.com(domain)(4.0)(pool)’.

Resource utilization by the Process ‘w3wp.exe*32′ (Pioneercareer.com domain).

This domain is taking 100% cpu utilization.
——–

sir please please help me.

131. Anil Barnwal - March 14, 2011

Hi Abhijit,

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.

Abhijit Jana - March 14, 2011

Cheers mate !!!

132. Adhi - April 4, 2011

Dear Abhijit,

I am getting alway the HTTP 500.19 error, the error code is
after googled long… i had changed the
to

and to in the applicationHost.config. but till the same error.

let me know how can i reslove this issue, the deployment system is W2K8 and IIS 7.

Abhijit Jana - April 4, 2011

Could you please repost your question. looks like some text for configuration is missing.

On a side not, please verify the FW version of your application and the same is applied to IIS as well.

Thanks !

133. Amit - April 12, 2011

Hi Abhijit,

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?

Please advise.
Thanks.

134. 100 Useful .NET Tips & Tricks « Abhijit's World of .NET - April 15, 2011

[...] Contact [...]

135. Mangesh - May 10, 2011

Hello Dear sir,

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.

In future i really want to work with u :)

136. vennila - May 14, 2011

hi i am starting developer.i want to how to create a blog.i read ur articles..its useful to me.

137. Marcus - May 18, 2011

Hi Abhijit

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.

Do you know where I can find this?

Thanx,

Marcus

138. Daniel Mcliver - May 18, 2011

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.

139. Srinath Kaithoju - June 19, 2011

Hello Abhjith,

ur article on session is superb,it has given me a complete picturesque of session,thanking u a lot.iam really very thankful to u .have a nice time.bye

140. Atanu Goswami - July 4, 2011

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

141. kiran - July 12, 2011

Hai..
I need to develop a dynamic event calender where if we click on a event it should display as a layer.
can u suggest me how to do it

Abhijit Jana - July 12, 2011

I didn’t get your question. Could you please explain it in details.

142. Karthikeyan Anbarasan - July 13, 2011

Hi Abhijit,

My question is from the browser when we enter a url and hit the enter button what are the process happens? How the url is used to identify the server…

Can u suggest some good flow on this or any nice article to get a complete flow???

Abhijit Jana - July 13, 2011

Karthikeyan,

I think this is what you are looking for How IIS Process ASP.NET Request

If something else, please let me know

Thanks !

143. rakesh k. - July 19, 2011

Hi Abhijit , i am new in asp.net , i want to kwon about session, view state, coockies, application all state management and purpose of each, why i can use thise in application.

Rakesh .

Abhijit Jana - July 19, 2011

Rakesh,

Check out my List of article section http://abhijitjana.net/my-articles. I have many articles on the same.

144. Abhijeet - July 24, 2011

Hi Abhijit,

You are really outstanding.I like your post/articles they are great and it’s really helpful to me.

Thanks a lot..

Regards,
Abhijeet Singh Parihar

145. Abhijeet - July 24, 2011

hi

146. 200 Useful .NET Tips and Tricks « Abhijit's World of .NET - September 6, 2011

[...] Contact [...]

147. daveofgv - September 11, 2011

I think your network spy is perfect! You did a great job on creating it.

On the created, deleted, renamed and changed – how can I see which user (on a network) did it?

I am a Network Systems Administrator and need a good program (like yours) to monitor our users.

Thanks

Abhijit Jana - September 12, 2011

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 !

daveofgv - September 12, 2011

You said “There are some issue with that tool as well”. Can you give more detail? Will this hurt my Network?

Abhijit Jana - September 12, 2011

No, it won’t hurt your network, but some people reported some crashing issue, you can read the discussion on articles.

daveofgv - September 12, 2011

Crashing of the network / server or crashing of your utility?

Abhijit Jana - September 13, 2011

It’s on the utility ! :)

148. daveofgv - September 11, 2011

Just to clarify – I am using your project located:

http://www.codeproject.com/KB/cs/NetWorkSpy.aspx

149. Syed Murtaza - September 28, 2011

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.

150. Srinivas Kadiyala - October 12, 2011

Im using VS 2010 ULTIMATE,I HAVE INSTALLED SILVERLIGHT 4,AND NOW IM TRYING TO INSTALL EXPRESSION BLEND 4..its giving error.that you dont have an upgraded version.what can i do now plz give a solution?

Abhijit Jana - October 12, 2011
151. Sharath - October 13, 2011

Hi Sir,

I am Sharath. I want to learn ASP.NET and pass MCTS exam.
Which book do u suggest me to study and how to prepare for exam and get an job?
Kindly help. Your blogs and Articles are very nice.
Thanks.

152. sunitha sudheesh - October 13, 2011

EXCELLENT ARTICLE

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 ?

153. ram - October 21, 2011

hi abhijit

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

it is very urgent

waiting for ur reply

thanks in advance

Abhijit Jana - October 21, 2011

Hi Ram,
You have to make sure the worker process are running. If yes, then you should able to see the, Other wise check this ( You have to select process from all session / users )
http://abhijitjana.net/2011/08/18/no-able-to-view-all-the-running-worker-process-in-visual-studio-process-attach-window-resolution/
For Remote process debugging you have to check security settings in msvsmon.exe. I have one article @codeproject on the same

154. ram - October 24, 2011

Hi Abhijit

than q very much for giving immediate reply
thanks a lot
i will check that link and let u know

bye

take care

155. sony - November 5, 2011

Hi Abhijit

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.

Thanks

156. sourav halder - November 15, 2011

Good Work…!

157. MAD1984 - November 16, 2011

Hi Abhijit,
i want to know the procedure about to MVP award, how to register for that for codeproject.com or asp.net or any other blog

Thanks

Abhijit Jana - November 18, 2011

Hi,
Please get touch with my MVP friend Abhishek, http://www.abhisheksur.com/ . He can guide you on this.

158. smankina - November 17, 2011

Hi Abhi,

I’m a .NET trainer, I am say, your articles are simply the best. Infact I’ve been directing my students to ur codeproject pages. take care bro’

Steven,Pune

159. Eswar - November 26, 2011

Hi Abhijit,

Thanks for Session today.

You are simply Awesome..

160. Jim Prucha - December 9, 2011

Hi Abhijit,

I’m spending too much time on this and I am having so much trouble just freezing a gridview header it is ridiculous.

I came upon your site through an article from code project and then to your own site.

I am using just a gridview inside of a div and can’t get the gridheader to freeze.

I can send a striped down version of the grid/css.

Let me know your thoughts!

Thanks so much!!

Jim

====================================
Jim Prucha

====================================

Abhijit Jana - December 9, 2011

Hey Jim, Where are you getting the problem ? Did you try with the sample in CodeProject Article ?

161. Jim Prucha - December 9, 2011

Hi Abhijit,

Here is the code I am using as far as the gridview and the css

css:

.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10
}

I didn’t do the project in code project just that I didn’t need the update panel, etc. I just need to freeze the header.

Thanks,
Jim

Jim Prucha - December 9, 2011

asp:Panel ID=”pnlGrid” runat=”server” ScrollBars=”Auto” Height=”350px”
asp:GridView ID=”gvData” runat=”server” DataSourceID=”sqlDataSrc” AutoGenerateColumns=”true” AutoGenerateEditButton=”true”
HeaderStyle CssClass=”HeaderFreez” Wrap=”false”
RowStyle Wrap=”false”
AlternatingRowStyle Wrap=”false”
asp:GridView>
asp:Panel>

Here is the code. I hope it works this time.

Abhijit Jana - December 10, 2011

Jim, this should work. Which browser are you using ?

162. ram - December 12, 2011

Hi Abhijit,

Good Morning,

i’m facing the small problem with radgridview.

i’m unable to downlaod the file which is located at a folder in applicaiton path in the radgridview link btn

here is the code

protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{

if (e.CommandName == “Resume”)
{
string strDoc = (e.Item as GridDataItem)["vResume"].Text.ToString();

Download(strDoc);

string UploadFileFolderPath = System.Configuration.ConfigurationManager.AppSettings["RMResumes"];

if (strDoc != null && strDoc != “”)
{
Response.ContentType = “Doc/Docx”;

Response.AppendHeader(“Content-Disposition”, “attachment; filename=” + Path.GetFileName(strDoc));

Response.TransmitFile(Server.MapPath(UploadFileFolderPath) + “/” + Path.GetFileName(strDoc));

Response.End();
}

}
}

private void Download(string filename)
{
try
{
string UploadFileFolderPath = System.Configuration.ConfigurationManager.AppSettings["RMResumes"];

if (filename != null && filename != “”)
{
Response.ClearContent();

Response.ClearHeaders();

Response.ContentType = “application/ms-word”;

Response.AppendHeader(“Content-Disposition”, “attachment; filename=” + Path.GetFileName(filename));

Response.TransmitFile(Server.MapPath(UploadFileFolderPath) + “/” + Path.GetFileName(filename));

Response.End();
}

}
catch (Exception ex)
{
lblErrMsg.Text = ex.Message.ToString();
lblErrMsg.ForeColor = System.Drawing.Color.Red;
}
}

can u help me where i’m doing the mistake

waiting for your reply.

thanks

163. Sir Bajan - December 13, 2011

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

164. Ranjan Pal - December 19, 2011

Dear Sir,
I am building a web site. I need your help how to send email with attachment from my web site to a specific mail id.

waiting for your reply
Regards
Ranjan Pal
EmailId: ranjanpal18@gmail.com

ram - December 22, 2011

hi,
ranjan pal

pls go through this link u can get the sol for ur query.

http://csharpdotnetfreak.blogspot.com/2009/10/send-email-with-attachment-in-aspnet.html

165. T.Terlemez - December 26, 2011

Hello

I wanted to thank you for your answer at : http://www.dotnetfunda.com/forums/thread1561-must-declare-the-scalar-variable-prodimg.aspx

Many thanks, good days and works.

166. itprofs - January 7, 2012

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

Abhijit Jana - January 7, 2012

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.

Check here,how ItemDataBound works http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.itemdatabound.aspx

- What is WCF ? and how can i use it ?

itprofs - January 7, 2012

Thnx for answering !
I dont know how to do.. am using Button click Event and in there is no e.Item or command.

167. RAJU - January 8, 2012

Sir
HAPPY NEW YEAR……………..!!!!!!!!

168. Megha - February 8, 2012

Hello Sir,

I am .net developer , i have a query regarding caching.

i am using caching which is updated and reflected properly through out site. but when i am using it in Quartz scheduler it uses old data. whether i have update it or not.

and right now we have to reset the scheduler.then it will use new cached data.

so might be Quartz scheduler caching is override existing one.

Please let me know if you can solve this issue.

Abhijit Jana - February 13, 2012

Hi Megha, Could you please explain in details. It’s not clear to me.

169. Siraj Memon - March 15, 2012

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.

Abhijit Jana - March 15, 2012

Hi, from V1 the API changed. First of all you need to include Microsoft.Kinect instead Microsoft.Research.Kinect. Secondly, no more runtime class, just use
KinectSensor sensor= KinectSensors.KinectSensor[0];
Get the details of API Change from here,
http://robrelyea.wordpress.com/2012/02/01/k4w-details-of-api-changes-from-beta2-to-v1-managed/

Let me know if you need any further help.

Siraj Memon - March 15, 2012

Thanks for your support. Its working.

Abhijit Jana - March 15, 2012

Great to know. Let me know if you need any further Help !!

170. Siraj Memon - March 16, 2012

Actually I want to find out the distance of multiple person(or even a single person) in cm or mm format. Can you tell me how can I find out this?

Thanks in advance.

171. Siraj Memon - March 16, 2012

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.

Abhijit Jana - March 17, 2012

Hi Siraj,

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.

Let me know if you need additional help !!

172. Deepak Kataria - April 16, 2012

Dear Abhijit,

I am great fan of ur.
kindly tell me how to create professional shopping cart application in asp4.0 with interactive store front.

Waiting for your reply and thanking in advance.

173. Bhaskar Paul - April 22, 2012

Dear Abhijit,
I want to create a custom gridview control. and want to freeze fast 4 column. Plz help….

Waiting for your reply.

thanks

174. Thirunavkkarasu - May 7, 2012

dear sir,

all your articles are nice,it’s really helpful for me.Especially iis related articles are very nice.

now i’m presently working in asp.net(C#) technology.

i want to do MCP in web application ,where i should apply ,and which microsoft paper i should write first.how to prefer for that.i want full detail related to this. please guide me sir,

i look forward your reply

Thanks in advance

175. J. F. - May 11, 2012

Is there source code available for the Kinect project?

176. pavankumar antkul - May 14, 2012

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:

public static string sDBPath = @”.\spyDB.mdb”;
public static string ConnectionString=”Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” + sDBPath + “;Persist Security Info=False;”;

177. Jinesh - June 8, 2012

Hi sir i want do .net certification which one is best for me

178. saikrishna - June 12, 2012

Hi abhijit sir,

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…….

179. somesh - June 26, 2012

Hi Abhijit,
I have seen your articles in code project ,it’s really awesome and very helpful.I like your posts and articles.

Thanks
SOMESH ANAPARTHI

180. pavankumar - June 27, 2012

hi sir
i have seen u r spynet project but sir i am not able to understand how u r storing data in ms access data base.? pls ans me sir

181. MMadap - October 2, 2012

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

182. Sandiip chavan - October 3, 2012

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!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,667 other followers

%d bloggers like this: