2
Answers

How to convert anonymous type to my database type

Photo of Asp.Net Hein

Asp.Net Hein

8y
275
1
var user = (db.Users.Where(u => u.CountryId == c)).Select(u=> new { u.UserName, u.Email, u.Country.Name, u.PhoneNumber, u.LastLogin });
 
 
In this code, the datatype of 'Select' part is 'anonymous'. I don't want anonymous datatype and I want db.Users type. Kindly let me know how to solve this and thanks a lot for viewing my question.  

Answers (2)

0
Photo of Francis
NA 11.7k 724.2k 8y
You didn't specify that you are using responsive design or not. If you are going with any responsive framework then most of the UI related compatibility issues will be solved. If you didn't just go with it.
Accepted
0
Photo of Joma Rajab
NA 110 9.8k 8y
Thanks very much
Yes I am using responsive design and below the code for header and imageof header on chrome and firefox where its height covers part of the body of the page
please help
  1. <!--headerstart-->
  2. <headerclass="headerblack-bg">
  3. <!--logostart-->
  4. <ahref="#"class="logo"><asp:Imagesrc="assets/img/logo.jpg"runat="server"Height="100%"></asp:Image></a>
  5. <!--logoend-->
  6. <divclass="top-menu">
  7. <ulclass="navpull-right"style="margin-top:12px;background-color:none">
  8. <asp:LinkButtonID="Button1"runat="server"Text="Logout"onClick="linkout"Font-Names="TimesRoman"NavigateUrl="Default.aspx"Font-Size="16"></asp:LinkButton>
  9. </ul>
  10. </div>
  11. </header>
  12. <!--headerend→
  13. .header{
  14. position:fixed;
  15. left:0;
  16. right:0;
  17. z-index:1002;
  18. }
  19. .black-bg{
  20. background:#ffd777;
  21. border-bottom:1pxsolid#c9aa5f;
  22. }
0
Photo of Midhun T P
NA 19.7k 281.2k 8y
Hi, In many cases we have found issues with responsive websites in IE browsers, rarely with firefox. Can you post your screenshot, both in chrome and firefox, as well as css and html for that header.