15,899,126 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 cs101000 (Top 89 by date)
cs101000
23-May-15 2:52am
View
I really don't understand why 2 guys have down-voted my question and nobody is answering from too many online s. This is a question to me. It might not be a question to you. But it is definitely some conceptual thing that I'm looking for. However I was able to find it on some other forum where people are more friendly, I guess.
cs101000
12-May-15 9:12am
View
Well, I usually put the form submission logic in this 'if' block in order to make sure this is executed only when the form is submitted (and not when it is loaded for user input). I think this will make it more efficient and accurate, won't it? You are probably doing that with isset function.
cs101000
22-Feb-15 2:07am
View
:D
cs101000
21-Feb-15 14:30pm
View
Well I'm not too much familiar with the ways of attacking or exploits and etc. What I mean is that someone can abuse this to do something that I don't ever expect to be possible(other than calling this js function and changing colors, of course).
cs101000
16-Feb-15 14:22pm
View
I just found what was happening myself a few seconds before your comment (and I put my comment under main question). But your answer is accepted formally and thank you for your portability advice! Do you also go for php include paths in the same way as html?
cs101000
16-Feb-15 14:03pm
View
Well, my website has a folder for itself! So that forward slash was pointing to wammp root, instead of my website's root (that was making me confused).
cs101000
16-Feb-15 13:25pm
View
No, I'm not using '\'. Maybe my question needed the next line of code for clarification. Please compare 2 code lines. The second one is not working.
cs101000
16-Feb-15 13:12pm
View
Thank you for the answer! So I don't need htmlspecialchars or htmlentities for $_SERVER["SCRIPT_NAME"] then, right?
cs101000
16-Feb-15 12:33pm
View
Do $_SERVER["SCRIPT_NAME"] and $_SERVER["PHP_SELF"] have the same return value? If yes why the latter is vulnerable to exploits?
cs101000
8-May-13 5:04am
View
Thank you! It worked!
cs101000
8-May-13 4:22am
View
Well I had implemented this and it was working. Problem was the given SEO error which I realized it's not important in my case according to this:
http://blogs.msdn.com/b/carlosag/archive/2009/06/12/redirects-301-302-and-iis-seo-toolkit.aspx
(Enter IIS SEO Toolkit, number 3)
cs101000
7-May-13 11:34am
View
No. I am trying to do just the action in the above head element. But because I have a head element in site layout, if I put another in a child page I'd have 2 head elements in that page. So, I am trying to do that through code (and avoid html markup)
cs101000
28-Apr-13 13:12pm
View
Thank you!
cs101000
15-Apr-13 11:23am
View
I solved it myself:
(App.Current.MainWindow as MainWindow).txtUnitPrice.Text
This will get that text box from a class in code-behind.
cs101000
15-Apr-13 9:45am
View
I have tried putting the above code in xaml file and then accessing it like 'txtUnitPrice' directly or 'MainWindow.txtUnitPrice' in code-behind.
cs101000
15-Apr-13 5:22am
View
Thank you Shmuel! Why does it keep the old value, then? Can I do it in another way so that I dont have to set datacontext every time CurrentArticle is updated?
cs101000
4-Apr-13 9:22am
View
I still have the same problem. Am I missing something in code-behind?
cs101000
4-Apr-13 8:32am
View
Question improved. Would you take a look again?
cs101000
8-Mar-13 5:09am
View
Yes! Thank you for helping me again. That was the point and it was really helpful. But why chrome and firefox dont have this problem? (my vote of 5)
cs101000
11-Feb-13 14:06pm
View
I am afraid I am not using VS. As I have tagged I am using webmatrix for development.
cs101000
11-Feb-13 3:39am
View
Thanks for the reply. I changed version number in web.config file. Now I get this error instead. Would you have a look at it?
http://www.codeproject.com/Questions/543601/Accessplusisplusdenied-plus-ExceptionplusfromplusH
cs101000
10-Feb-13 11:00am
View
Thanks but even full control over _AppData didnt solve the problem
cs101000
10-Feb-13 10:02am
View
How can I set that with plesk control panel? (site is built with webmatrix)
cs101000
9-Feb-13 1:56am
View
4
cs101000
31-Jan-13 4:12am
View
Did your sites include databases? Did you have any problems with them? I have a sql CE one in my app. And by the way the cshtml files seems not to be recognized by the host as a supporting file type. (Did you have the same problem?)
cs101000
30-Jan-13 15:53pm
View
The Windows is 64-bit Windows Server 2008 enterprise edition. (not R2) Now this means that I cant configure it?
cs101000
28-Jan-13 8:52am
View
I cant pay for a new host. Im looking for a way to use my host (some kind of configuration) if there is.
cs101000
11-Jan-13 3:11am
View
Is AppState["mlen"] = 10; a var definition? What is the differance between that and this: App.mlen = 10; The second question is how can I specify a class for some inputs and then define maxlength for that class of inputs? I would prefer to do this if possible rather than using vars
cs101000
10-Jan-13 12:46pm
View
OK. Thanks anyway
cs101000
10-Jan-13 10:56am
View
I am trying to do it for the whole site not a single page. In step 3 when I right clicked on the MyTheme folder I didnt find a skin file to add between file types. And if ID cant be set then how can I categorize textboxes and give each category a specific MaxLength?
cs101000
10-Jan-13 10:56am
View
Deleted
I am trying to do it for the whole site not a single page. In step 3 when I right clicked on the MyTheme folder I didnt find a skin file to add between file types. And if ID cant be set then how can I categorize textboxes and give each category a specific MaxLength?
cs101000
10-Jan-13 4:57am
View
Thank you. But I Have 2 questions about it. 1.What if the user has turned off javascript on his browser? 2.I didnt understand the second code you provided. Is that client-side code?
cs101000
10-Jan-13 4:54am
View
Thanks a lot. That was exactly what I was looking for.
cs101000
10-Jan-13 4:26am
View
Thank you. But I dont see any skin file to add. Is there any in webmatrix when creating a new file? Does it have skin extension?
cs101000
9-Jan-13 16:08pm
View
Of course for all specific controls. For example for special categories: FirstName & Lastname, Email, Description ...
cs101000
5-Jan-13 10:37am
View
Thanks! It was really helpful.
cs101000
5-Jan-13 10:33am
View
Thanks a lot for the quick answer
cs101000
2-Jan-13 16:02pm
View
I saw this page before. But because intellisense was not supporting the defined var, I thought it was not a working solution!
cs101000
2-Jan-13 14:36pm
View
Thank you! Useful query it is.
cs101000
2-Jan-13 14:34pm
View
Thank you! I see that it's a risky practice. I will take your advice.However it's a little more than a copy-paste in my scenario :-)
cs101000
1-Jan-13 3:18am
View
Thanks a lot for the help. And what about a user-defined class? I tried to do this:
public class Person
{
public string FirstName{ get; set; }
public string LastName{ get; set; }
public Person(string strFirst, string strLast)
{
FirstName = strFirst;
LastName = strLast;
}
}
I put this in source page:
Person p1 = new Person("first", "last");
Session["p1"] = p1;
And in target page:
Person ps = (Person)(Session["p1"]);
<p>@ps.FirstName</p>
Now I get System.NullReferenceException. Its not working.
cs101000
29-Dec-12 2:49am
View
Is the authentication for the admin the same as for other members of the site in webmatirix? I have used createaccount method for creating accounts and having loggings. authentication and ... but the admin here is not a site member, just an admin with access to some pages with database administrating purposes.
cs101000
28-Dec-12 10:29am
View
I know that. So I wana initilize it with something else just to prevent the error "Implicitly-typed local variables must be initialized"
cs101000
28-Dec-12 10:27am
View
queryResult is a single row returned by db.querysingle(...) or a set of rows returned by db.query(...) where db is a webmatrix DataBase. And this var is going to be fetched for getting its columns (and rows if any) like what people do in webmatrix. I just wana initilize it with a dummy value and then use it later when executing a query.
cs101000
27-Dec-12 11:14am
View
http://www.codeproject.com/Questions/516792/transferplusapluslistpluswhenplusredirectingplusto
Regards, cs101000
cs101000
24-Dec-12 3:12am
View
Thanks. It was very helpful. And what about the sensitive information?
cs101000
23-Dec-12 3:53am
View
Thanks but Im not familiar with Ajax. just asp
cs101000
23-Dec-12 3:51am
View
One of them is created by the fileupload helper for uploading. The other one is for form submition. I have problem with managing them
cs101000
21-Dec-12 8:32am
View
What does that 'runat' attribute do? And how can I specify my condition then?
cs101000
21-Dec-12 8:29am
View
Im afraid webmatrix doesnt have a toolbox!
cs101000
21-Dec-12 4:08am
View
You mean like this:
<asp:radiobutton xmlns:asp="#unknown" name="GenderSelect" value="1" style="padding: 0px">male
<asp:radiobutton xmlns:asp="#unknown" name="GenderSelect" value="0" style="padding: 0px">female
When I use this the texts 'male' and 'female' are displayed but the buttons are not displayed at all.
cs101000
15-Dec-12 3:29am
View
Server Side
cs101000
11-Dec-12 14:37pm
View
Oh, yes! Thank you for the answer.
cs101000
11-Dec-12 3:07am
View
Padding is about the whole table but what I need is cell padding (having space around cell content not around table)
cs101000
5-Nov-12 15:15pm
View
:-| Not a good philosopher you are!! :-)
cs101000
5-Nov-12 12:56pm
View
Why is it incorrect (in principle)? The links just introduce webmatrix, not the asp.net development approach. My question is about understanding the relationship between 3 things: asp.net, webmatrix and VS.
cs101000
29-Oct-12 10:28am
View
In the third link (step 4) the article states to "Create a new project (SetupScripts)". What kind of project is this and how can I create it? Im using vs 2010 and I didnt see anything like SetupScripts
cs101000
25-Oct-12 16:16pm
View
I didnt accept anything
cs101000
25-Oct-12 5:30am
View
Deleted
Problem with serialization! (solution 3)
regards, cs101000
cs101000
25-Oct-12 5:29am
View
Problem with serialization! (solution 3)
regards, cs101000
cs101000
23-Oct-12 12:46pm
View
Can you take a look at this? I had told you a little about it before:
http://www.codeproject.com/Questions/482573/Howplustoplussave-2floadplusanplusobject
cs101000
23-Oct-12 8:54am
View
Oh, thanks a lot! Although this ObservableCollection didn't solve this code's issue but it helped me in another code very much!
best regards
cs101000
22-Oct-12 2:54am
View
Oh yes, itemsSource property is not functionning, I dont see the treeviewItems.
cs101000
21-Oct-12 5:45am
View
This approach is driving me crazy, I'm trying to use the MVVM (which is also confusing to me)
http://www.codeproject.com/Questions/480687/problempluswithplustreeviewplusloading
cs101000
20-Oct-12 6:21am
View
I think this example is not my case, I improved the question.
cs101000
19-Oct-12 3:50am
View
new xaml added
cs101000
18-Oct-12 3:19am
View
I went the straightforward way and that was successful after removing the line Description.DataContext = MainTask;
which caused a logical error and also changing the treeTasks_SelectedItemChanged to make the binding 2-way(using e.OldValue). Now there is a tedious new problem with removing a node. Would you take a look at this please? (solution below)
P.S: Solution accepted and rated
cs101000
16-Oct-12 16:04pm
View
Thanks a lot for the help
cs101000
16-Oct-12 11:47am
View
Take a look at the improved part please. I dont get any error messages.
cs101000
16-Oct-12 11:33am
View
What I inferred from that is I have to set the datacontext in main window ctor like this:
txtDescription.DataContext = MainTask;
which is not working.
cs101000
16-Oct-12 11:24am
View
I didnt get my answer and Im going to delete the previous one.
cs101000
16-Oct-12 10:04am
View
Of course!
cs101000
16-Oct-12 9:50am
View
No, I dont know how to do that
cs101000
16-Oct-12 9:10am
View
You mean changing the textbox element or other elements?
cs101000
16-Oct-12 9:01am
View
OK. The full xaml updated!
cs101000
15-Oct-12 10:02am
View
Thanks lukeer! The functionality is great but the interface is not much apealing
cs101000
15-Oct-12 5:11am
View
Thank you very much Sergey for your comprehensive answer and provided links. I got the general concept of serialization but I think I 'll be having issues with implementing it. Can I ask more about it during the implementation process?
cs101000
7-Oct-12 3:48am
View
Thank you for your information but the problem is that USD 399!!
cs101000
6-Oct-12 10:16am
View
Oh no! OK! Thank you for the answer!
cs101000
29-Sep-12 3:01am
View
Thank you for the answer. And what is the differance between Java SDKs(SE,EE,ME)? I saw many versions of those and I dont know which one to download to get started?
cs101000
12-Jul-12 9:19am
View
Im sorry, I thought Sandeep Mewara wanted to see the full error message, didnt he?
cs101000
12-Jul-12 9:16am
View
I think I did. Because I can access the database with that account (and windows authentication) by sql server management studio. The connection problem occurs when I wana connect through vc# app. And as I said in the comment of solution 1 I checked db_owner in that account, too.
cs101000
12-Jul-12 2:03am
View
done! I still get the error
cs101000
12-Jul-12 2:00am
View
http://i.imgur.com/cMQe1.png
cs101000
12-Jul-12 1:36am
View
I have an administrator windows user account that I have logged into and also want to login to sql server with that
cs101000
23-Jun-12 3:23am
View
Thank u SASS_Shooter. Im new to sql server and manipulating databases and actually its mechanism is not clear to me.
The file path is correct of course. And I dont know how to check and how to purge and how to use the fracking one! The database is located on my local drive.
whats more, they teach humility instead of debugging these days ;)
cs101000
28-Oct-10 12:46pm
View
In which language the code is?
cs101000
28-Oct-10 12:40pm
View
No! this will convert it to a string. As I mentioned I want it in long datatype.
cs101000
20-Oct-10 3:58am
View
Yes, I have designed a form using vc#. And acording to the input from the user, am going to send data to eeprom of the avr micro.
Also I have to send via nothing but the USB port.
p.s: Thank u for the answer but as u said: "writing code for microcontrollers and USB is fairly complicated" so Im looking for an easier solution.
Show More