15,910,872 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 Govindaraj Rangaraj (Top 22 by date)
Govindaraj Rangaraj
8-Apr-14 5:43am
View
As I mentioned earlier jquery and ajax are nothing but browser side scripting which means you can develop dynamic webpages using them. With jquery you could develop webpages that can update contents dynamically. The first ever functionality I achieved using jquery was to convert a table into boxes made of div tag. Traditionally without javascript we need to rewrite the html from table to div but in jquery you can use the same page with table, but instead of rewriting the table tag you could write jquery code to transform to div dynamically.
Ajax is a simple call to server. Jquery provides several different wrapper for ajax which are very easy to use. One such example is getJSON method. Please google for this method. It gets data from the server in JSON format and you can apply this data dynamically on the page. Which means without reloading a page you update data on the webpage (like a magic) :)
Govindaraj Rangaraj
8-Apr-14 5:34am
View
Thanks for upvoting and I am glad to help!
Govindaraj Rangaraj
14-Feb-14 4:23am
View
Are you taking about your cshtml views? How about puting them in _layout or some other shared view?
Govindaraj Rangaraj
18-Oct-13 4:19am
View
Hi it is same for all the operators.
To do OR, replace AND keyword with OR.
But I would suggest you to do it as a stored procedure then to do it like this as Sql injection can easily be exploited. Refer these:
http://www.codeproject.com/Articles/21234/Implementing-Dynamic-WHERE-Clause-in-Static-SQL#Content2
http://www.sqlteam.com/article/implementing-a-dynamic-where-clause
The other best option is to use Linq
Refer this: http://stackoverflow.com/questions/30879/is-there-a-pattern-using-linq-to-dynamically-create-a-filter
See the response from "David B" in this link. Nice way to do the dynamic queries.
Govindaraj Rangaraj
17-Oct-13 11:00am
View
"Do i need to make each condition for combobox value?" - YES!
Govindaraj Rangaraj
17-Oct-13 8:40am
View
Can you please state clearly where you face the difficulty in doing this, using MVC or accessing the weather information?
Govindaraj Rangaraj
3-Oct-13 3:46am
View
Can you please check if the auto-generated class "PenuliumEntities" is derived from "ObjectContext"? Are you using EF 4.1 +?
http://blogs.msdn.com/b/cesardelatorre/archive/2011/04/14/entity-framework-4-1-just-released.aspx
The objectContext is replaced by new polished DBContext. It is better to switch to DBContext as all further versions of EF will use this.
Just in case you still want to use ObjectContext please refer this:
http://stackoverflow.com/questions/14245153/entity-framework-where-is-my-object-context
Govindaraj Rangaraj
2-Oct-13 11:36am
View
how did you declare _objectContext as ?
It has to be something like this
PaneliumEntities _objectContext;
Govindaraj Rangaraj
2-Oct-13 8:45am
View
Could it be because you still did not change it for delete?
Govindaraj Rangaraj
2-Oct-13 8:35am
View
Could you please post your updated code? I reckon Eduard's suggestion, if implemented, should work fine.
Govindaraj Rangaraj
2-Oct-13 5:44am
View
What is happening, is it throwing any exception?
Govindaraj Rangaraj
2-Oct-13 3:39am
View
"but there is some kind of problem"
what kind? Please improve your question.
Govindaraj Rangaraj
1-Oct-13 9:58am
View
I meant you dont need to add property dynamically, add them statically along with flags and hide them at runtime based on the flag.
Govindaraj Rangaraj
1-Oct-13 9:24am
View
How about adding all the required fields into the model class and in the view hide them based on a flag (create flag for each property). When the admin set the flag for this field make it visible in the view.
Govindaraj Rangaraj
1-Oct-13 9:04am
View
After this delete the linqtosql method for this SP and drag and drop afresh to get the auto generated return type.
Govindaraj Rangaraj
1-Oct-13 6:19am
View
Ahh, try this!
http://magedfarag.wordpress.com/2012/12/14/call-wcf-sevice-using-only-webclient-and-soap-xml/
Govindaraj Rangaraj
1-Oct-13 6:09am
View
Well it is pretty straight forward. Create a new asp.net website or in your existing website rightclick on the project and click add service reference. Provide the URL for your service such as "https://localhost/MyWebService.svc". It automatically generates a proxy object for you. You can use the following code to access the service.
MyWebServiceClient client = new MyWebServiceClient(); //your proxy object
var result = client.MyServiceMethod(); //Your operation contract
Govindaraj Rangaraj
1-Oct-13 5:55am
View
You basically need to create a dummy private certificate in your computer and register it in the local store and add this certificate for the SSL configuration.
http://msdn.microsoft.com/en-us/library/hh556232.aspx
http://msdn.microsoft.com/en-us/library/ms733791.aspx
Govindaraj Rangaraj
1-Oct-13 5:27am
View
just to give you a head start, keep all database access related code (ado.net, linqtosql, dataset or EF) in Data tier (a separate project possibly). Keep all business validations or in fact any other operations on your data models/database results (coming from data layer) in the Business layer (a separate project again). The UI should always have code related to binding the results of business layer to the webpage/winforms controls or passing data from UI to business layer for manipulations into the database.
Govindaraj Rangaraj
1-Oct-13 5:02am
View
Are you running it through IIS or through VS inbuilt webserver? I tried using VS but ended up with https error so running it through IIS. It works fine. Under SSL settings in IIS website check "Use SSL" option.
Govindaraj Rangaraj
1-Oct-13 4:35am
View
did you try adding reference using https:// based url?
Govindaraj Rangaraj
30-Sep-13 10:32am
View
Are you asking this?
Class A
{}
Class B :Class A
{}
Main()
{
Class A = new Class B(); //why?
}
Show More