Click here to Skip to main content
15,388,688 members
Home / Discussions / ASP.NET
   

ASP.NET

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

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