15,887,683 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 Karthik. A (Top 200 by date)
Karthik. A
21-Jan-16 13:36pm
View
Seriously, down voter - care to say why?
Karthik. A
26-Nov-13 11:30am
View
Check this updated fiddle! - http://jsfiddle.net/76jx6/2/
Karthik. A
26-Nov-13 10:56am
View
Don't worry about it, once you replace "/some/url" to to your Url.Action call, it should just work out of the box! So unless you try, it is going to be confusing. To begin with, try to understand the sample I provided. Once you do that you will get the picture of how your page could put this to use! Read through an introduction to jquery - http://www.w3schools.com/jquery/jquery_intro.asp and then get back to my example! Let us know how it went!
Karthik. A
26-Nov-13 10:49am
View
You can always replace "/some/url" w/ @Url.Action. Do you see e.preventDefault in the jquery part? When a user clicks on the link, it prevents the default action (which is redirecting the user to the delete page/action) and then displays a dialog. If and only if the user clicks on "Yes", the actual action is carried out!
Karthik. A
7-Nov-13 14:45pm
View
There are 2 possibilities - One, if Page A has to present dynamic content to be presented, you can use ajax to reload parts of data. Two - if there is just static information, why would you want to update/refresh the page, unless the user wants it to be refreshed? Simplest possible way to refresh entire page without user action is using meta tags - http://www.w3schools.com/tags/att_meta_http_equiv.asp. But I really do not advice using this! May be you can elaborate your question to get pertinent answers!
Karthik. A
7-Nov-13 14:41pm
View
Thank you!
Karthik. A
20-Sep-13 12:09pm
View
I second @Tadit Dash, your question is just too broad in scope to answer.
Karthik. A
20-Sep-13 11:56am
View
Your question is unclear, can you elaborate?
Karthik. A
8-Aug-13 23:35pm
View
Reason for my vote of 5 \n Nice tip! my 5! You can use caniuse.com to check browser support for various html 5 elements/attributes!
Karthik. A
23-Jul-13 9:40am
View
Reason for my vote of 5 \n Nice article! As @Maimonides suggested I would change the title and if possible add more information! Nevertheless have my 5!
Karthik. A
12-May-13 2:17am
View
I will delete it, no worries :) thanks!
Karthik. A
12-May-13 2:12am
View
Hmmm, you must be right, that's why I added probably. You are right, I shouldn't have posted this answer without checking/ verifying my answer. Would you mind if I delete it ?
Karthik. A
1-May-13 18:59pm
View
Looks like your application attempts to load something that requires "full trust". Thus, this is most likely some trust issue.
Karthik. A
18-Jan-13 11:18am
View
:)
Karthik. A
11-Jan-13 15:35pm
View
Your question is too vast. What is that you are trying? Expand your question. If you want data from 1 application to another, for example, you can just expose web services. Elaborate, you will get more opinions.
Karthik. A
11-Jan-13 10:27am
View
I second Sergey, Or are you referring to (/ what you need is a) Content management systems [http://webmasterformat.com/blog/top-asp-net-cmss]?
Karthik. A
3-Jan-13 16:51pm
View
Select statement w/in single quotes seems wrong, if that's not what you want to insert. Why don't you try running the query in ms sql server before using it in your program ?
Karthik. A
3-Jan-13 16:07pm
View
Okay, so what's the error ?
Karthik. A
2-Jan-13 16:17pm
View
Why not simply use different browsers for different users, if this is only for testing purposes?
Karthik. A
31-Dec-12 0:43am
View
No worries! This is fine too, if you have comments about an answer you have to comment against that. You will get used to all these stuff as you get acquainted w/ CodeProject! Welcome by the way!!!
Karthik. A
31-Dec-12 0:11am
View
Thanks Salah9, happy to be of help! But, you have to post this as a comment to my answer instead of posting it as a solution !!
Karthik. A
31-Dec-12 0:09am
View
Thanks !
Karthik. A
30-Dec-12 19:09pm
View
I don't think there is a shortcut to success :) If there is one every one of us will have a company under our name!!! Get started by buying a book and downloading an IDE such as Eclipse!
Karthik. A
29-Dec-12 21:45pm
View
I posted those links only to point you to xml-rpc. Once you have the api key you could consume it using asp.net. Just go through those links and read about consuming php/xml-rpc services in .net.
Karthik. A
19-Dec-12 23:57pm
View
Sorry about that... Can you try using fiddler to see what requests are being issued ? That might tell you something. It gives you a lot of information like what type of request it is, whats the data posted and so on.
Karthik. A
18-Nov-12 21:16pm
View
You should probably post in the corresponding article... marked for delete.
Karthik. A
19-Oct-12 10:30am
View
Should be an answer! It IS indeed as simple as that!! +5!
Karthik. A
12-Oct-12 10:49am
View
Sorry to hear that. Can you post the razor markup too, so that its easier for us to help? You just the jquery/jscript related to your page now... Especially , you have FirstName: @Model.reser_fname -- try changing it to a div and also add a hidden value. Something like this:
First name: <div id="fname">@Model.reser_fname</div>
<input type="hidden" id="modified-fname" />
Now on save you can modify both the fname div and the modified-fname hidden field so that the modified information can also be sent to the controller's action method. Elaborate on your qn. and one of us could help!
Karthik. A
11-Oct-12 9:03am
View
Thank you Sergey!
Karthik. A
4-Oct-12 12:24pm
View
Did you try inspecting the code? Do you see the iframe tags in it ? Also use fiddler and see if there are requests for the page you load in your iframe. The url might be wrong or may not be returning any data. I guess fiddler will be of great help to you.
Karthik. A
3-Oct-12 22:46pm
View
What do you mean by "you have to navigate few times" ? Check the credentials sent to the server. You can use IIS logs to see whats being sent as the credentials (just the user name though). And does the remote server have asp.net mvc (4) installed ? If not it will normally fail with not being able to load System.Web.Helpers.
Karthik. A
24-Sep-12 22:45pm
View
Post what you have done so far. As a side-note/hint, read about asp:Repeater control.
Karthik. A
18-Sep-12 9:23am
View
Thanks to all! As Sandeep already posted a solution and it's also accepted, I am going to let it pass! Thanks again!
Karthik. A
17-Sep-12 15:32pm
View
They serve 2 different purposes in a way. Master page - setup the layout for the entire project, like, where a menu appears, the styles for various elements etc. User controls - Say you want to provide an information about a product which has to be displayed in 2 pages, then, you could create a user control. So, it all depends on your needs. Expand your question to include that information and looking in to a tutorial that explains these things will be of great help to you...
Karthik. A
17-Sep-12 13:58pm
View
That's the whole point of using a master page isn't it? To share stuff like header / footer / menus etc so that you don't have to do the same for every content page. Or, what do you mean by a static master page? Can you explain what you intend to do with that ?
Karthik. A
15-Sep-12 10:07am
View
You will get values in the FormCollection, only if a "form" is submitted (using form tags and submit buttons). In your code you are just "redirecting" to a page. Check out the basics of mvc 3 / html.
Karthik. A
13-Sep-12 16:08pm
View
Do you think anybody would be able to paste a complete project that does what you want here? What's wrong with links? Did you search for sample projects online?
Karthik. A
11-Sep-12 11:33am
View
Then, what about this option? There are 3 text boxes and 3 list boxes. When a user searches using the text box, you display a filtered list based on the user's search criteria. When the user selects an item, add it to the corresponding list box. Finally, on submit you just have to consider the items in the 3 list boxes which contains the selected items. You could also provide the ability to remove items from the list box! Tonight, I could probably put up a sample if you want! Let me know what you think about this idea!
Karthik. A
10-Sep-12 12:17pm
View
Can't you show the retweets "on-demand", say, when the users clicks on "view re-tweets" link / button ? By this, you don't have to fetch all the re-tweets on load and get them only when needed?
Karthik. A
10-Sep-12 11:46am
View
Wow, looks like the items in every list box is extremely high. Can't you replace it with something like a "searchable" text box, if you intend to let the user choose only 1 item ?
Karthik. A
10-Sep-12 9:43am
View
Can you elaborate on ".NET 4.0 don't support frames" ? .Net 4.0 does not stop you from using frames as its up to the browser to understand that you are using frames and display them. There is also a tag called <noframes /> that you can use to indicate to users that their browser does not support, which they wont see if their browser supports using frames. In the current age it is not just recommended. Are you getting any script errors or code errors ?
Karthik. A
7-Sep-12 12:15pm
View
From the sample it looks like this is a content page - ContentPlaceHolderID etc are used
Karthik. A
5-Sep-12 11:25am
View
+5 for your answer :)
Karthik. A
5-Sep-12 10:48am
View
Is 9.bmp within folder "2" or "4" ? If its within "2", your output is correct. If you want to sort with just the file name, you may implement a custom sort using the IComparable interface. Add some information about your requirement and 1 of us can answer your questions.
Karthik. A
5-Sep-12 10:14am
View
Perfect, You should have posted this as an answer!
Karthik. A
31-Aug-12 11:31am
View
You are welcome Ravi !
Karthik. A
30-Aug-12 13:12pm
View
Your question isn't clear. But can you try clearing your browser's cache ? I guess your browser still has the old javascript file...
Karthik. A
30-Aug-12 11:45am
View
Ah, exactly the same issue I was wondering about, as to why google messed this up (rss)!!!
Karthik. A
30-Aug-12 9:48am
View
Hi Ravi,
You are welcome! Btw, you should post this as a comment to my answer! Can you pls. delete this solution and add your comment to my answer? Thanks!
Karthik. A
30-Aug-12 9:42am
View
Changing @model Surveys.SurveysServiceReference.Survey to @model SurveysService.Models.Survey should take care of that issue. You just have an incorrect namespace in your view.
Karthik. A
30-Aug-12 0:47am
View
why don't you look in to jquery ui tabs - http://jqueryui.com/demos/tabs/?
Karthik. A
27-Aug-12 0:31am
View
I guess you just have to go through some mvc tutorials at www.asp.net/mvc. When you create a project in Visual Studio.Net, using the "ASP.Net MVC 2 Web Application" template (not an empty mvc 2 web application), it will create a full fledged example with login user controls (that's your hint, user controls). Check it out!
Karthik. A
26-Aug-12 1:24am
View
The jquery I've written will work for any N x N table. Try it out by adding a 4th & 5th column and a 4th & 5th row to that example!
Karthik. A
16-Jul-12 16:28pm
View
Can you elaborate "Now on click of Button I want to find all the radio button elements" ? Using jquery/javascript or in the action method?
Karthik. A
16-Jul-12 14:56pm
View
For the action method that handles the http post, see if the name of the drop down lists (in the html generated) matches.
That is:
Assuming the Html.DropDownList generates a select with name as "Country" and "City" (seeing the page's html would give you the exact value, but from prop. name looks like its what I've said), your action method should be
[HttpPost]
public ActionResult PostAction(string Country, string City)
{
...
}
If you could also post the code for your controller one of us could exactly pin-point the issue!
Karthik. A
16-Jul-12 14:47pm
View
I guess posting the entire code might help. To begin with, are you sure that you are incrementing "idx" ? And have you considered using jQuery instead of writing the same code with very little variations (onclick) for every browser ?
Karthik. A
12-Jul-12 16:07pm
View
Which version of IE are you trying this? I tried using chrome & IE 7/8/9. It works in all 3. Just that its messed up in IE 7, but I really wouldn't bother. I used this fiddle to verify - http://jsfiddle.net/VzAk7/
Karthik. A
10-Jul-12 10:59am
View
Can't you save the data user enters in to the database already using $.ajax and then just append this row to the table? Because in order to send an entire table, you may have to maintain a whole lot of hidden fields. I would do something like this:
1. Have a url /home/add/ which gets 2 values
2. Call it using jQuery's $.ajax passing the value of these 2 text boxes
3. The "Add" method would return json indicating the result of add
4. Then use jquery again to add it to the table.
5. By this way you eliminate the 2nd button altogether.
6. Then when you are re-displaying the page, you pass the values in the db as the model
Hope this helps!
Karthik. A
9-Jul-12 21:57pm
View
Deleted
If you could elaborate on your requirement, one of us could help!
Karthik. A
9-Jul-12 21:55pm
View
What is your requirement exactly? I cannot think of a reason you would want to do this. If you could elaborate, one of us could help!
Karthik. A
9-Jul-12 21:52pm
View
Only a form field (like textbox, textare etc) will be posed back using a formcollection. And MVC supports automatic model binding.
// txtName is a text box in the form
public ActionResult Index(string txtName)
{
return View();
}
A table is just html and that WON'T be posted back in a formcollection.
Karthik. A
9-Jul-12 21:45pm
View
That's an interesting way of implementing this Sir! Not sure I have heard of self-hosting wcf in a windows service. Will check it out!
Karthik. A
9-Jul-12 15:41pm
View
An internal server error could occur for numerous reasons like - incorrect database server, incorrect username / password etc etc. The best way to approach this would be to find out what's the actual error. You have said that you could see the 1st page, but the error happens after you enter the user name/ password. What type of authentication does your web application / site use ? See if it's setup correctly in IIS under the "Authentication" module. Also, go to the server and visit your page there, instead of from a machine that just acts as a client. If you use the server itself, it will give you much more information than a useless "500 internal server" error. If you could do that and see the actual error, it might be helpful If you have qns. post it here and one of us will help! Its difficult to help w/ just the general 500 error...
Karthik. A
9-Jul-12 15:39pm
View
You are welcome! An internal server error could occur for numerous reasons like - incorrect database server, incorrect username / password etc etc. The best way to approach this would be to find out what's the actual error. You have said that you could see the 1st page, but the error happens after you enter the user name/ password. What type of authentication does your web application / site use ? See if it's setup correctly in IIS under the "Authentication" module. Also, go to the server and visit your page there, instead of from a machine that just acts as a client. If you use the server itself, it will give you much more information than a useless "500 internal server" error. If you could do that and see the actual error, it might be helpful If you have qns. post it here and one of us will help! Its difficult to help w/ just the general 500 error...
Karthik. A
9-Jul-12 15:06pm
View
I second this, there could also be a better way.
To add, you could use the setTimeout() method of javascript, which is a pretty clean way to do this or use the <meta> tag in your page like, refer to this wiki page - http://en.wikipedia.org/wiki/Meta_refresh
Karthik. A
9-Jul-12 15:01pm
View
Can you tell us what is your requirement? May be there is an easier way to achieve what you wish to do!
Karthik. A
9-Jul-12 14:58pm
View
You cannot just call a windows service from your web application. A windows service is essentially controlled by the operating system under which it runs. Depending on the design of the service of the service, it may run at a specific time or at fixed intervals. So, One way I could immediately think of to pass data between the 2 is writing the user defined to a database from the web application. Then when the service runs, it could check the database to see if it has to take care of anything and then act on that (in this case it would be the user defined data).
Karthik. A
2-Jul-12 21:28pm
View
By saying "i am not getting any values on page" do you mean the result is not "visible" on the screen? Check out the following:
1. Have you specified the "UpdateTargetId" in your ajax options?
2. If you are using MVC 3, you should include jquery.unobtrusive-ajax.js. Have you done that ? [Refer - http://stackoverflow.com/questions/4973605/ajax-actionlink-not-working-response-isajaxrequest-is-always-false]
If this doesn't work, post your code, one of us will help you!
Karthik. A
26-Jun-12 15:53pm
View
Check out this link for a couple of ways to create a backup using command line / a script. If you are looking for more inputs apart from the step of taking a backup, update your question.
Karthik. A
25-Jun-12 13:42pm
View
Thanks Sandeep!
Karthik. A
22-Jun-12 10:15am
View
In case you are just asking how to access this element using jquery, you can use this
$('input[name="image"]')
to access the element. Hope this helps!
Karthik. A
21-Jun-12 22:17pm
View
Is your question about web forms or windows forms? You have tagged your question with jquery, javascript etc, but you also talk about windows forms. If it's a web form, you can use the .change() event to achieve what you want.
Karthik. A
19-Jun-12 17:07pm
View
Then, I would definitely advice using 2 constraints.
Karthik. A
19-Jun-12 17:06pm
View
You're welcome and no, I meant adding a constraint to the Create method - T and U, as I mentioned in an earlier comment.
Karthik. A
19-Jun-12 16:47pm
View
You are welcome! I wouldn't say it's bad. But if it seems like you are doing the same for various other types (w/ nested types), I would advice having a generic method w/ 2 constraints. Because now you have tied the concrete type to your repository which is not that best method to do this in my opinion. As you are saying that you cannot have multiple constraints, I cannot think of any other better way right away.
Karthik. A
19-Jun-12 16:37pm
View
Try this SO post, I guess you are looking for this -
http://stackoverflow.com/questions/6254213/how-do-i-turn-off-client-side-validation-in-mvc-3
[
^
]
Karthik. A
19-Jun-12 16:31pm
View
Not sure what you mean by that... what's not comfortable?
Karthik. A
19-Jun-12 16:31pm
View
You don't even need the derived class, if you have this method in the base class, isn't it?
Karthik. A
19-Jun-12 16:26pm
View
You could have 2 constraints and have the method in the base class itself. Like this:
public virtual void Create<t,>(T tItem, U uItem)
where T : class, new()
where U : class, new()
{
throw new NotImplementedException();
}
Now you can attach the 2nd item and add the 1st item.
Karthik. A
19-Jun-12 16:22pm
View
You are totally missing the point - an override of a constrained method should also be constrained. Only when you call this method, you get to pass a concrete type. Like, instance.Create<Product>(product);
Karthik. A
19-Jun-12 16:20pm
View
This is not an override at all. Any override to Create must also be generic. Once you start having concrete item, there is no point overriding.
Karthik. A
19-Jun-12 16:06pm
View
Pls. check my reply for your comment.
Karthik. A
19-Jun-12 16:06pm
View
Exactly, Wes Aday and my answer's are just stubs. You just have to remove the call base.Create<t>(item) and add your own implementation.
Karthik. A
19-Jun-12 16:03pm
View
Sorry about that. But are you saying you get an error if you do this? You cannot just override a generic method with a concrete type, if you are trying to achieve something in the effect of what you have posted. Can you pls. elaborate your issue?
Karthik. A
19-Jun-12 16:01pm
View
Yes, I recommend qtip !
Karthik. A
19-Jun-12 15:58pm
View
I don't see anything in your controller that assigns a List<SelectListItem> to ViewData["Contacts"] or TempData["Contacts"]. Probably the data you store in either of these 2 is wrong. And I guess @Html.DropDownList("ContactID", (SelectList)(ViewContext.TempData["Contacts"] ?? ViewData["Contacts"])) should read as @Html.DropDownList("ContactID", (List<SelectListItem>)(ViewContext.TempData["Contacts"] ?? ViewData["Contacts"])). Can you post your full code from the controller?
Karthik. A
19-Jun-12 14:21pm
View
I would say Google docs (now google drive) is the way to go. I would go with an existing solution instead of even trying to develop one from scratch, because this is not just something that could be accomplished within a very short period of time.
Karthik. A
16-Jun-12 17:37pm
View
Check out this link. Guess you are expecting to get something like this - http://forrst.com/posts/Detect_scroll_at_bottom_with_jQuery_Endless_scr-hEA
Karthik. A
13-Jun-12 16:52pm
View
What is stopping you? Post some code - what you have and what you expect and also re-tag your question, based on if the project is in webforms / mvc.
Karthik. A
12-Jun-12 23:10pm
View
I have added an answer, check it out...
Karthik. A
12-Jun-12 22:20pm
View
Looks like you are using the correct dataType parameter. What is the error thrown? Can you update / comment w/ the error that's thrown?
Karthik. A
12-Jun-12 22:17pm
View
What do you mean by web-grid? Is it a 3rd party component? Some code would be helpful. With the current state of the question, I would say you can jquery to highlight the row. For ex. on a high level, if the edit button is w/in a cell, you can do something like this (not verified) $('.btnEdit').click(function(){ $(this).parent().parent().css('background-color','Green'); });
Karthik. A
12-Jun-12 22:08pm
View
You could have posted this as answer! Apart from this, also look into "UpdateMode" property of UpdatePanel
Karthik. A
12-Jun-12 21:56pm
View
You should be able to narrow down the issue using the developer tools for your browser (ctrl + shift + i for chrome, F12 for IE, etc -- get google to help you w/ this). It will point you to the line where the error is happening. After that, if you can post the js code pointing out the line in question, one of us can help you.
Karthik. A
8-Jun-12 9:28am
View
I am not sure I understand. Can you elaborate? Which variable are you referring to?
Karthik. A
7-Jun-12 12:29pm
View
I noticed that you said javascript, but I have used jquery in the sample implementation... if using javascript, you may have to do the same in body.onload using the javascript way of reading / setting values.
Karthik. A
7-Jun-12 11:58am
View
You build the html from the properties you pass right? You will have to use them. For example, say are passing 3 values to the user control and you display it as <div>value 1</div><div>value 2</div><div>value 3</div>, attach some class to it like <div class="values">value 1</div><div class="values">value 2</div><div class="values">value 3</div>. Then using jquery you can get the values as $('.values') - which will be an array of 3 values. If you post the content of your .ascx file, I can help, looking at the html generated.
Karthik. A
4-Jun-12 11:44am
View
Check whether you save the instantiated class in the session! Like Session["some_key"] = obj; where obj is the instance you created and populated with the user name and other info. Copy/Paste your Global.asax.cs "Session_Start" so that 1 of us could help...
Karthik. A
21-May-12 13:51pm
View
Did you start this straight away or did you have some time to have a formal introduction to MVC ? Try this link - http://www.asp.net/mvc . This acts as a very good starting point for asp.net mvc.
Karthik. A
16-May-12 22:33pm
View
Thanks :) You are welcome!
Karthik. A
16-May-12 22:30pm
View
Your question does not make any sense because there is not question. Pls. rephrase...
Karthik. A
16-May-12 21:52pm
View
Post some code so that we could help...
Karthik. A
16-May-12 14:42pm
View
Did you try specifying a width on the columns that you don't wish to expand?
Karthik. A
15-May-12 11:32am
View
I guess you need to elaborate so that somebody could answer your question. Are you saying you want your mvc application to automatically notify something to an iphone application? I guess that is not possible (afaik). The iphone application has to contact this mvc application regarding what stuff it has to show a notification for. Isn't it?
Karthik. A
14-May-12 9:31am
View
Instead of new { ID = Model. Finance.ID } can you try passing in a dictionary<string,object> ? Like new Dictionary<string,object> { {"something", 5 }} ? I guess this should fix your problem.
Edit - added mvc 3 tag.
Karthik. A
14-May-12 9:23am
View
Are you sure you have the correct action name in the route defined in Global.asax ? If possible pls. update your question with the changes you have done, so that I could find out the mistake.
Karthik. A
20-Mar-12 20:53pm
View
For such tasks, jquery is the way to go! I am not saying you should not do this in pure javascript, but in case you need a solution for this in jquery you would really get a lot of answers, me included! if you are unaware of jquery, have a look at it!
Karthik. A
28-Feb-12 12:03pm
View
Fixed formatting issues.
Karthik. A
21-Feb-12 23:37pm
View
I guess the question is about a web forms page and not a mvc page. User is able to redirect to the web form page, but there are errors.
Karthik. A
17-Jan-12 11:08am
View
Deleted
You always have the option of improving upon a tip. Is this reason enough to give a vote of 1? The intention in this case was to introduce how downloads could be tracked. Not to provide a complete solution of how your question could be done. Anyway, thanks for your feedback. May be I will improve the tip some time...!
Karthik. A
25-Nov-11 13:21pm
View
Added this to the question...
Karthik. A
25-Nov-11 13:16pm
View
Okay, but what's the error?
Karthik. A
8-Nov-11 13:37pm
View
removed txtspeak...
Karthik. A
4-Oct-11 9:36am
View
Deleted
Reason for my vote of 5
Good tip (in fact this could be an article by itself)!
Karthik. A
31-Aug-11 9:14am
View
Deleted
This should really be a comment...
Karthik. A
18-Aug-11 0:12am
View
thanks!
Karthik. A
18-Aug-11 0:05am
View
This is also a good option, apart from my answer...
Karthik. A
29-Jun-11 9:19am
View
Deleted
@supreetkaurbawa - I am not sure I am following your question. In case you are asking why I named my controller as "UserController", this is just a high level example of how you could use the route debugger. In case you are asking how asp.net mvc works in general, refer this link - http://blogs.charteris.com/blogs/gopalk/archive/2009/01/20/how-does-asp-net-mvc-work.aspx. Else pls. post your question in detail and I will try my level best to answer them!
Karthik. A
27-Jun-11 12:32pm
View
edit - added pre tags for code blocks
Karthik. A
24-Jun-11 15:58pm
View
You could improvise the About() method as About(string datatype)
{
return JsonResult(..); //or whatever you require
}
Karthik. A
24-Jun-11 15:53pm
View
PS - Edited the tags
Karthik. A
23-Jun-11 10:56am
View
Added pre tags for code blocks
Karthik. A
15-Jun-11 11:00am
View
Deleted
PS - Moderators, for the images I have linked this tip/trick to imageshack. If this is not permitted please do the needful. Thanks!
Karthik. A
15-Jun-11 9:52am
View
Or just use "for (count = 0; count < links.length; count++)"
Karthik. A
2-Jun-11 11:22am
View
excellent answer! my 5!
Karthik. A
2-Jun-11 9:34am
View
So what's your question?
PS - Added pre tags
Karthik. A
21-May-11 9:43am
View
Check out this link - http://msdn.microsoft.com/en-us/library/system.datetime.aspx
You will have to use a TimeSpan object and calculate total seconds
Karthik. A
19-May-11 17:04pm
View
Added pre tags
Karthik. A
18-May-11 15:29pm
View
Deleted
This is not an answer. Please delete it and add it as a comment. Thanks!
Karthik. A
18-May-11 0:30am
View
nice answer, good that you included real life views, my 5!
Karthik. A
17-May-11 11:40am
View
Probably because of XSS - http://en.wikipedia.org/wiki/Cross-site_scripting ? Just guessing.
Karthik. A
16-May-11 15:04pm
View
Formatted for readability
Karthik. A
15-May-11 20:47pm
View
Hmmm, that's surprising. I have been using their support forums for over a year. If you expect your questions to be answered in an hour, i don't think that's going to work.
Karthik. A
15-May-11 16:36pm
View
Best thing to do would be to approach devexpress support, they are extremely quick in responding to questions - http://www.devexpress.com/Support/Center/.
Karthik. A
13-May-11 16:59pm
View
Edited pre tags
Karthik. A
13-May-11 11:03am
View
Check out the "Simplified Multithreading" section in the link above. The thread that wishes to update the UI must check the "InvokeRequired" property and if its false, it will invoke a delegate to do the task.
Karthik. A
13-May-11 11:02am
View
Yes this is technique that would help you achieve the same. When your look run 10,000,000 times, it cannot just try to access your UI elements. It has to be taken care of by the thread that handles this task. You are saying that you are doing this in a thread, but this thread 'cannot' / 'should not' access UI elements. It should just pass a message to the UI thread to do this. Sorry if i am confusing you.
Karthik. A
13-May-11 10:59am
View
@Oliver Leverey - thanks!
Karthik. A
13-May-11 10:58am
View
See my comment in my answer...
Karthik. A
13-May-11 10:03am
View
Actually, the first link (MSDN) does something on the similar lines, as you do in your answer. Anyway, you are welcome!
Karthik. A
10-May-11 16:23pm
View
Spot on, you are right!
Karthik. A
10-May-11 13:50pm
View
Your question is pretty unclear. You have assemblies to exactly solve this problem. So that you need not copy over the source files (for ajaxcontroltoolkit) in every project. But why do you want the source files and copy it over? Of course, you could get the source from the ajax control toolkit website. But I don't see your point here.
Karthik. A
10-May-11 12:52pm
View
Formatted the question.
Karthik. A
6-May-11 22:03pm
View
Formatted the question
Karthik. A
6-May-11 16:18pm
View
I presume you are referring to the auto complete extender from ajax control toolkit...
Karthik. A
5-May-11 12:25pm
View
what's the error?
Karthik. A
5-May-11 12:17pm
View
no problem, you are welcome!
Karthik. A
5-May-11 10:18am
View
I guess you are trying to access DropDownList2 before populating it
Karthik. A
5-May-11 10:13am
View
I have created a sample, am posting it as another answer, check it out.... try to understand how it is done and try it yourself. Of course you could spend your time figuring this out, but seeing others code could also be a good exercise.
Karthik. A
5-May-11 10:05am
View
Is the second drop down populated after you select an item in the first drop down?
Karthik. A
5-May-11 10:04am
View
Deleted
Is the second drop down populated after you select an item in the first drop down?
Karthik. A
5-May-11 9:27am
View
Formatted the question
Karthik. A
5-May-11 7:35am
View
I second Oshtri Deka - With the help Flash Media Server, you should be able to accomplish serving music from your server too (in case thats a requirement in addition to playing files from the user's machine)
Karthik. A
4-May-11 20:07pm
View
If you press Ctrl + F5, you would see "Press any key to continue...". If you press F5, it won't. To get that when pressing F5, just add Console.ReadLine(); after Console.WriteLine("Ditt resultat är: " + KastaTärning(AntalKast));
Karthik. A
4-May-11 17:30pm
View
Why do you use x==AntalKast? any particular reason?
Karthik. A
4-May-11 17:28pm
View
Try this:
static int KastaTärning(int AntalKast)
{
int Resultatet = 0;
for(int x = 0; x<=AntalKast;x++)
{
Random randomerare = new Random();
int TarningsResultat = randomerare.Next(1, 6);
Resultatet += TarningsResultat;
}
return Resultatet;
}
Karthik. A
29-Apr-11 22:26pm
View
@SA - nice one!!!
Karthik. A
26-Apr-11 16:53pm
View
Removed text speak
Karthik. A
20-Apr-11 22:34pm
View
Deleted
But you do realize that they are not the same right? Because Thread.Sleep relinquishes the cpu, your method doesn't. Just wanted to point it out!
Karthik. A
20-Apr-11 11:36am
View
Interesting - Check out this approach for passing complex types to a WCF operation contract - http://stackoverflow.com/questions/1709781/wcf-rest-parameters-involving-complex-types
Karthik. A
20-Apr-11 11:35am
View
Nice question, but why would you need to pass a complex object to a page? Normally, a page takes in simple parameters(POST/GET) and returns simple or complex types. Can you provide an example?
Karthik. A
19-Apr-11 9:47am
View
you are welcome!
Karthik. A
19-Apr-11 1:45am
View
Nice answer and link!
Karthik. A
19-Apr-11 1:44am
View
Hmmm, may be, it is, you are right ;) I always wonder about the effectiveness of such books though ;)
Karthik. A
19-Apr-11 1:44am
View
Deleted
Hmmm, may be, it is, you are right ;) I always wonder about the effectiveness of such books though ;)
Karthik. A
19-Apr-11 1:41am
View
You need not create a scheduled task from the console application. Its the other way around - you create a scheduled task that runs your console application at the specified intervals. It would be the duty of the console app to access the database get the information on what needs to be done and do it. Refer to this link for an example - http://www.iopus.com/guides/winscheduler.htm. A windows scheduled task expects some thing that it could run - it could be anything, say, an executable, batch file, etc etc - with or without parameters.
Karthik. A
19-Apr-11 0:53am
View
Your question is too open ended. Try to split your questions. Also your questions does not have a "right" answer. Being specific would get you some answers...
Karthik. A
19-Apr-11 0:42am
View
I missed something, yes, multiple libraries should also be fine and thats one of the important selling points nowadays - code sharing! ILMerge is also helpful like in the case I said in my earlier comment...
Karthik. A
19-Apr-11 0:34am
View
@SAKryukov - I found it to be useful in a couple of projects I worked, as it involved deploying my application to multiple machines and they didn't want to deploy/manage multiple files.
And regarding the OP, yes I guess so too. That's why I added the edit. He would be better off adding it to the same project too. And thanks for the 5!
Karthik. A
18-Apr-11 19:19pm
View
You are welcome. A .Net DLL is one that has a CLR header. I have updated the question with a link and some explanation. You are saying that you wrote your dll in C#, so it should be a managed (.net) dll. So this certainly is an option for you!
Karthik. A
17-Apr-11 2:20am
View
I guess -> sjf = shortest job first...
Karthik. A
14-Apr-11 22:51pm
View
Why is it so complicated? Keep track of the number of photos uploaded by the user (add/delete), and when you load the page for them to upload, see if the photos they have = 5 and disable the uploading functionality. I really don't understand whats so complicated in this...
Karthik. A
14-Apr-11 22:30pm
View
Ok, I get your point. I would add this to your answer - You can invoke csc.exe like this System.Diagnostics.Process.Start(@"path_to_csc_compiler\csc.exe " + input_file); with the input .cs files passed, but the poster's problem would still exist.
Karthik. A
14-Apr-11 22:26pm
View
I believe the poster is asking about compiling and running C# inside text files, and not just DOS commands inside a .bat file
Karthik. A
14-Apr-11 13:08pm
View
I guess you should expand on your question, do you want to hide your text in an image (steganography) or create an image as you say in your question?
Karthik. A
14-Apr-11 13:05pm
View
may be because you don't have the border-style in all the td's? and I advice you to use StringBuilder or use asp:Table and add to it dynamically.
Karthik. A
13-Apr-11 10:46am
View
So when/where do you call this js function? 'OnClientClick' of the asp:Button ? Can you paste that part?
Karthik. A
7-Apr-11 9:12am
View
Deleted
Nice link, thanks!
Karthik. A
5-Apr-11 19:41pm
View
jquery simplifies all of this, I would strongly advice using that - a link - http://api.jquery.com/category/ajax/ - look mainly into $.load(...), $jQuery.get(...), $jQuery.post(...), $jQuery.ajax(...)
Karthik. A
22-Mar-11 9:51am
View
Deleted
Reason for my vote of 3
I would strongly advice against killing a process this way, when you have ways to release it.
Karthik. A
22-Mar-11 9:50am
View
Deleted
Reason for my vote of 2
I would strongly advice against killing a process this way, when you have ways to release it.
Karthik. A
4-Mar-11 9:42am
View
this is called the "C" (language) effect ;)
Karthik. A
6-Dec-10 23:28pm
View
Deleted
Reason for my vote of 1
Really, What's the point???
Karthik. A
3-Dec-10 9:50am
View
Deleted
Reason for my vote of 5
my thoughts exactly!
Karthik. A
27-Nov-10 19:28pm
View
Deleted
Does this link help - http://msdn.microsoft.com/en-us/library/det4aw50.aspx ? Else post what you have done until now...
Karthik. A
5-Nov-10 22:04pm
View
Wow, is this question meant to be serious???
Karthik. A
31-Oct-10 11:22am
View
What is so complicated in that? You should be having as assembly (.dll). Include a reference to that dll, to your markup page using <%@ Register %> and then you should be all set to use it. Or elaborate your question, if this is not what you expect...
Karthik. A
28-Oct-10 23:54pm
View
Yes, provide some code. I guess you are just showing the form again w/ Form.Show() after hiding the form for the 1st user/1st time. You need to re-construct the form using InitializeComponent() or the constructor that you show post login every time per user.
Karthik. A
27-Oct-10 21:22pm
View
So what is your question? This, we understand, is your requirement. You should ask us specific questions. Not how you implement your entire requirement. If you are new to C# start with some tutorials online and some simple/primitive apps. and then post your doubts/questions...
Karthik. A
22-Oct-10 17:34pm
View
I have added a detailed answer to help you understand better...
Karthik. A
21-Oct-10 23:22pm
View
Check out this link - especially pt. 4 - http://developers.facebook.com/docs/authentication/javascript.
Karthik. A
21-Oct-10 22:33pm
View
If you are looking to learn how to do this, fine. Else if you are looking for something already available, check this out from MS (ajax toolkit) - http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx
Karthik. A
19-Oct-10 9:53am
View
As for the part you didn't understand, refer to this link - http://www.dotnetprofessional.com/blog/post/2008/03/03/Encrypt-sections-of-WebConfig-or-AppConfig.aspx
This is assuming your connection strings are in app.config file. If you unaware about this, read about that too.
Karthik. A
19-Oct-10 9:51am
View
By saying "I add them as admin(in that clients) in those clients" do you mean you have a user account in MS SQL that is used in your connection string? If not create a user that others could use. I would advice you against using the "sa" user in your connection string. Once you create a user that others could use to access you SQL server, make sure the user has datawriter permissions for that database. You could also make that user the owner of the database, but thats risky. Follow these steps to give the user datawriter access for a database
Expand Security -> Logins -> right click on the user you created, choose "Properties". Then select "User Mapping". Choose the database they are going to access and give "db_datawriter" database role. Now they should be able to write to the database too. Be careful as to what they write to the database!
Karthik. A
17-Oct-10 23:16pm
View
Did you try UrlReferer.AbsoluteUri? Because that will give you the page from where you came to the current page. So setting PreviousPage = Request.UrlReferrer.AbsoluteUri; will help you check the condition you have mentioned above ( == or indexOf(...)) and then take necessary action... give it a go and see.
Karthik. A
17-Oct-10 20:48pm
View
Oops! I am sorry, didn't see your profile! In case you have more questions, post it here, will try not to confuse you!
Karthik. A
17-Oct-10 14:26pm
View
A blog post about adding web references and more - http://www.codeproject.com/Messages/3613330/Re-how-to-get-add-web-reference-option-in-windowsa.aspx
Karthik. A
17-Oct-10 14:24pm
View
Roberto, if there is a web service then you need not worry about javascript. You can add a web reference to your windows application project and consume the web service. This link might help- http://msdn.microsoft.com/en-us/library/scf355x6(VS.80).aspx. This is pretty basic, but will help you get started. And sorry for confusing you!
Karthik. A
17-Oct-10 10:26am
View
Try to be a bit more elaborate, give us some code to help you in a better way. I guess you must be able to get multiple selected values from the listbox (w/ SelectionMode set to Multiple). If your question is about the next steps, give us some more info. to help you...
Karthik. A
15-Oct-10 18:45pm
View
Yes, I second this, not just for VS 2010, also VS 2008. TFS is way better than MS Visual Source Safe.
Show More