|
Yes it is, what is your security requirements. Maybe i can suggest another application specific method.
|
|
|
|
|
how add refrance microsoft.win32 in visual basic 6.0
|
|
|
|
|
Post it to VB/VB.Net Forum not in Asp.net
|
|
|
|
|
i have two string "a" and "b"
i want to concatenate string c = "a" "b" in asp.net
my code is
string p1 = "'" + b + '"' +' ';
string p2 = "'" + c + '"' +' ';
what result is coming c = "\p1\"\"p2";
what i want to result c = "p1" "p2";
how it will possible.
|
|
|
|
|
Same question again .....
what is the problem???
let me tell you ...
if you want a Quation Mark (") inside a string use \", if you want \ use \\
and use + to concatenate two strings...
If you want "p1" "p2" assigned to c then
write
C="\"p1\" \"p2\""
Thats what u wanted I guess...
Abhishek Sur
|
|
|
|
|
|
|
why not ? i have already give you the code . Check "Your Answer" post on your last thread. or you want some thing diffrent that you are not able to descruibe ?
cheers,
Abhijit
|
|
|
|
|
|
i have two command
when two command in concatenate and run sigle command in asp.net
e.g
string a = "\"a\"" + ' ';
string b = "\"b\"";
string c = a + b;
TextBox1.Text = c
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName = TextBox1.Text;
Process.Start(startinfo);
that is same probleam
when single command is run on the run window the execute succefully run
|
|
|
|
|
Rinki Mukheraji wrote: when two command in concatenate and run sigle command in asp.net
you want to run two command a time ???? by adding them.
Try to execute one by one.
|
|
|
|
|
use StringBuilder it will ease your job
|
|
|
|
|
hi all,
i am developing the project using two grid view...here I am doing paging.in first gridview paging is working fine..but sencond grid paging is not working properly...
anybody know please reply me....Thanks
Raaj
|
|
|
|
|
Can you give more details
Cheers!!
Brij
|
|
|
|
|
you must be doing something wrong
|
|
|
|
|
hi
i took one grid view and it have checkbox.
i want when i click on chekbox or checked checkbox that time
that rows feilds are display on textbox.
regards
gayatri
Gayatri
|
|
|
|
|
Dear All,
i am using asp.net 2.0 , C# and ajax1.0
i am getting this error Type 'AjaxControlToolkit.MaskedEditExtender' does not have a public property named 'UserTimeFormat'. while i load the form on live server but this error i am not getting on test server
i have register ajaxtoolkit in the form only as
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
and using it as
<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Enabled="True"
TargetControlID="Outtime" Mask="99:99" MaskType="Time" UserTimeFormat ="TwentyFourHour"
>
Please suggest .
Thank you
imran khan
|
|
|
|
|
|
class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
string s = "A1,G11,M7";<br />
string[] s1 = s.Split(',');<br />
StringBuilder s2 = new StringBuilder();<br />
foreach (string ss in s1)<br />
{<br />
s2.Append("'" + ss + "',"); <br />
}<br />
string s3 = s2.ToString();<br />
Console.WriteLine(s3.Substring(0,s2.Length-1));<br />
<br />
}<br />
}
Now Try to optimize as possible as you can !!!
|
|
|
|
|
This was your message that you have deleted !!!!
Hi i need some logic,
Actually my text is like this:
A2,G11,m7
I want to add single quotes on all the words...,
It mean i need the text like this:
'A2','G11','m7'
How to do this
Please Dont do like that !!!
|
|
|
|
|
Anyway I will give my opinion too:
string strVal = "A2,G11,m7";<br />
string [] newstrVal = strVal.Split(',');<br />
string strResult= "";<br />
<br />
for (int i = 0; i <= newstrVal.Length-1; i++)<br />
{<br />
strResult += "'"+newstrVal[i].ToString()+"',"; <br />
}<br />
strResult = strResult.Substring(0,strResult.Length-1);
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you then save my time by voting my post.
|
|
|
|
|
Need to change permision of excel file before inserting data into it. Everything is working fine but i need to check whether file is readonly. if so the change its permision to Read/Write. how to do so. plz help at an earliest
|
|
|
|
|
use
File.SetAttributes(filepath, File.GetAttributes(filepath) And Not FileAttributes.ReadOnly)
Replace filepath with your actual file path....
Abhishek Sur
|
|
|
|
|
"Operation must use an updateable query". This is the error that code gives for the first time and second time it runs smoothly. Ithink first time it makes file writeable but do not wrtie any into it and does that second time of its running.
Actually im inserting data into excel file using ADO
|
|
|
|
|
Sir,
I need urgent help in choosing an ASP.NET project. I want to do the project as part of my studies. I just want a list of few good ASP.NET project titles. Will u please type in a few ASP.NET projects(the name of the project).
In my college the examiners are well familiar about the usual projects like ONLINE EXAMINATION, ONLINE DIARY, ONLINE HOSPITAL MANAGEMENT like that.
I WANT AN ADVANCED ASP.NET PROJECT. Please provide me a list of good advanced projects in ASP.NET which are nice to present before my examiners.
Hope u reply soon
Sherin
|
|
|
|