Click here to Skip to main content
14,743,192 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: WebBrowser Control Pin
jkirkerx8-Nov-17 10:24
professionaljkirkerx8-Nov-17 10:24 
AnswerRe: WebBrowser Control Pin
Richard Deeming9-Nov-17 2:41
mveRichard Deeming9-Nov-17 2:41 
QuestionCode tag Pin
Otekpo Emmanuel5-Nov-17 13:05
MemberOtekpo Emmanuel5-Nov-17 13:05 
AnswerRe: Code tag Pin
ZurdoDev8-Nov-17 8:43
professionalZurdoDev8-Nov-17 8:43 
GeneralRe: Code tag Pin
debasish mishra23-Jan-18 21:21
professionaldebasish mishra23-Jan-18 21:21 
QuestionRegular Expression to get only the first 30 alphabets from a big string Pin
indian1432-Nov-17 9:37
Memberindian1432-Nov-17 9:37 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
A_Griffin2-Nov-17 10:41
MemberA_Griffin2-Nov-17 10:41 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
Richard Deeming2-Nov-17 11:19
mveRichard Deeming2-Nov-17 11:19 
No need for a regular expression - you just need to extract the letters from the string.

With LINQ:
string input = "BSC_gMax_BSC_gMax_PROD_20170721001923.xml_EXCEPTIONS_b77022d0-7176-469a-9e83-5182b59a0cba.xls";
string output = new string(input.Where(char.IsLetter).Take(31).ToArray());

Without LINQ:
string input = "BSC_gMax_BSC_gMax_PROD_20170721001923.xml_EXCEPTIONS_b77022d0-7176-469a-9e83-5182b59a0cba.xls";

char[] buffer = new char[31];
int bufferIndex = 0;

foreach (char c in input)
{
    if (char.IsLetter(c))
    {
        buffer[bufferIndex] = c;
        bufferIndex++;
        
        if (bufferIndex == 31)
        {
            break;
        }
    }
}

string output = new string(buffer, 0, bufferIndex);




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


Question.net web form application using javascript Pin
dcof31-Oct-17 5:33
Memberdcof31-Oct-17 5:33 
AnswerRe: .net web form application using javascript Pin
ZurdoDev31-Oct-17 6:49
professionalZurdoDev31-Oct-17 6:49 
GeneralRe: .net web form application using javascript Pin
dcof31-Oct-17 13:02
Memberdcof31-Oct-17 13:02 
GeneralRe: .net web form application using javascript Pin
ZurdoDev31-Oct-17 15:27
professionalZurdoDev31-Oct-17 15:27 
GeneralRe: .net web form application using javascript Pin
dcof1-Nov-17 5:42
Memberdcof1-Nov-17 5:42 
GeneralRe: .net web form application using javascript Pin
ZurdoDev1-Nov-17 5:46
professionalZurdoDev1-Nov-17 5:46 
QuestionI am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
indian14330-Oct-17 10:12
Memberindian14330-Oct-17 10:12 
AnswerRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
Wendelius30-Oct-17 10:18
mveWendelius30-Oct-17 10:18 
GeneralRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
indian14330-Oct-17 12:04
Memberindian14330-Oct-17 12:04 
AnswerRe: I am getting following error in Connecting Database from a Web application that's using Entity Framework Pin
Wendelius30-Oct-17 19:22
mveWendelius30-Oct-17 19:22 
QuestionGridView New Record from Empty Cell Pin
Member 1130123127-Oct-17 9:35
MemberMember 1130123127-Oct-17 9:35 
Questionnpm install is failing with the below errors Pin
indian14325-Oct-17 11:24
Memberindian14325-Oct-17 11:24 
QuestionWriting a Web Application from scratch for online trading company - need some tips for security Pin
indian14325-Oct-17 8:59
Memberindian14325-Oct-17 8:59 
AnswerRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
A_Griffin26-Oct-17 2:32
MemberA_Griffin26-Oct-17 2:32 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 9:13
Memberindian14330-Oct-17 9:13 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
A_Griffin30-Oct-17 10:10
MemberA_Griffin30-Oct-17 10:10 
GeneralRe: Writing a Web Application from scratch for online trading company - need some tips for security Pin
indian14330-Oct-17 10:15
Memberindian14330-Oct-17 10:15 

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.