我需要在textBox中替换另一个文本,任何人都可以帮助我......? [英] I need to replace a text by another in a textBox can anyone help me...?

查看:35
本文介绍了我需要在textBox中替换另一个文本,任何人都可以帮助我......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用asp.net中的textBox中的另一个字符串替换文本中的字符串c#3.0任何人都可以帮助...对我来说非常重要........谢谢..... ....

I need to replace a string in text by another string in a textBox in asp.net c# 3.0 can anyone help ... It´s very important for me........ Thanks .........

推荐答案

你的问题很难理解你的要求。但如果我能清楚地理解你需要这样的东西......

Your question is very unclear to understand your requirement.But if i can understand it clearly you need something like this..
string s1 = "This is an example";
textBox1.Text = s1.Replace("an","a testing");



如果不是你的要求那么在这里更清楚..


If it is not your requirement then clear it more here..


string strtext;

strtext.Replace(oldChar,newChar);







Thanks& ;尊重

Sham




Thanks & regard
Sham


这篇关于我需要在textBox中替换另一个文本,任何人都可以帮助我......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆