Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 0:37
mveMaciej Los11-Feb-18 0:37 
PraiseRe: Entity Framework: How to pass column name dynamically to where clause Pin
Mou_kol11-Feb-18 7:42
Mou_kol11-Feb-18 7:42 
GeneralRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 8:23
mveMaciej Los11-Feb-18 8:23 
QuestionWhy people use .AsEnumerable() along with EF query Pin
Mou_kol10-Feb-18 6:25
Mou_kol10-Feb-18 6:25 
AnswerRe: Why people use .AsEnumerable() along with EF query Pin
User 418025411-Feb-18 3:27
User 418025411-Feb-18 3:27 
GeneralRe: Why people use .AsEnumerable() along with EF query Pin
Mou_kol11-Feb-18 7:44
Mou_kol11-Feb-18 7:44 
AnswerRe: Why people use .AsEnumerable() along with EF query Pin
Nathan Minier12-Feb-18 1:46
professionalNathan Minier12-Feb-18 1:46 
QuestionAzure csv radgrid dataset bind attempt Pin
jsegreti10-Feb-18 4:39
jsegreti10-Feb-18 4:39 
I am attempting to download a csv file from Azure container blob, read and load it to a dataset and then bind it to the radgrid.

I can download the data and set it to a string (the sample data is listed below) but not sure how to load it to the dataset.

When I load the data to a stream and then try to load it to a dataset, I received the following error: "Data at the root level is invalid. Line 1, position 1."

Here is a sample of the Data that is in the file ( I also tried it with no hdr record, same results...)

DeptCode,DeptName,AccountCode,Description,Qty,Expense
1001,Presidents,6220,FT Senior Administrator,1,126000
1001,Presidents,6221,FT Professional Staff,1,105050
1001,Presidents,6300,FT Administrative,1,60000
1001,Presidents,6425,FT Technical/Paraprofessional,1,70000
1001,Presidents,6426,PT Technical/Paraprofessional,1,32000

Here is my source code....

// Retrieve storage account from connection string.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
// Create the blob client.
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
// Retrieve reference to a previously created container.
CloudBlobContainer container = blobClient.GetContainerReference("hsc2");
// Retrieve reference to a blob named "myblob".
CloudBlockBlob blockBlob = container.GetBlockBlobReference(FileUpload1.FileName);
//...Create or overwrite the "myblob" blob with contents from a local file.
using (var memoryStream = new MemoryStream())
{
blockBlob.DownloadToStream(memoryStream);
memoryStream.Position = 0;
StreamReader streamReader = new StreamReader(memoryStream);
//String blobText = streamReader.ReadToEnd();
DataSet ds1 = new DataSet();
ds1.ReadXml(streamReader);

RadGrid1.DataSource = ds1;

RadGrid1.DataBind();

RadGrid1.Rebind();
}
QuestionAdd a Nuget Package Using dotnet add Pin
Priyanka Kale9-Feb-18 21:43
Priyanka Kale9-Feb-18 21:43 
AnswerRe: Add a Nuget Package Using dotnet add Pin
User 418025411-Feb-18 3:22
User 418025411-Feb-18 3:22 
QuestionVSOT vb.net Pin
kumardm93289-Feb-18 15:45
kumardm93289-Feb-18 15:45 
AnswerRe: VSOT vb.net Pin
User 41802549-Feb-18 16:56
User 41802549-Feb-18 16:56 
GeneralRe: VSOT vb.net Pin
kumardm93289-Feb-18 17:40
kumardm93289-Feb-18 17:40 
AnswerRe: VSOT vb.net Pin
Richard Deeming12-Feb-18 9:08
mveRichard Deeming12-Feb-18 9:08 
QuestionVideo hosting on asp.net MVC application Pin
User 41802549-Feb-18 11:29
User 41802549-Feb-18 11:29 
QuestionDashboard Build in .net with Bootstrap Pin
RekhaDhankhar9-Feb-18 6:13
RekhaDhankhar9-Feb-18 6:13 
AnswerRe: Dashboard Build in .net with Bootstrap Pin
User 41802549-Feb-18 12:33
User 41802549-Feb-18 12:33 
QuestionAspects Every ASP.Net Developers Must Know Pin
Priyanka Kale8-Feb-18 23:40
Priyanka Kale8-Feb-18 23:40 
AnswerRe: Aspects Every ASP.Net Developers Must Know Pin
User 418025411-Feb-18 3:28
User 418025411-Feb-18 3:28 
GeneralRe: Aspects Every ASP.Net Developers Must Know Pin
Priyanka Kale14-Mar-18 20:00
Priyanka Kale14-Mar-18 20:00 
QuestionASP.Net MVC application is saying build failed but doesn't show me any error but warns "Found conflicts between different versions of the same dependent assembly" Pin
indian1438-Feb-18 13:24
indian1438-Feb-18 13:24 
QuestionShopping site based on sql data? Pin
JoeJack03308-Feb-18 10:01
JoeJack03308-Feb-18 10:01 
AnswerRe: Shopping site based on sql data? Pin
David Mujica9-Feb-18 3:53
David Mujica9-Feb-18 3:53 
QuestionEF: How to minimize search code Pin
Mou_kol8-Feb-18 1:53
Mou_kol8-Feb-18 1:53 
QuestionASP.NET Core to IIS Pin
Priyanka Kale7-Feb-18 23:25
Priyanka Kale7-Feb-18 23:25 

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.