blah blah blah is here! blah blah » Close

0
votes
0 answers

Lambda expression

How can I exclude ids from list collection. I would like do do something like this Where(Function(name) name.id <> "100" And name.id <> "101") using the in operator?

0
votes
1 answers

Time stamp

How can I append to the current date time stamp? For example; I have a datepicket that only passes date, but I need to append the timestamp before saving it in c#, any idea ????

0
votes
1 answers

Linq

How can I convert the line below line to vb.net var query = from u in db.Users select new { FirstName = u.FirstName, LastName = u.LastName, FullName = u.FirstName + " " + u.LastName };

0
votes
1 answers

Linq

Having the following rows Maskid. Desc. Cost 1. One. 5 1. One 10 2. Two 20 How can I get the following result 1 one 15 2. Two 20 Using linq

0
votes
1 answers

Java script regular expression to vb.net

var emailRegExp = /^([a-zA-Z0-9]{1}|[a-zA-Z0-9]{1}[_a-zA-Z0-9-])+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9]{1}|[a-zA-Z0-9]{1}[a-zA-Z0-9-])+(\.([a-zA-Z0-9]{1}|[a-zA-Z0-9]{1}[a-zA-Z0-9-])+)*\.([a-zA-Z]{2,6})$/; How this be convert to vb.net? Thank ...

0
votes
1 answers

asp.net

If I have the following string "localhost/mypage.aspx?Flag=Y", using regular expression in c# how can I extract MyPage.aspx and Flag="Y"

1
votes
1 answers

Regular expression

Need a regular expression in javascript to validate if a "&" or "*" exists in the string

0
votes
0 answers

Avoid getting Open\Save prompt

The code below when it's being ran I'm getting a promt to Open\Save, how can I open the created word document in the browser window withot the prompt. FYI, I'm exporting crystal report to memory stream. Thanks System.IO.MemoryStream s = ...

0
votes
1 answers

Linq

Calling RemoveAll on a collection, is there a way to wire an event so as the collection item is being removed a method will be triggered?

0
votes
1 answers

Dates in javascript

How can I compare 3/11/2010 5:45 Pm to 3/11/2011 5:46 Pm, to see if they are equal or not in JavaScript.

0
votes
1 answers

Hashtable to list<t>

How can I convert hashtable(1,a<t>) to list<t> ? Thanks

1
votes
1 answers

Regular Expression

Need a regular expression to replace all "-" & " " with ""?

0
votes
1 answers

Enums

public enum CssTypes { background, background-color, background-image } How can I make the above enum a valid one? Thanks

0
votes
1 answers

Egular Expression

"^([0-9]|[1-9][0-9]|100)(\\.00)?$", how can I fix this regular expression to only allow input 1.00 and 100.00(no inputs of 0.00 allowed). Thanks

0
votes
1 answers

Regular expression

Need regukar expression to remove "," and "." from a string in javascript

Feedback