Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
OriginalGriff16-Nov-14 20:22
mveOriginalGriff16-Nov-14 20:22 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
Richard Deeming17-Nov-14 3:07
mveRichard Deeming17-Nov-14 3:07 
QuestionQuery work in Access Query, but don't work in C# Pin
nta_388616-Nov-14 19:45
nta_388616-Nov-14 19:45 
AnswerRe: Query work in Access Query, but don't work in C# Pin
Mycroft Holmes16-Nov-14 20:43
professionalMycroft Holmes16-Nov-14 20:43 
AnswerRe: Query work in Access Query, but don't work in C# Pin
Bernhard Hiller16-Nov-14 21:36
Bernhard Hiller16-Nov-14 21:36 
QuestionCalling a MySQL Stored Procedure over SSH using .PEM file Pin
bpoker16-Nov-14 4:33
bpoker16-Nov-14 4:33 
AnswerRe: Calling a MySQL Stored Procedure over SSH using .PEM file Pin
Richard MacCutchan16-Nov-14 5:10
mveRichard MacCutchan16-Nov-14 5:10 
Questionissue with date format when exporting to excel Pin
parkway15-Nov-14 6:23
parkway15-Nov-14 6:23 
Hi,
I have a grid where i have to filter the columns like multiple search filter and what ever records i get in the grid i am doing export to excel in c#

Everything was went well except the date column in the grid the date column data is in this format 2014/11//15


here is my c# code which i am using to remove special characters

private void getfilterdata(string filter, out string key, out string val)
{
key = string.Empty;
val = string.Empty;
if (!string.IsNullOrEmpty(filter))
{
string[] retval2 = filter.Split(new string[] { "data" }, StringSplitOptions.RemoveEmptyEntries);
if (retval2 != null && retval2.Count() > 1 && !string.IsNullOrEmpty(retval2[1]))
{
string[] strkeys = retval2[0].Split(new char[] { '"' }, StringSplitOptions.RemoveEmptyEntries);
if (strkeys.Length >= 3 && !string.IsNullOrEmpty(strkeys[3]))
{
key = strkeys[3];
val = RemoveSpecialCharacters(retval2[1]);
}
}
}
}

In the key its shows column name and in the val it shows data..
in the val i am getting data as 20141115.


So its not matching and while exporting its empty i am not getting any records becaus e of this

this is my code for RemoveSpecialCharacters

public static string RemoveSpecialCharacters(string str)
{
return Regex.Replace(str, "[^a-zA-Z0-9_.]+", "", RegexOptions.Compiled);
}



Any help plz.....
AnswerRe: issue with date format when exporting to excel Pin
Mycroft Holmes15-Nov-14 12:54
professionalMycroft Holmes15-Nov-14 12:54 
AnswerRe: issue with date format when exporting to excel Pin
Richard MacCutchan15-Nov-14 21:36
mveRichard MacCutchan15-Nov-14 21:36 
QuestionGeneric EventHandlers Pin
conradsmith14-Nov-14 22:27
conradsmith14-Nov-14 22:27 
AnswerRe: Generic EventHandlers Pin
Richard MacCutchan14-Nov-14 23:43
mveRichard MacCutchan14-Nov-14 23:43 
Questioncan i use viewstate in if else conditon? Pin
Member 1122118514-Nov-14 20:45
Member 1122118514-Nov-14 20:45 
AnswerRe: can i use viewstate in if else conditon? Pin
Mycroft Holmes14-Nov-14 21:28
professionalMycroft Holmes14-Nov-14 21:28 
GeneralRe: can i use viewstate in if else conditon? Pin
Member 1122118514-Nov-14 22:15
Member 1122118514-Nov-14 22:15 
GeneralRe: can i use viewstate in if else conditon? Pin
Mycroft Holmes14-Nov-14 23:44
professionalMycroft Holmes14-Nov-14 23:44 
QuestionLooking for simple graph library for C# windows console app Pin
jsundownr14-Nov-14 4:29
jsundownr14-Nov-14 4:29 
AnswerRe: Looking for simple graph library for C# windows console app Pin
OriginalGriff14-Nov-14 4:47
mveOriginalGriff14-Nov-14 4:47 
AnswerRe: Looking for simple graph library for C# windows console app Pin
jsundownr14-Nov-14 5:19
jsundownr14-Nov-14 5:19 
AnswerRe: Looking for simple graph library for C# windows console app Pin
BillWoodruff14-Nov-14 5:55
professionalBillWoodruff14-Nov-14 5:55 
GeneralRe: Looking for simple graph library for C# windows console app Pin
jsundownr14-Nov-14 6:09
jsundownr14-Nov-14 6:09 
GeneralRe: Looking for simple graph library for C# windows console app Pin
BillWoodruff14-Nov-14 7:12
professionalBillWoodruff14-Nov-14 7:12 
GeneralRe: Looking for simple graph library for C# windows console app Pin
jsundownr14-Nov-14 7:32
jsundownr14-Nov-14 7:32 
AnswerRe: Looking for simple graph library for C# windows console app Pin
Gerry Schmitz14-Nov-14 10:28
mveGerry Schmitz14-Nov-14 10:28 
GeneralRe: Looking for simple graph library for C# windows console app Pin
jsundownr14-Nov-14 13:52
jsundownr14-Nov-14 13:52 

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.