15,901,283 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by aidin Tajadod (Top 158 by date)
aidin Tajadod
31-Jul-15 20:04pm
View
I am not sure I understood your problem, but it seems you have css issue. take a look at existing controls like jquery UI. it gives you better understanding on how to achieve what you want. by the way, why are you injecting your html code in your backend?
aidin Tajadod
31-Jul-15 19:57pm
View
What exactly is you problem? loading all the paged data together or printing?
for printing, you could create different css for printing.
aidin Tajadod
14-Nov-12 21:19pm
View
Good catch. my 5.
aidin Tajadod
31-Oct-12 17:02pm
View
Interesting, what is the name of the software?
aidin Tajadod
29-Oct-12 19:49pm
View
Deleted
Hi sandeep, MSDN says so:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa378214(v=vs.85).aspx
Also I have tried, when someting like this happens, if I continue, it does not work (can not get SNMP traps)! so I think yes, I am sure!
aidin Tajadod
29-Oct-12 19:47pm
View
Deleted
Hi sandeep, No, I am not sure, but MSDN says so:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa378214(v=vs.85).aspx
aidin Tajadod
18-Oct-12 20:28pm
View
It seems you have problem with you client.reader and not session! what is that client.reader? To me it seems each time you call reader, the pointer will go forward! is this a correct assumption? if so, you may want to read once and put it in a variable and use the variable.
aidin Tajadod
18-Oct-12 14:50pm
View
yap you are right.I mean everything I could think about and I have knowledge to do!
aidin Tajadod
18-Oct-12 12:27pm
View
I have already tried everything. and again it is not just my application.
aidin Tajadod
17-Oct-12 19:37pm
View
Thanks for the answer, Please note I have mentioned this is also happening to others. and yes I have reinstalled whole the system, I even changed my PC. it is still happening!
aidin Tajadod
2-Oct-12 15:11pm
View
Thanks for the answer, actually I found the solution! any way thank you.
aidin Tajadod
2-Oct-12 14:10pm
View
OK, I think you did not get my question! I don't have problem switching them, I do not know how to change the web config so to disable it!
aidin Tajadod
2-Oct-12 12:43pm
View
Thanks, but my question is how to configure it in web config as a disabled service?
aidin Tajadod
2-Oct-12 12:41pm
View
Thanks for the answer,but my question is how to make it disable in config file? I could not find a way to do so!
aidin Tajadod
28-Sep-12 19:04pm
View
thanks. but it is not what I was looking for! but good solution.
anyway my 5.
aidin Tajadod
28-Sep-12 19:02pm
View
my 5, Thanks.
I ended up using ICSharpcode as you recomended!
aidin Tajadod
20-Sep-12 13:43pm
View
I don't have any particular problem like this with IE8.
Please share some codes.
aidin Tajadod
19-Sep-12 18:51pm
View
do you change viewstate in you code?
aidin Tajadod
10-Sep-12 15:47pm
View
Thank you very much.
aidin Tajadod
9-Aug-12 18:35pm
View
Are you calling server side async? in this case you are able to show some PB until get the response back. in this case just wait for 2 seconds before showig you PB and if you did not get any response during this 2 sec, then show your Progress Bar.
If you aren't using Ajax, showing PB does not make sense! because your whole page is going to reload and if you show PB before loading the page, it will go away and if you show it after loading the page, then you have your data and it seems to be useless! (I have heard about sending data as they become ready in the server side, but I haven't tried it and I think it does not apply to your situation.)
aidin Tajadod
18-May-12 12:30pm
View
my 5.
aidin Tajadod
17-May-12 19:56pm
View
my 5!
aidin Tajadod
16-May-12 15:04pm
View
What have you done? what kinds of problem do you have?
aidin Tajadod
10-May-12 17:54pm
View
You are very welcome.
aidin Tajadod
10-May-12 12:33pm
View
Hi,
I can not see anywhere in your code to define grids events. Try to attach the desiger events by using AddHandler.
aidin Tajadod
10-May-12 12:25pm
View
Happy to help.
aidin Tajadod
29-Mar-12 1:09am
View
yes, your are right. I was not aware of that function! I have learnt some thing new.
Thank you.
aidin Tajadod
29-Mar-12 1:03am
View
Thank you SA for your time.
aidin Tajadod
27-Mar-12 16:59pm
View
yes, the first bit shows to continue or not. So if i want to consider signing, then I need one more bit from the first byte. so I have to reconside the algorithem!
aidin Tajadod
27-Mar-12 16:55pm
View
In most of the case (the project I am working with), is saves the space specially because we are sending the generated bytes on the net. But I would agree with you if I just wanted to save them on the files.
aidin Tajadod
27-Mar-12 16:53pm
View
good point. Thanks.
aidin Tajadod
27-Mar-12 15:14pm
View
good suggestion, thank you.
altough I cound not understand why you cast the value to long and how your code works!
aidin Tajadod
27-Mar-12 15:11pm
View
Interesting! (value & 0x7F) | 0x80 = (value | 0x80) & 0xFF ! I'd never thought about it! and you are right. but to do so, I need to change this code which probably makes it incompatible with the positive integer values! So I can not use it for other things!
any way you have my 5.
Thank you.
aidin Tajadod
27-Mar-12 14:42pm
View
you are right, writing "as is" making it easier! but in my case, I need to write an integer that might be as small as 0 and as big as int.max! so this can save me lots of space when it is small! then I tought if I can find a way to write negative numbers too, then I can chage whole thing to use the above format instead of having two different format!
aidin Tajadod
27-Mar-12 13:33pm
View
Thank SA,
It seems shorter! I can save alot for smaller value! Also there are some protocols which are using this format! (ex SNMP)
aidin Tajadod
27-Mar-12 13:30pm
View
you answer seems better than mine, I think you need to check it first if it can be found!
anyway my 5!
aidin Tajadod
11-Mar-12 13:34pm
View
Sure, Thanks again.
aidin Tajadod
11-Mar-12 12:56pm
View
I think you are right. I am not providing any thing especial! To be honest this is the first website I am making for myself and I have no Idea about those legal terms, so I am just little cautious.
aidin Tajadod
11-Mar-12 3:14am
View
Great, thanks for the links.Just one more question (possibly with no answer!): Is there anything like available also for website policies?!
aidin Tajadod
16-Feb-12 16:38pm
View
what about the code if posted. do you still getting error? are you entring the right NameSpace?
aidin Tajadod
16-Feb-12 16:22pm
View
Focus did not work?
oRichTextBox.focus();
aidin Tajadod
16-Feb-12 12:30pm
View
Zac, I don't have much experience with AjaxControlToolkit, but at the end, it should be translated to some client side script(Javascript). So although all of your pages inherits from your masterpage, it doesn not mean when you click on a page, all other page should show your message! As you know, in [normal] web pages, after they have downloaded to the client side (by the browsers), they aren't aware of what is happening on server side. it means, even if your server goes down, your clients won't underestand unless they send a request to your server! That is the reason I said you need some kinds of polling mechanism on your pages to find out what is happening on your server and act accordingly.
aidin Tajadod
15-Feb-12 20:01pm
View
you need to put a if (!IsPostBack) on your page_load and write your your inside the if. when ever you change your checkbox, your page_load runs first! so no checkbox is checked!
aidin Tajadod
15-Feb-12 19:06pm
View
No, It is not a method.
you can use it like this: foreach (string s in kortlek.Keys) { // access to the value like this kortlek[s] }
aidin Tajadod
15-Feb-12 18:51pm
View
Hi Kreagan,
I am trying to findout the logic behind a huge application.
Unfortunately I do not have any sample code to share and the real code is complicated and has many unrelated codes or needs some other parts of code application which is make it almost imposible to share. (but maybe I can make it simple and share)
aidin Tajadod
9-Jan-12 17:50pm
View
From what you say, It seems you have permission problem. To check this, If possible, I would change aspnet user to be Administrator for a very short time and the check it again. (Giving aspnet administrators privilages might be very dangerous, So do it on your test server)
aidin Tajadod
24-Oct-11 17:19pm
View
OK, you are right, your solution shows many alternatives:) (And I am not defending my method.The reason I asked your suggestion.)
Anyway thank you for your answer.
aidin Tajadod
24-Oct-11 15:31pm
View
So what if someone doesn't want to use JQ? In my opinion Solution1 is a recomendation but not a solution.
aidin Tajadod
21-Oct-11 16:55pm
View
I think you mean webproject! I could not find it in my website
aidin Tajadod
21-Oct-11 16:52pm
View
I agree, It makes the aspx files look ugly! So what is your suggestion?
aidin Tajadod
21-Oct-11 16:51pm
View
I have mentioned that: it doesn't work in JS files!
aidin Tajadod
21-Oct-11 15:19pm
View
Deleted
I think it is easier to do document.getElementById('<%= obj.ClientID%>');
Just be aware that it doesn't work in js files.
aidin Tajadod
21-Oct-11 14:57pm
View
Thank you CodingLover, Although it isn't not the same as #If ... but I learned something new.
aidin Tajadod
21-Oct-11 14:54pm
View
Mark, I am working on a website and I could not find it. ( I think what you said is not correct for websites)
And thank you guys. I don't have a plan to run my website under Debug mode. But I found a bug on production which forced me to do some researches and had to run my website under debug mode to findout the problem.
aidin Tajadod
19-Oct-11 18:39pm
View
take a look at sqlite at http://www.sqlite.org/
aidin Tajadod
19-Oct-11 18:36pm
View
I doubt if you can force your file to be opened just by your application.
aidin Tajadod
12-Oct-11 20:23pm
View
you got my 5
aidin Tajadod
12-Oct-11 19:55pm
View
My 5
aidin Tajadod
12-Oct-11 19:43pm
View
I don't see any problems communicating between clients and your server. you need to implement some sort of protocols on TCP. so every one knows how to talk to the server.
aidin Tajadod
13-Sep-11 19:22pm
View
Ok Sorry, you can say:
select ... From Table1 where CustomerID in (Select CustomerID from Table2)
Hope this can help you.
Please let me know whether I got your question or not.
aidin Tajadod
13-Sep-11 18:26pm
View
To do so you need to have some relation field. you need to some how relate your tables together. Then you can have a join or using sub queries.
for ex: Select Productid,productname,productprice from Table1
inner join Table2 on Table1.PrimaryID=Table2.ForeignID
Where Table2.CustomerID=@value . you can also look at this
http://www.deeptraining.com/litwin/dbdesign/FundamentalsOfRelationalDatabaseDesign.aspx
It seems useful.
aidin Tajadod
22-Jun-11 14:05pm
View
Deleted
Thanks for your answer. Is there any "illegal" way to do that?
aidin Tajadod
16-Jun-11 10:33am
View
Why are you doing the two first If!! I mean Session("userid")=Session("userid") !?
aidin Tajadod
15-Jun-11 13:33pm
View
What kinds of menu/tab are you using?! did you correct your code at your page_load?! I can not tell you what is wrong unless you put your code here.
aidin Tajadod
14-Jun-11 17:51pm
View
That code should be like this:
if (!Page.IsPostBack)
{
if (Request.QueryString["userid"]!=null && Request.QueryString["userid"]!="")
...
}
aidin Tajadod
14-Jun-11 17:47pm
View
Hi Aleesya, you need to Initialize sessions first.
If Not IsPostBack Then
Session("userid")=Request.QueryString("UserID)
...
Else
UserID=Session("userid");
you did exactly viceversa!
hope this can help.
aidin Tajadod
10-Jun-11 20:00pm
View
you are welcome.
aidin Tajadod
9-Jun-11 16:15pm
View
Thanks EdMan, I did not notice <b...> inside the label. you are right. thanks for your time and explanations.
aidin Tajadod
9-Jun-11 14:59pm
View
Hi EdMan, I have not tested your solution but it should work. I just did not get what is wrong with $("ID").html() ?
thanks.
aidin Tajadod
9-Jun-11 12:42pm
View
Hi Joan, I am not PHP programmer, but If you put an ID for your label (ex lblField), you can get or set it via jQuery by $("#lblField").html()
hope this can help you.
aidin Tajadod
7-Jun-11 20:25pm
View
Are you using windwos 7 client edition?
for your information, I think it has 10 maximum concurrent connections! (In XP you can increase it to 40, but I am not sure about windows 7) So in the future you won't be able to have 80 users!
aidin Tajadod
1-Jun-11 16:05pm
View
Look at this http://forums.asp.net/t/1549686.aspx/1
it might be useful
aidin Tajadod
31-May-11 13:59pm
View
Do you mean byte or bit?!
aidin Tajadod
23-May-11 18:55pm
View
Whay do'nt you use MS World ActiveX?
aidin Tajadod
23-May-11 15:01pm
View
Naeling, what Apflemuuus said is different. the invoke is another solution. I did not mean to do both!
aidin Tajadod
23-May-11 15:00pm
View
Apfelmuuus, your are right, I changed the answer! thanks.
aidin Tajadod
17-May-11 14:40pm
View
Thanks for your reply, Actually I had read that article before, but what he does is a little different from mine! anyway my problem solved! and the reason was Message Credential! I had to specify Message.ClientCredentialType =Certificate!
Thanks again.
aidin Tajadod
5-May-11 17:56pm
View
What is your problem? you need to write a webservice and put it in IIS.
aidin Tajadod
22-Mar-11 11:45am
View
Just remove those suspicious code.
aidin Tajadod
21-Mar-11 19:22pm
View
what heappen if you cast it?some thing like:
if (typeof (creatures[i] )==Human)
propertyGrid1.SelectedObject = (Human)creatures[i];
else
propertyGrid1.SelectedObject = (Beast)creatures[i];
aidin Tajadod
8-Mar-11 11:57am
View
Sorry Ahmet, I did not understand your question. Could you please describe more?
aidin Tajadod
8-Mar-11 11:51am
View
Are you sure you can reach th eparent function? I am doing something similar with no problem.
aidin Tajadod
22-Feb-11 11:36am
View
what if you ping that address by Ping command? note that your destination may not allow ping response.
aidin Tajadod
21-Feb-11 20:27pm
View
Sorry Franva for my late answer,
So If you have access to your html, try to find out what is the second url. I know nothing about HtmlAgilePack, but I think it does not run scripts in your page! does it?
And also in your code, your are getting src of image tag. so obviously if some script change your image src dynamically you won't get it.
aidin Tajadod
21-Feb-11 20:05pm
View
Hi, As I understood, you just want to parse the webpage. if this is, why do'nt you use HttpWebRequest ?
aidin Tajadod
18-Feb-11 20:12pm
View
OK, check the page, see if they change the image dynamically via js or somehting else after 5 seconds you mentioned before.
aidin Tajadod
18-Feb-11 12:53pm
View
your question is little unclear for me. what have you done? edit your question and put your code there. so we can help you better.
aidin Tajadod
18-Feb-11 12:41pm
View
This is funny but may help you!
Try sending your page information to a server side page like asp, php or ..., then make your xml and send it back!
aidin Tajadod
16-Feb-11 19:26pm
View
I need your facade class to help you.Please update your original post and add you facade class code.
as you can see in wsdl, the function sendIktsDataResponse return something as xsd:base64Binary. so it might be the problem. most of the times you can change the facade code by your self and correct the problem.
aidin Tajadod
14-Feb-11 18:22pm
View
What the error says is it is trying to reach the http://localhost:8732/... I think when you run your program not in debug mode, the above address is not exist. in this situation if you go to your solution properties and in multiple startup projects chage the order, it might solve your problem.
(It is just a guess, I can not tell you for sure unless I see your code)
hope this can help you.
aidin Tajadod
13-Jan-11 19:54pm
View
you can save them as binary in db? what is the problem?
aidin Tajadod
13-Jan-11 19:48pm
View
What is your "Please wait!" form? Is it a modal form? Have you specified the owner form?
aidin Tajadod
11-Jan-11 14:18pm
View
Thanks Keith, So I assume that your answer is NO to my question. I mean there is no way to have both auto identity as auto number column and partitioning!! :(
Actually at first I did not have auto number. But to increase the performance I changed it. Now I think I have to change to what it was first if I want to partion it!!
Thanks to all you guys.
aidin Tajadod
10-Jan-11 13:07pm
View
Thanks Manfred but it does not work! If I specify the identity column in my insert command I will get this error :
Cannot INSERT into partitioned view 'DB1.dbo.v1' because table 'DB2.[dbo].[t1]' has an IDENTITY constraint.
and if I don't do that I get this error:
Partitioned view DB1.dbo.v1' is not updatable because a value was not specified for partitioning column 'c_int'.
aidin Tajadod
10-Jan-11 12:51pm
View
Deleted
Thanks Keith, you may be right and I do not need to insert or update the old table. so I can remove the identity. but it still does not work. because of the other identity column in my new table and I need to do that. Is there any way to achive what I said with the current DB design? (It cost so much if I want to change the DB design)
aidin Tajadod
3-Jan-11 17:24pm
View
It does not flag as solved!!!!
aidin Tajadod
21-Dec-10 19:32pm
View
What is the model of your device? ( I have worked with a bunch of them.)
Some of these devices have a DLL which you can use them.Others may have their own Application and do not want their customers to use another App. so you have to findout their communication protocol by your self.
aidin Tajadod
21-Dec-10 19:24pm
View
What is your problem then? you can write your second project as a dll and refrence it to your GUI project!
aidin Tajadod
21-Dec-10 19:18pm
View
hi,
Maybe you can get the value of your text box and reinitial them after AddNew() function!
(just a suggestion)
aidin Tajadod
14-Dec-10 12:54pm
View
Write a very simple aspx page and see if it works. you can also try to diploy your App with framework 2 and see what will happen.
aidin Tajadod
24-Nov-10 15:10pm
View
Have you tried global.asax?
aidin Tajadod
23-Nov-10 12:21pm
View
Thanks Ed,
Actually the bad request in my case comes because the cookie files becomes so big.
And you are right about "The client cookie holds only session id". And my problem is exactly this. because in my situation it also keeps the data!
aidin Tajadod
23-Nov-10 12:14pm
View
Thans thatraja, but I knew about it. It does not explain my question. my problem is 'Data also saves in cookies!!!' and it is not described there!
(I also updated my question)
aidin Tajadod
9-Nov-10 19:58pm
View
So it should not be your problem.
I remember I had to create a CultureInfo with US and assign it to the current thread culture when I wanted to work with Excel! ( Sorry I do not remember the details)
aidin Tajadod
9-Nov-10 12:01pm
View
What is your system language setting? I had a weird problem before and it was for may windows language settings.
aidin Tajadod
7-Nov-10 11:14am
View
Have you corrected the name and path of the files when you want to attach?
aidin Tajadod
7-Nov-10 1:58am
View
Why don't you expand your idea about batch files and write another App to do it for you.
You have to noticed that you can not write it with .net. you need to write a small App in c++ to check the conditions and then call the setup.
aidin Tajadod
7-Nov-10 1:32am
View
Thanks, good link.
aidin Tajadod
7-Nov-10 1:27am
View
What do you mean? you want to make a demo version of your program?
aidin Tajadod
5-Nov-10 11:38am
View
So Maybe this can help you:
System.DirectoryServices.DirectoryEntry oDE;
oDE = new System.DirectoryServices.DirectoryEntry("LDAP://" + Domain ,userName,password , System.DirectoryServices.AuthenticationTypes.Secure);
aidin Tajadod
5-Nov-10 0:46am
View
Thanks SK Genius,
I am little worry about it, because it is a 24 7 windows service. and honesty I could not find any good article in the web that describe it a little more.
And about the Monitor, you are right.They are equal ( at least in theory, I have not looked at IL), But I change all my code to the lock to make sure Exit is called.
Now what about life cycle? Is it possible that OS or ... keeps the handle of a lock for performance reasons?
I mean when I call lock (object) {}, the object wont be destroyed during my App. so I am thinking maybe it is the reason for my handles leaking!!!!
aidin Tajadod
3-Nov-10 15:52pm
View
Thanks guys, I think I have to think to another way! :(
aidin Tajadod
2-Nov-10 23:49pm
View
Hi Nishant, It was not me, but thanks to tell me. I did not know that:)
aidin Tajadod
2-Nov-10 23:47pm
View
There is a control name literal. you can put in in your page like this
<literal runat="server" id="ltrMain"></literal>
then in your code:
ltrMain.text="<Script language=\"javascript\">";
ltrMain.text+="alert('ok');";
ltrMain.text+="</Script>";
aidin Tajadod
2-Nov-10 19:53pm
View
first, you forgot ";" after csText.Append("alert('test') ");
second, Could you please use literal instead of register. please let me know what happend.
aidin Tajadod
2-Nov-10 16:59pm
View
Thanks Keith,
So What FileShare.Read means? If so there is no meaning if you specify FileShare.Read Flag!!
aidin Tajadod
2-Nov-10 14:44pm
View
I did it just for test. In real it is not.
aidin Tajadod
2-Nov-10 13:25pm
View
You are right, but I could not found the problem and it seems it is a bug! ( I don't say it is .net bug, but there is a bug outside of my code and I could not find that! :( )
Although even using Win API did not solve the problem!! but now it seems that it is working better.
aidin Tajadod
1-Nov-10 20:13pm
View
thanks _Superman, Actually you are write but it does not work even for new files. ( I just call createfile once and then use writefile )
aidin Tajadod
29-Oct-10 13:00pm
View
And sorry I forgot. I have tested it with both VS 2005 .Net2 and VS 2008 .Net3.5. the same result!
aidin Tajadod
29-Oct-10 12:58pm
View
Ya, you may right. it might not solve the problem, but at least It works! :)
I am using both Excel 2003 and 2007. you have to write more that 50 lines/Second and try to open csv file with excel. after 2 or 3 times it will happen.
Please let me know if you find anything else.
Thanks again.
aidin Tajadod
28-Oct-10 17:13pm
View
Any way Thanks,
I have to remove Flush.
aidin Tajadod
28-Oct-10 16:55pm
View
I can produce it (not always but most of the times).
aidin Tajadod
28-Oct-10 16:13pm
View
No, On FileStream.Flush!! If I remove Flush, It works fine! ( I found it out recently)
aidin Tajadod
28-Oct-10 16:10pm
View
Actually I did it before! no change!
aidin Tajadod
28-Oct-10 15:56pm
View
One thing else, both notepad and excel open the file. but when I open the file with Excel I get that error in my Application not in Excel.
aidin Tajadod
28-Oct-10 15:54pm
View
I don't know exactly. I was googling for this problem for a few days and read that.
aidin Tajadod
28-Oct-10 15:41pm
View
Thanks Nishant,
I call FileStream.Flush after each writing.I have read some where that it is a bug in .net !!
I have updated my question and added my code.
The problem is still exist! :(
aidin Tajadod
28-Oct-10 14:00pm
View
Thanks,but I need it to be opened for reading by other Applications!
aidin Tajadod
27-Oct-10 20:42pm
View
It is not your answer but by default, the maximum pool size is 100. so are U sure about 300?!
(Max Pool Size=300)
aidin Tajadod
27-Oct-10 20:35pm
View
Also please specify the OS. and check if you have installed something in your OS.
aidin Tajadod
27-Oct-10 20:28pm
View
hi, check if you have any proxy in your IE.
aidin Tajadod
18-Oct-10 15:04pm
View
Thanks Voloda2,
Actually No, It might not. It is work fine with no errors and there is no service depends on my service.
The only thing I may think about is there might be a monitoring program on the server that starts my service after I stop it! It happens after 3 minutes after I stop my service!
aidin Tajadod
13-Oct-10 17:33pm
View
ya, you are right, because it is not the right way to do that. But in VB6 I have seen too many codes like that!
aidin Tajadod
12-Oct-10 14:30pm
View
you need to call Form2.controls.remove instead of frm.controls.remove !
aidin Tajadod
5-Oct-10 18:31pm
View
Hi drago,
Actually Access does not have some sql functions. I asked you because the way you write the query is a little different from sql (and I am not master on access). try replacing the ' with " in answer1. It may help you.
aidin Tajadod
3-Oct-10 23:58pm
View
What is the relation between server and server2? please send the complete error message.
aidin Tajadod
3-Oct-10 23:56pm
View
Why did you make it so complicated?
aidin Tajadod
3-Oct-10 23:52pm
View
What do you mean? what have you done? what is your problem?!
aidin Tajadod
29-Sep-10 23:00pm
View
There is actually no way to detect refresh ( Although there are some way but none of them are trustful).
So I think checking with database might be the best way.
aidin Tajadod
29-Sep-10 22:14pm
View
when you minimize your web page, do you send any thing to the server? do you handle page_resize event on your page?
It does not seem server side problem.
aidin Tajadod
27-Sep-10 17:07pm
View
What is your database? I mean is it Access, SQL or ... ?
aidin Tajadod
26-Sep-10 19:22pm
View
Deleted
What do you mean by Login? you mean SQL login?
aidin Tajadod
26-Sep-10 19:22pm
View
What do you mean by Login? you mean SQL login?
aidin Tajadod
23-Sep-10 13:02pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
aidin Tajadod
23-Sep-10 13:02pm
View
Thanks so much, you are right. I found this also in MSDN: Closing a thread handle does not terminate the associated thread. To remove a thread object, you must terminate the thread, then close all handles to the thread.
Thanks again.
aidin Tajadod
23-Sep-10 12:41pm
View
Thanks Sauro,
when I am calling closehandle I have to have the handles of the thread created before. Is it correct? and this dll is using by the windows service. by not calling closehandle for every thread what happend? Is the refrences of that thread released after the thread finished? (sorry I am beginner in c++)
aidin Tajadod
21-Sep-10 18:12pm
View
What is the version of your windows? ( I think it was just for XP).
aidin Tajadod
21-Sep-10 18:09pm
View
Thanks Richard, It was good article, but actually my problem is not tuning SQL server. I want to know if 20 Pagefault per second is normal for such a windows service or not. and Is there any way to predict expected Pagefualt for a program?
thnaks.
aidin Tajadod
16-Sep-10 12:19pm
View
Sure, but first please update your question with the new code, you might miss something else.
thanks.
aidin Tajadod
15-Sep-10 19:36pm
View
Hi jportos,
what will happen if you change your Test function to something like this:
DataTable oDT=this.table1TableAdapter.GetData();
just a comment!
aidin Tajadod
15-Sep-10 18:28pm
View
Let me know if you had any question.I had the same problems before.
aidin Tajadod
13-Sep-10 1:52am
View
Thank voloda2,
Actually my second question was not about synchronization, I was thinking how it is managed and I think I have got my answer.
Thanks for your help.
aidin Tajadod
13-Sep-10 1:39am
View
What Ruselo Rva (Next answer ) said is correct, most of the times the easiest way is not the best way, but for your question by passing TextBox you are actually passing whole object so if you change the Text you do not need to get it back! so add another parameter to your createdatagrid function and pass TextBox5 when you call it.
public void createdatagrid(int left,int top,int width,int height, TextBox oTextBox)
{
//Now you have whole textbox.
}
private void textBox5_TextChanged_1(object sender, EventArgs e)
{
createdatagrid(550, 172, 300, 200,textbox5); // I suppose that textbox5 is an instance of your TextBox
filldata("SP_PC");
}
aidin Tajadod
10-Sep-10 13:07pm
View
Hi RajXC, I have tried both OLEDB and ODBC. I had a windows service with a critical role and high trafic.I do not know why but ODBC was slower that OLEDB and some times buggy! I think using OLEDB is a better choice than ODBC unless you have to.
Thanks.
aidin Tajadod
8-Sep-10 18:40pm
View
To be honest I have not tried that before!
Why don't you try UserControl?!
aidin Tajadod
8-Sep-10 14:09pm
View
If you are working with Visual studion 2005 or later, then by default it seperates your code from your design in two files and if you see the design file youclassname.design.cs (in c#) you can see partial keywork in the first of the class declaration. you can add another file and use partial keword and have some codes there for your main class but I am not sure if Designer knows that file too! for exmaple :
public class Myclass
{
int x;
}
partial class Myclass
{
public void initial()
{
x=1;
}
}
aidin Tajadod
7-Sep-10 13:21pm
View
@voloda2:
Thanks so much voloda2,
One more question! what will happen if I do not have lock! for example there are two threads that want to access a same function( so both try to access to the same memory). I wanted to know if OS or .Net Framework creates another instance of that method or something else?! ( It is a little confusing for me! ).
Thanks again,
Aidin
Show More