|
Problem here is thread safety. Your code is not thread safe and that is the reason for all weird results. Take look at Application.Lock() and Application.UnLock() methods. These methods are designed to provide thread safety when accessing/writing values into application object.
Having said that, I don't think keeping a single instance of connection in application variable is a good idea. Open the TCP connection each time and closing when done would be ideal solution. If you think it has more overhead, then store it in cache rather than keeping in application state.
Best wishes,
Navaneeth
|
|
|
|
|
What is CSS XSS?
And how can i change port through asp.net script?
|
|
|
|
|
Hi,
Cross site scripting is used to do attacks on sites (user information) that rely on vulnerable code. For a more detailed description take a look at wikipedia:
http://en.wikipedia.org/wiki/Cross-Site_Scripting[^]
Which port do you want to change and more important why? This is not what the user expects so you shouldn't do this.
Regards
Sebastian
|
|
|
|
|
Why i want to change port is becoz my ftp port no. is 21 and my submission form is also use that port. which is vulnerable to attack. thats why i want it change.
|
|
|
|
|
|
Hi,
We are building an ASP.NET website using C#.NET language and VSTS 2008.
Would you please let me know which are all the third-party tools those can help us in the complete SDLC of this project?
Thank you..
Regards,
Karina.
|
|
|
|
|
Well, there are thousand of tools helping you to do the best within your development cycle. I suggest you to specify your question more in detail, e.g. I need a tool to do automated unit-tests.
Regards
Sebastian
|
|
|
|
|
Karina.R wrote: Would you please let me know which are all the third-party tools those can help us in the complete SDLC of this project?
What kind of tool you are looking for ? Are you talking about any project Tracking tool ?
BTW : How does this related with ASP.NET ? You should ask it on General Discussion Forum.
Thank you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
We are designing an ASP.NET website. The client asked us to have the website with Web 2.0 features.
Would you please provide any good reference material links to achieve this Web 2.0?
I need one more clarification please. That is.. May I know out of JQuery / Prototype / Other which one is the latest JavaScript framework that designers are using in designing websites?
Thank you..
Regards,
Karina.
|
|
|
|
|
|
|
Hi,
I cteated dynamic item templated in gridviw. I wat to validate from javascript . like
Col1 - col2 - Col3
50 - 60 - 40
Here i want to validate the col2 shold not leads Col1 if it so i shold produce pop up from client side...
Can any one help me...
regards
sekannak
kannak
|
|
|
|
|
Place the data in data controls within columns and place compare validators to validate the data between the two controls. Use an error summary control and set the prompt type as message box.
|
|
|
|
|
Hi,
Before start doing your logic. Can u give idea of my logic please.
Actually the grid contains two/more rows and 3/more coloumns which is dependes upon the selection changes from the Dropdownlist control.
Second one is User can enter value on the text box controls of grid view , which all textbox are dynamically created item template not static item template.
Problem:
I want to validate Second & Third text box should always less then the First Text box.
I was trying to take the Textbox id then i compared the current values less the the first textbox values or not? like such a way from Javascript ,
ctl00_ctl00_ctl01_ContentPlaceHolder1_grdSal_ctl02_txt0
so this is the id of the text box but i cannot find the values of the text box on the Onblur Event. Is the any other event to find out the text box values except Onblur,onkeypress...
can u plz ...
kannak
|
|
|
|
|
I'm not sure if I got your requirement right, so I'm rephrasing it here -
* You have a datagrid with item template
* The controls in the item template are not defined in the design time? - I don't see why you would need to dynamically add items to your item template. Even if it is needed, just place it in at design time and hide it on the server runtime. Confirm how you are placing the controls on the item template.
* The values that you wish to check are loaded based on some user selection? - All 3 values are loaded or does the user enter any values? confirm
* You wish to validate that textbox1's value is always more than textbox2 and textbox3's value.
All that you need to do is put a compare validator along with textbox2 and textbox3 and validate the value against textbox1 using the control to validate and control to compare properties.
|
|
|
|
|
i m gettin this exception while makin a connection
|
|
|
|
|
|
rajatarora wrote: i m gettin this exception while makin a connection
What is the exception message ?
You should give problem explanation of your problem so that you can get the exact answer. While you are asking question like "I am getting this exception while making a connection" - Now as a end user persprective thing about it. What connection ? What exception ?
So, please be specific.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
How can i count number of browsers running on my system by using .net application.
regards,
basha'
|
|
|
|
|
On the client computer? AFAIK answer should be no.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Are you talking about Client or Server ?
IF you are talking about Your own machine, you can just use System.Diagnostics.Process.GetProcesses and point out all the application exe's running on the system.
If you are talking about Clients who logs in to your system, you cant do that.
|
|
|
|
|
in my system only...if u have any samples code plz post it.
Regards,
Basha.
|
|
|
|
|
inayat basha wrote: in my system only
So that makes this a wrong forum.
There is a method GetProcesses in the class Process . That will give you list of all the processes running on your computer. From them, you will need to filter out the processes related to the browsers. For eg. chrome.exe for chrome browser.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
|
Hi All,
I have a cube created using SSAS 2005.
1- I need to create Roles related to this cube using ASP.net. Any help or suggestions.
2- Is it possible to develop some code that opens the window that pops up when creating a Role from SSAS and the manipulation is done through this window instead of code.
Thanks
|
|
|
|