Click here to Skip to main content
15,922,696 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to freeze the web page when displaying progress bar? Pin
Somnath Sen28-May-09 21:10
Somnath Sen28-May-09 21:10 
AnswerRe: How to freeze the web page when displaying progress bar? Pin
Christian Graus28-May-09 21:14
protectorChristian Graus28-May-09 21:14 
AnswerRe: How to freeze the web page when displaying progress bar? Pin
Abhishek Sur28-May-09 22:14
professionalAbhishek Sur28-May-09 22:14 
QuestionNamed anchor link Pin
farogh haider28-May-09 21:06
farogh haider28-May-09 21:06 
AnswerRe: Named anchor link Pin
Christian Graus28-May-09 21:16
protectorChristian Graus28-May-09 21:16 
GeneralRe: Named anchor link Pin
farogh haider28-May-09 21:29
farogh haider28-May-09 21:29 
GeneralRe: Named anchor link Pin
Christian Graus28-May-09 21:42
protectorChristian Graus28-May-09 21:42 
GeneralRe: Named anchor link Pin
ScottM128-May-09 22:07
ScottM128-May-09 22:07 
GeneralRe: Named anchor link Pin
Matt Cavanagh29-May-09 2:42
Matt Cavanagh29-May-09 2:42 
Questionhow to resize whole aspx page Pin
Jaymm28-May-09 20:47
Jaymm28-May-09 20:47 
AnswerRe: how to resize whole aspx page Pin
adatapost28-May-09 20:58
adatapost28-May-09 20:58 
AnswerRe: how to resize whole aspx page Pin
Mohit111028-May-09 21:34
professionalMohit111028-May-09 21:34 
GeneralRe: how to resize whole aspx page Pin
Jaymm29-May-09 0:44
Jaymm29-May-09 0:44 
Questionproblem while using md5 for password encryption Pin
Kissy1628-May-09 20:22
Kissy1628-May-09 20:22 
AnswerRe: problem while using md5 for password encryption Pin
ScottM128-May-09 20:35
ScottM128-May-09 20:35 
GeneralRe: problem while using md5 for password encryption Pin
Kissy1628-May-09 20:47
Kissy1628-May-09 20:47 
GeneralRe: problem while using md5 for password encryption Pin
Christian Graus28-May-09 21:13
protectorChristian Graus28-May-09 21:13 
GeneralRe: problem while using md5 for password encryption Pin
ScottM128-May-09 22:11
ScottM128-May-09 22:11 
GeneralRe: problem while using md5 for password encryption Pin
Kissy1628-May-09 23:38
Kissy1628-May-09 23:38 
AnswerRe: problem while using md5 for password encryption Pin
dwaipayan911-Aug-09 0:54
dwaipayan911-Aug-09 0:54 
QuestionLINQ to dataview........ Pin
pranavcool28-May-09 19:27
pranavcool28-May-09 19:27 
AnswerRe: LINQ to dataview........ Pin
padmanabhan N28-May-09 19:33
padmanabhan N28-May-09 19:33 
There is one .cs for converting linq to datatable
//.cs file
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Data;

public class LinqToDataTable
{
public static DataTable ObtainDataTableFromIEnumerable(System.Collections.IEnumerable ien)
{
DataTable dt = new DataTable();

try
{
foreach (object obj in ien)
{
Type t = obj.GetType();
PropertyInfo[] pis = t.GetProperties();

if (dt.Columns.Count == 0)
{
foreach (PropertyInfo pi in pis)
{
if (pi.PropertyType.Name == "Nullable`1")
{
string str = pi.PropertyType.FullName;
str = str.Replace("System.Nullable`1", "");
str = str.Substring(str.IndexOf("System"));
str = str.Substring(0, str.IndexOf(","));
dt.Columns.Add(pi.Name, str.GetType());
}
else
dt.Columns.Add(pi.Name, pi.PropertyType);
}
}

DataRow dr = dt.NewRow();
foreach (PropertyInfo pi in pis)
{
object value = pi.GetValue(obj, null);
dr[pi.Name] = value;
}
dt.Rows.Add(dr);
}
}
catch (Exception)
{
dt = null;
}
return dt;
}
}

//DataTable dtEmployees = LinqToDataTable.ObtainDataTableFromIEnumerable((IEnumerable)employees);

now assign the datatable in dataview

Padmanabhan

Questionhow to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
A k ch28-May-09 19:16
A k ch28-May-09 19:16 
AnswerRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
Christian Graus28-May-09 19:23
protectorChristian Graus28-May-09 19:23 
GeneralRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
A k ch28-May-09 19:31
A k ch28-May-09 19:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.