15,896,912 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 Vikram_ (Top 15 by date)
Vikram_
26-Apr-14 6:21am
View
Well thanks for the link. It will work atleast partially. However the solution brought by including code provided at http://detectmobilebrowsers.com/ will just let us know if the device is mobile or not, but we would never be able to differentiate between PC and tablet. Both PC and tablet will show same output(i.e No mobile browser detected).
Vikram_
26-Apr-14 5:24am
View
The solution you gave is for devices having different resolutions. As I mentioned in my question how can we give different views for same resolutions of different devices (PC/Tablet/Smartphone). I have an old PC(Pentium 4) with max resolution as 1024x768. Now iPad(or tablet) and Lumia 920(or Smartphone) having same max 768. So how will we be able to give different views to these different devices having same max value 768?
Vikram_
14-Jan-13 11:30am
View
I don't understand why we wasting time in debating or discussing out of point matter inspite of solution to the problem. Nevermind but please let me know the solution or suggest some reference example if you got or knowing.
Vikram_
13-Jan-13 12:22pm
View
I was about to create a new thread but saw the same question already posted so continued here. I am not sure shall I create a new thread for the same since the question is too old?
Vikram_
28-Sep-12 1:53am
View
Even with this code the same thing happens just try to use this piece of code in the above step-by-step described application. You may find same issue (0) zero records found and later data gets added with duplicate id.
Vikram_
17-Sep-12 9:42am
View
One thing I don't understand why the datagrid is able to show all records where as these queries unable to find a single row
I even tried adding the following code after the above code:
MessageBox.Show(objctx.registrations.ToList().Count.ToString());
this shows me 0(zero) which is really very strange!
Vikram_
17-Sep-12 9:21am
View
I have added the code in the page but since its in View folder which is not under myproject.web node but under other myproject node(having folders like Assets,Views) so may be breakpoint doesn't work there the way breakpoint in javascript in asp.net
what I did is added a messagebox displaying value and its shows the count 0(zero) for query3 which you provided.
I added your code just below where I bind my datagrid in constructor as:
InitializeComponent();
var objctx = new myDomainContext();
EntityQuery query = objctx.GetRegistrationsQuery();
LoadOperation loadOp = this.objctx.Load(query);
mydatagrid.ItemsSource = loadOp.Entities;
// code provided by you begins below
var query1 = objctx.registrations.ToList();
foreach (registration reg in query1)
{
MessageBox.Show(reg.userid); // Is never called.
}
var query2 = objctx.registrations.Where(i => i.userid == "abc@abc.com");
var query3 = objctx.registrations.Where(i => i.userid == "abc@abc.com").Count();
MessageBox.Show(query3.ToString()); // This shows 0(zero)
Vikram_
17-Sep-12 7:56am
View
I am having another page where I dropped a datagrid and in page constructor after the InitializeComponent();
as
var objctx = new myDomainContext();
EntityQuery<registration> query = objctx.GetRegistrationsQuery();
LoadOperation<registration> loadOp = this.objctx.Load(query);
mydatagrid.ItemsSource = loadOp.Entities;
and that works perfectly fine, showing all records in my database (specifically the entire registration table which is having all those duplicate values)
Hope that is enough to be sure that same database instance is connnected. I also did the modification in the database directly and checked the changes in VS its all as expected reflecting all those changes.
Vikram_
17-Sep-12 7:28am
View
In SQL Management Studio I get those records with provided userid. But in Visual Studio even after hard-coded userid it shows there is no duplicate record found (i.e it returns false in your method provided IsUserIdTaken()) and adds that record in database resulting a duplicate userid in the database.
Vikram_
17-Sep-12 1:28am
View
I tried both ways but don't know why, although I have a user id in my registration table which I again try to enter in the registration page intentionally but in the function returning count it gives the count equal to zero and in the function returning Boolean value it gives false. I even tried to update the .edmx file mapping domainservice.cs, clean solution,rebuilt etc. even tried creating new solution with same thing but still I get 0(zero) or false which means I have no duplicate value in the database but there is a value in the registration table with same id which I try to enter and so the details get saved with duplicate values in the database.
Vikram_
10-Jul-11 8:31am
View
But Toolbox includes only Text Object,Line Object and Box Object. I can't see any table control in toolbox of Visual Studio 2005 IDE
Vikram_
16-May-11 5:30am
View
Yeah same logic defining regions for control. But better and efficient option or alternative.
Vikram_
31-Jul-10 4:54am
View
Thanks for help. But sorry, I think you interpreted something different. Actually I knew this aspect. The thing in which I was having problem was the mouse events code for resizing forms. Well anyways this was also a helpful code for regaining titlebar buttons property. Thanks again.
Vikram_
31-Jul-10 4:47am
View
Thanks for the help. I was expecting for the same solution as you provided here for my problem.
Vikram_
31-Jul-10 4:44am
View
Reason for my vote of 5
This was the solution I was seeking for the problem or question I asked.
Show More