|
i think he is confused himslef !!! he dont know what to do !!!
|
|
|
|
|
simple
i have two stirng
string s1 = "a";
string s2 = "b";
when concatenate both string then show result
c = s1 + s2;
c = "\"a\"\"b\""
but i want to result
c = "a""b";
|
|
|
|
|
Did you check my last post that i have give with your "same problem" Reply
|
|
|
|
|
Try to run this code !!!
string a="\"a\"";
string b = "\"b\"";
string c = a + b;
string d= "c="+c;
Response.Write(d);
Note : Use StringBuilder Rather Than String
|
|
|
|
|
string a="\"a\"";
string b = "\"b\"";
string c = a + b;
string d= "c="+c;
Response.Write(d);
USer String Builder Rather Than String !!!
|
|
|
|
|
|
Hi,
In my application I have to give ftp access to site users.
Their username and password will be same that they use to access the sites.
Is their any way to set their ftp account by application or have to do this manually.
Thanks in advance.
modified on Friday, August 29, 2008 10:04 AM
|
|
|
|
|
I think you have to create FTP user account manually and from with code you may invoke ftp upload.... through the FTP session opened through userid and password credentials....
I dont know the way to create FTP session from HTTP requests...
Is it possible.. If someone knows I would also like to know...
Abhishek Sur
|
|
|
|
|
Is possible to change the master page at runtime. tnx in adv.
Balasubramanian K.
|
|
|
|
|
yes u can
Page.MasterPageFile = "name of master page"
|
|
|
|
|
yes and This should be write in Page_PreInit() Event .
|
|
|
|
|
yes. You can change it on Page_PreInit() Event
protected void Page_PreInit(object sender, EventArgs e)
{
if (Request.Params["PageName1"] != null)
{
this.MasterPageFile = "~/MasterPages/PageName1.master";
}
else if (Request.Params["PageName2"] != null)
{
this.MasterPageFile = "~/MasterPages/PageName2.master";
}
else
{
this.MasterPageFile = "~/MasterPages/Default.master";
}
}
|
|
|
|
|
Yah.. thank you
Balasubramanian K.
|
|
|
|
|
Hi..
I want to show world map in my web page. I have different users on my site coming from various locations. I want to mark the countries from where my users have come in this map... how can i do this...
|
|
|
|
|
|
|
hey your link is not working.... .
Abhishek Sur
|
|
|
|
|
you can use imagemap control, in short, in imagemap you can define an area with navigationurl,tooltip etc just google about it
|
|
|
|
|
Hi gettting error in thos code:
foreach (ListViewItem lvi in lvEmployee.Items)
{
CheckBox chk = (CheckBox)lvi.FindControl("ICheck");
if (chk.Checked==true)
{
getchoice11 += "'" + lvi[2].ToString().Trim() + ",";
}
}
"Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'"
whats wrong in that code?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
hi ,
how can i block copy/paste option (or) right click for a text box in firefox both in keyboard and right click option in mouse...
its working in IE...
Ashok
|
|
|
|
|
onmousedown="return false;"
onkeydown="return false;"
|
|
|
|
|
hi,
ur code is working in IE but not in firefox... I ve tried this already...
Any idea
Ashok
|
|
|
|
|
use this javascript:
function noCopyKey(e) {
var forbiddenKeys = new Array('c','x');
var keyCode = (e.keyCode) ? e.keyCode : e.which;
var isCtrl;
if(window.event)
isCtrl = e.ctrlKey
else
isCtrl = (window.Event) ? ((e.modifiers & Event.CTRL_MASK) == Event.CTRL_MASK) : false;
if(isCtrl) {
for(i = 0; i < forbiddenKeys.length; i++) {
if(forbiddenKeys[i] == String.fromCharCode(keyCode).toLowerCase()) {
alert('This action has been restricted, for more information contact MJM');
return false;
}
}
}
return true;
}
|
|
|
|
|
hi,
thanks 4 ur reply...
this code is working to block on keyboard to copy/paste... But i cannot block right click and paste from mouse button...
Ashok
|
|
|
|
|
try this:
if ( document.layers )
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e)
{
if ( e.target == document )
return false;
}
}
else
{
document.onmousedown = function()
{
return false;
}
}
|
|
|
|