Click here to Skip to main content
14,773,568 members
Home » Discussions » ASP.NET


AnswerRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 1:37
mveMaciej Los11-Feb-18 1:37 
PraiseRe: Entity Framework: How to pass column name dynamically to where clause Pin
Mou_kol11-Feb-18 8:42
MemberMou_kol11-Feb-18 8:42 
GeneralRe: Entity Framework: How to pass column name dynamically to where clause Pin
Maciej Los11-Feb-18 9:23
mveMaciej Los11-Feb-18 9:23 
QuestionWhy people use .AsEnumerable() along with EF query Pin
Mou_kol10-Feb-18 7:25
MemberMou_kol10-Feb-18 7:25 
AnswerRe: Why people use .AsEnumerable() along with EF query Pin
User 418025411-Feb-18 4:27
MemberUser 418025411-Feb-18 4:27 
GeneralRe: Why people use .AsEnumerable() along with EF query Pin
Mou_kol11-Feb-18 8:44
MemberMou_kol11-Feb-18 8:44 
AnswerRe: Why people use .AsEnumerable() along with EF query Pin
Nathan Minier12-Feb-18 2:46
professionalNathan Minier12-Feb-18 2:46 
QuestionAzure csv radgrid dataset bind attempt Pin
jsegreti10-Feb-18 5:39
Memberjsegreti10-Feb-18 5: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...)

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())
memoryStream.Position = 0;
StreamReader streamReader = new StreamReader(memoryStream);
//String blobText = streamReader.ReadToEnd();
DataSet ds1 = new DataSet();

RadGrid1.DataSource = ds1;


QuestionAdd a Nuget Package Using dotnet add Pin
Priyanka Kale9-Feb-18 22:43
MemberPriyanka Kale9-Feb-18 22:43 
AnswerRe: Add a Nuget Package Using dotnet add Pin
User 418025411-Feb-18 4:22
MemberUser 418025411-Feb-18 4:22 
QuestionVSOT Pin
kumardm93289-Feb-18 16:45
Memberkumardm93289-Feb-18 16:45 
AnswerRe: VSOT Pin
User 41802549-Feb-18 17:56
MemberUser 41802549-Feb-18 17:56 
GeneralRe: VSOT Pin
kumardm93289-Feb-18 18:40
Memberkumardm93289-Feb-18 18:40 
AnswerRe: VSOT Pin
Richard Deeming12-Feb-18 10:08
mveRichard Deeming12-Feb-18 10:08 
QuestionVideo hosting on MVC application Pin
User 41802549-Feb-18 12:29
MemberUser 41802549-Feb-18 12:29 
QuestionDashboard Build in .net with Bootstrap Pin
RekhaDhankhar9-Feb-18 7:13
MemberRekhaDhankhar9-Feb-18 7:13 
AnswerRe: Dashboard Build in .net with Bootstrap Pin
User 41802549-Feb-18 13:33
MemberUser 41802549-Feb-18 13:33 
QuestionAspects Every ASP.Net Developers Must Know Pin
Priyanka Kale9-Feb-18 0:40
MemberPriyanka Kale9-Feb-18 0:40 
AnswerRe: Aspects Every ASP.Net Developers Must Know Pin
User 418025411-Feb-18 4:28
MemberUser 418025411-Feb-18 4:28 
GeneralRe: Aspects Every ASP.Net Developers Must Know Pin
Priyanka Kale14-Mar-18 21:00
MemberPriyanka Kale14-Mar-18 21: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 14:24
Memberindian1438-Feb-18 14:24 
QuestionShopping site based on sql data? Pin
JoeJack03308-Feb-18 11:01
MemberJoeJack03308-Feb-18 11:01 
AnswerRe: Shopping site based on sql data? Pin
David Mujica9-Feb-18 4:53
MemberDavid Mujica9-Feb-18 4:53 
QuestionEF: How to minimize search code Pin
Mou_kol8-Feb-18 2:53
MemberMou_kol8-Feb-18 2:53 
QuestionASP.NET Core to IIS Pin
Priyanka Kale8-Feb-18 0:25
MemberPriyanka Kale8-Feb-18 0: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.