|
LazhiniP is true.Remove "+" it will work fine.
|
|
|
|
|
No...if i remove '+' it gets compiled but i m throws a run-time error stating "input string is not in correct format".
Whether '+' operator doesn't work for parameter passing or in function definition?
Yazhini
|
|
|
|
|
if you think the problem is with "+"
Response.Write("First" + "Second"
+ "Third"
);
Try this
|
|
|
|
|
Hi all,
That was my First Article in Code Project. I have finished writing the content. Still my article showing PENDING. What to do next ?
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
there is one checkbox which indicated "Work in Progress - do not make public"
check whether u have selected that.
Padmanabhan
|
|
|
|
|
Hi,
That Check Box is not Checked. Should I check it now ?
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
no don't check it. Wait for few days. They will edit and publish it.
Padmanabhan
|
|
|
|
|
For clarifications on articles in CP, you should write to submit (at) codeproject.com.
Furthermore, this question befits to be posted on 'Site Suggestions and Bugs' forum since that is expected to be more frequently checked by Site Management Team than this one.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
i have used window.showModelessDialog to show my page but when i click on the button on that page new window gets opened why is it so
|
|
|
|
|
Add the following tag within the <html> tag to avoid opening a new window during postbacks in showModalDialog()
<head runat="server">
<base target=_self ></base>
</head>
|
|
|
|
|
Hi all,
I am using iTextSharp for exporting to PDF.I want to know how to apply page border to it.
Can any one tell me how to do??
Thanks in advance.
|
|
|
|
|
|
Hi Everyone,
Can anyone help me out in creating a sample Hello world application using Restful webservices.
Thanks in Advance.
Regards,
Manowj
modified on Monday, May 25, 2009 6:39 AM
|
|
|
|
|
|
Good Article. It works , Please tell me if iam wrong , we are not using .asmx file and WSDL . Instead of these two, we have referenced the C# class library.
Thanks in Advance
Regards,
Manowj
|
|
|
|
|
Hai all,
I have a multiline text box. I want to limit the charaters inside the textbox to 250. For that i written this code
in cs file i added the attributes like(txtEmpWithA is my textbox name)
this.txtEmpWithA.Attributes.Add("OnKeyPress", "txtreason_limit(event)");
and the function in aspx file
function txtreason_limit(evt)
{
if(document.form1.txtEmpWithA .value.length == 250)
{
evt.keyCode = 0;
return;
}
}
This is working fine when i am typing there ,but if i copy and paste,it taking more than 250 charactors
Please help
|
|
|
|
|
this can be handled by 2 ways
1) by writing the code for validating whether the text is greater than the length
if (TextBox1.Text.Length > 250)
{
Response.Write("The text is greater than 250");
}
(or)
2) disable copy and paste.
function DisableCopyPaste() //Prevents Copy, Paste, Select, ContextMenu in TextBox and MultiLine TextBox controls.
{
var myForm = document.forms[0];
for (var i = 0; i < myForm.elements.length; i++)
{
var elementType = myForm.elements[i].type;
if (elementType == 'text' || elementType == 'textarea')
{
document.getElementById(myForm.elements[i].id).onpaste = function(){return false;};
document.getElementById(myForm.elements[i].id).oncontextmenu = function(){return false;};
document.getElementById(myForm.elements[i].id).onselectstart = function(){return false;};
document.getElementById(myForm.elements[i].id).ondragstart = function(){return false;};
}
}
}
//paste this in page load
ClientScript.RegisterStartupScript(this.GetType(), "StartUpScript", @"DisableCopyPaste();");
Padmanabhan
|
|
|
|
|
It's a better way to use a custom validation control provided by the VS IDE.
Welcome to www.softwaretree.net!
This website is generated completely by static html pages transforming technology.
You can find many excellent audio/video tools there!
|
|
|
|
|
Hi all,
I am using a tab container,in that there are two tab panels.In one tab panel i have a gridview and in another some controls like textboxes.Problem is when i click on view button of gridview i want to display that particular record in the another tabpanel with the values in those controls.
can any one give me the solution for it.
Thanks in advance.
|
|
|
|
|
set the correct tabindex for the tabpages and the correct page is visible.
If you want 1 row of data out of your gridview you need select option add each gridviewrow of the gridview. The DataKeyName must also best so you know the selectedvalue (index value of your table in your database). With thatr value you can retrieve the neede values four your other tabpage
Where is your select button placed?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
hello
I've generated a keypair using sn.exe as follows:
STEP 1.generate snk file via "sn.exe -k" command:
sn.exe -k MyKeypairs.snk
STEP 2.install the keyset into a KeyContainer via "sn.exe -i" command:
sn.exe -i MyKeypairs.snk MY_RSA_Container
I understand that generally, they are used for assembly signing. I am asking if I can convert this (using makecert perhaps?) into a X509 test cert so I can install it on IIS?
Thanks
REF: http://www.devatwork.nl/index.php/2007/05/31/wcf-username-authentication/[^]
dev
|
|
|
|
|
Hello,
I use ASP .NET to publish office document on the web.
My problem is I want to modify Excel file through IE
(without downloading them).
I need to open the Excel sheet using IE and do all the functions available in Excel like grouping, merging cells and changing cell colors etc...
Has anybody got some tips for me ? Any suggestions would be appreciable?
CodingRocks
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Excel Services in the SharePoint 2007 can be used to use, share, calculate and edit Excel Workbooks online.
|
|
|
|
|
I am using Microsoft.Office.Interop.Owc11 for the excel editing.
But when I tried to open the file using the following code in Page Load event
public string SSxml;
protected void Page_Load(object sender, EventArgs e)
{
SpreadsheetClass spsh = new SpreadsheetClass();
string str = Server.MapPath(".") +"\\test.xls";
SSxml = spsh.XMLData;
}
I am getting an error saying "Exception from HRESULT: 0xE0040104"
How can I fix this issue.
I want to open the test.xls file as XMl Spreadsheet now.
CodingRocks
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi,
Iam run my Project in local system or online some characters are included in the address bar how to remove the this characters or how to solve this problem...eg:www.code.com/(S(v3b0chfior2fd03m2xv5ba55))/default.aspx
Thanks in advance...
|
|
|
|