在字符串中保存Literals值 [英] To save Literals value in string

查看:78
本文介绍了在字符串中保存Literals值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 Lit.Text = ds.Tables [ 0 ]。行[ 0 ] [  BlogPath]。ToString(); 
Lit.DataBind();





亲爱的朋友们,我想将Lit.Text值存储在String变量中。

我可以这样做吗?如果是的话那我们怎么做呢。



提前付款

Akhilesh Pathak

解决方案

尝试

string s = ds.Tables [0] .Rows [0] [BlogPath]的ToString();

Lit.Text = ds.Tables[0].Rows[0]["BlogPath"].ToString();
Lit.DataBind();



Dear friends I want to store Lit.Text value in String variable.
So Can I do this?If Yes Then how we can do this.

Thanks in Advance
Akhilesh Pathak

解决方案

Try
string s = ds.Tables[0].Rows[0]["BlogPath"].ToString();


这篇关于在字符串中保存Literals值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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