Ask a Question related to ASP.NET General, Design and Development.
-
Satish Appasani #1
Replace characters in a Field when bindig data
I have a drop down field on a form. When binding data to the DataValueField
property of the drop down, I need to replace "&" with "%".
In code behind I tried
DataValueField='<%# DataBinder.Eval(Container.DataItem, "CATEGORY_VALUE")
%>'
I get the following error:
Compiler Error Message: BC30456: 'DataItem' is not a member of
'System.Web.UI.Control'.
I tried DataSource in place of DataItem but similar error.
Can somebody please help me?
--
Thank you.
Satish Appasani
#201, Wing - 1, Block - D
Cyber Gateway
Hyderabad - 500 081, India
Phone: +91(40)2311-1356 Ext-122
Mobile: +91(40)333-31032
E-mail: [email]satish@vertexcs.com[/email]
Satish Appasani Guest
-
Is there a way to replace characters in a string/array
I am trying to find a function similar to php's str_replace is there something that will allow me to replace a certain character in a variable? ... -
SQL Where lenght of data in field GT 'n' characters
Need a sql where statement to pull only records where field 'ABC' contains more than 2 characters (nvarchar 255 field) -
find replace a range of characters
I need to find and replace a range of characters that are contained in brackets like below: It seems the brackets are throwing me off. I just... -
Using Replace function to remove two different characters
I'm using replace function to strip 0s from a particular string: <%=replace(rs1("racelength"),"0","''"%> but I need to also strip empty spaces... -
Replace * with return characters?
Is there a way to do this or not? I want to import a file with return characters but it seems impossible. even with the new find/replace... -
Ravikanth[MVP] #2
Replace characters in a Field when bindig data
Hi
My guess is you should replace values in sql query itself.
Ravikanth
the DataValueField>-----Original Message-----
>I have a drop down field on a form. When binding data towith "%".>property of the drop down, I need to replace "&"(Container.DataItem, "CATEGORY_VALUE")>
>In code behind I tried
>
>DataValueField='<%# DataBinder.Evalmember of>%>'
>
>I get the following error:
>
>Compiler Error Message: BC30456: 'DataItem' is not aerror.>'System.Web.UI.Control'.
>
>I tried DataSource in place of DataItem but similar>Can somebody please help me?
>
>--
>
>
>Thank you.
>
>Satish Appasani
>#201, Wing - 1, Block - D
>Cyber Gateway
>Hyderabad - 500 081, India
>Phone: +91(40)2311-1356 Ext-122
>Mobile: +91(40)333-31032
>E-mail: [email]satish@vertexcs.com[/email]
>
>
>.
>Ravikanth[MVP] Guest



Reply With Quote

