Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dinamically created gridview not handling SelectedIndexChanged Pin
Adam R Harris14-Jun-10 3:14
Adam R Harris14-Jun-10 3:14 
GeneralRe: Dinamically created gridview not handling SelectedIndexChanged Pin
Zasumo14-Jun-10 3:58
Zasumo14-Jun-10 3:58 
GeneralRe: Dinamically created gridview not handling SelectedIndexChanged Pin
Adam R Harris15-Jun-10 9:06
Adam R Harris15-Jun-10 9:06 
QuestionUsing Resource file in C# .NET Pin
VOITDOTNET11-Jun-10 7:10
VOITDOTNET11-Jun-10 7:10 
AnswerRe: Using Resource file in C# .NET Pin
Adam R Harris11-Jun-10 8:17
Adam R Harris11-Jun-10 8:17 
GeneralRe: Using Resource file in C# .NET Pin
VOITDOTNET11-Jun-10 9:53
VOITDOTNET11-Jun-10 9:53 
AnswerRe: Using Resource file in C# .NET Pin
Sandeep Mewara11-Jun-10 10:28
mveSandeep Mewara11-Jun-10 10:28 
QuestionSearch and Replace String Value Pin
AsianRogueOne11-Jun-10 4:01
AsianRogueOne11-Jun-10 4:01 
Hi All,

I have a string variable contain text that I would like to search for "Keyword" (AND, OR ) I like to do is search the string varaible strValue for the word "AND" that follow by word "OR" and insert "(" and the last word "OR" and insert ")" .The last "OR" might have "AND" or blank space, The combination could be any order I need to place the "(" and ")" where the "OR" exist.

For Example:

Orignal strValue = " col1 = "John" and col4 = "smith" and col3 = "John" or col7 <> "closed" or col9 > 1 and col5 = "passed" "

After the replace the strValue should be :

strValue = " col1 = "John" and col4 = "smith" and (col3 = "John" or col7 <> "closed" or col9 > 1 ) and col5 = "passed" "

The strValue then send to SQL store procedure as a where clause in sql statement.


Any assistance is greatly apprecaited. please provide codes example.

Thanks
DocHoliday.
AnswerRe: Search and Replace String Value Pin
Rhys Jacob11-Jun-10 4:51
Rhys Jacob11-Jun-10 4:51 
GeneralRe: Search and Replace String Value Pin
AsianRogueOne11-Jun-10 5:04
AsianRogueOne11-Jun-10 5:04 
GeneralRe: Search and Replace String Value Pin
AsianRogueOne11-Jun-10 5:08
AsianRogueOne11-Jun-10 5:08 
GeneralRe: Search and Replace String Value Pin
Rhys Jacob11-Jun-10 5:21
Rhys Jacob11-Jun-10 5:21 
GeneralRe: Search and Replace String Value Pin
AsianRogueOne11-Jun-10 5:34
AsianRogueOne11-Jun-10 5:34 
GeneralRe: Search and Replace String Value Pin
Rhys Jacob11-Jun-10 5:56
Rhys Jacob11-Jun-10 5:56 
GeneralRe: Search and Replace String Value Pin
AsianRogueOne11-Jun-10 6:27
AsianRogueOne11-Jun-10 6:27 
GeneralRe: Search and Replace String Value Pin
Rhys Jacob13-Jun-10 21:43
Rhys Jacob13-Jun-10 21:43 
AnswerRe: Search and Replace String Value Pin
AsianRogueOne21-Jun-10 9:57
AsianRogueOne21-Jun-10 9:57 
QuestionScriptManager.RegisterClientScriptBlock issue Pin
trilokharry11-Jun-10 3:44
trilokharry11-Jun-10 3:44 
AnswerRe: ScriptManager.RegisterClientScriptBlock issue Pin
Sandeep Mewara11-Jun-10 6:48
mveSandeep Mewara11-Jun-10 6:48 
QuestionBind asp.net menu control with treeview Pin
yesu prakash11-Jun-10 3:21
yesu prakash11-Jun-10 3:21 
AnswerRe: Bind asp.net menu control with treeview Pin
Sandeep Mewara11-Jun-10 6:57
mveSandeep Mewara11-Jun-10 6:57 
QuestionExport data to excel in formatted way Pin
Karan_TN11-Jun-10 1:21
Karan_TN11-Jun-10 1:21 
AnswerRe: Export data to excel in formatted way Pin
Peace ON11-Jun-10 2:28
Peace ON11-Jun-10 2:28 
QuestionHtmlTabHTleRow Pin
siva45511-Jun-10 0:11
siva45511-Jun-10 0:11 
AnswerRe: HtmlTabHTleRow Pin
saini arun11-Jun-10 3:20
saini arun11-Jun-10 3:20 

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.