|
My personal fav is CodeSmith:
http://www.codesmithtools.com
Oddly, the site is down right now... Might give it a try later hehe
|
|
|
|
|
Hi.
i hv prblem ,i hv server control textbox on a form,i wnt to validate the entered value in the textbox,the value mst be digit range 0 to 9,if the user enter the alphabetic word like A,B up Z,it prompt the user plz enter the digit..the textbox is taking the phone Number..
i wnt to do this through javascript..on client side..
tell me on which event of textbox i use and how ,plz help me
waiting for rply
|
|
|
|
|
Try writing in English, not SMS-SPK
Also, try using a descriptive title rather than "plz help me"
Read this[^] for further information on getting answers to your questions!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 5:05 Monday 26th June, 2006
|
|
|
|
|
Use textbox's onkeypress event to prevent the user from entering invalid characters.
function ValidateInt(e)
{
if (navigator.appName == "Microsoft Internet Explorer")
{
if (e.keyCode < 48 || e.keyCode >= 58)
{
return false;
}
else
{
return true;
}
}
if (navigator.appName == "Netscape")
{
if (e.which < 48 || e.which >= 58)
{
if(e.which == 0 || e.which == 8)
{
return true;
}
else
{
return false;
}
}
}
<asp:textbox id="txtPhoneNo" onkeypress="javascript:return ValidateInt(event);" runat="server">
Hope this will help u
Regards,
Uma
|
|
|
|
|
hi,
its pretty good ,i also make the script thnks for this,
bt the problem is still exist ,how can i call this script from the code in vb.net.and which of the server control event i used to,ontextchange event or anyother else..
thnks
|
|
|
|
|
For the server contorl textbox ONkeypress event u write this and hope it will work. U can write it in the HTML itself.
<asp:textbox id="phoneno" onkeypress="javascript:return ValidateInt(event)">
This is how we do in C#.NEt
Hope this will work with VB.NET aswell.
Tyr it
Regards,
Uma
|
|
|
|
|
Hello all,
for asp.net 1.1 project, i have oracle 9i client. Using 9i client i am able to access the clinet. but with asp.net application it is giving following error
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
i am given permissions to ora92 folder. still it is givng same problem
any solution.
regards
GV Ramana
|
|
|
|
|
Hi Ramana,
this is the same problem, i am facing. If u got any solution, Plzz let me know.
Regards
Manish
|
|
|
|
|
Hello all,
our asp.net 1.1 site, in our home page there are few links. that links javascipt written in C#
objCell.Attributes.Add("onmouseover", "Javascript:moveOver_LeftMenu();");
objCell.Attributes.Add("onmouseout", "Javascript:moveOut_LeftMenu);");
this is working fine for IE6. but problem with it is not working in case of Mozilla firefox browser.
my qtn is how to handle in case of Mozilla.
any sounds or suggestions are appriciated.
regards
GV Ramana
regards
GV Ramana
|
|
|
|
|
Hi all,
I have DataGrid and one of the column is Checkbox.This column is of Status.When I Bind Datagrid I have the value for that column as 0 or 1.Now Depending on this 0 and 1 I need to make it checked or un-checked before binding datagrid.How should I go for this?
Also I have a button which is outside the datagrid when I click that button I need Update the Status depending upon the checkbox checked or un-checked.
I hope I have made my self clear.
Thanks in advance.
|
|
|
|
|
To bind the datagrid checkbox control you can use onitemdatabound event of the datagrid. And on submit button what you need to do is to iterate through all the elements of the datagrid find the control get the value and save it.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I am not able to save it.Following is the code:
ArrayList arrStatus = new ArrayList(dgChecklist.Items.Count);
for(int cntRow = 0; cntRow < dgChecklist.Items.Count; cntRow++)<br />
{<br />
<br />
CheckBox chked = (CheckBox)dgChecklist.FindControl("cbStatus"); if(chked.Checked == true)<br />
{<br />
arrStatus.Add(1);<br />
}<br />
else<br />
{<br />
arrStatus.Add(0);<br />
}<br />
}<br />
cchecklist.Status = arrStatus;
It gives runt ime error for the line
CheckBox chked = (CheckBox)dgChecklist.FindControl("cbStatus");
Please help.
Thanks.
|
|
|
|
|
HI
if u dont mind plz send me the code of the routine that u call in the onitemdatabound..and the code where u got the error
Best Regards
|
|
|
|
|
hi,
Use foreach item of the datagrid to get the item details.
also go through this article it will be helpful.
http://www.c-sharpcorner.com/Code/2003/Jan/AccessDataGridVal.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks to both of u.My code is working fine now.
Thanks.
|
|
|
|
|
Hi,
Plz can anybody help me to get codes on credit card processing in billing
Smiles,
Sparkling Star
|
|
|
|
|
|
/* ================================================================
FUNCTION: isCreditCard(st)
INPUT: st - a string representing a credit card number
RETURNS: true, if the credit card number passes the Luhn Mod-10
test.
false, otherwise
================================================================ */
function isCreditCard(st) {
// Encoding only works on cards with less than 19 digits
if (st.length > 19)
return (false);
sum = 0; mul = 1; l = st.length;
for (i = 0; i < l; i++) {
digit = st.substring(l-i-1,l-i);
tproduct = parseInt(digit ,10)*mul;
if (tproduct >= 10)
sum += (tproduct % 10) + 1;
else
sum += tproduct;
if (mul == 1)
mul++;
else
mul--;
}
// Uncomment the following line to help create credit card numbers
// 1. Create a dummy number with a 0 as the last digit
// 2. Examine the sum written out
// 3. Replace the last digit with the difference between the sum and
// the next multiple of 10.
// document.writeln(" Sum = ",sum," ");
// alert("Sum = " + sum);
if ((sum % 10) == 0)
return (true);
else
return (false);
} // END FUNCTION isCreditCard()
------------------------------------------
Boss asked me to Develop in "Java" or "Better"
So Developed in .NET
|
|
|
|
|
Hi,
Thanks alot. i wanted to know about the credit card processing with the gateway
|
|
|
|
|
Here's what happened:
I created an ASP.NET eCommerce site half year ago for a school assignment, it was deployed locally on my hard drive, and everything worked.
However, I am planning to create a real eCommerce site now, so I had applied for a webhosting server that supports ASP.NET, and uploaded the assignment I did earlier and see how it would go.
To my surprise , all I get is the message:
<br />
Runtime Error <br />
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <br />
<br />
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
configuration<br />
system.web<br />
customErrors mode="Off"/<br />
/system.web<br />
/configuration<br />
<br />
<br />
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
configuration<br />
system.web<br />
customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/<br />
/system.web<br />
/configuration<br />
<br />
Is there anything else I need to do when deploying an ASP.NET site to a real webhosting server?
And another question, I was planning to store database information in an access database. Here's the question I'm wondering:
I suppose I should password protect the directory where the access databases (*.mdb) are placed. I assume I have to insert the login id/password when retreiving/writing the information in the database. But where do I insert them? And if I insert them in the codes won't others will be able to see the login id/password by viewing the source codes?
Or am I completely mistaken?
Any advice would be greatly appreciated!!!
|
|
|
|
|
Brotha, you're first step ought to be following the instructions on that error message up there to find out what is causing this bug. If you follow the instructions in this error message, it will display a much more specific error message indicating exactly what caused this failure. There should be very little different about a hosting provider vs. your local machine, but you'll never know until you see the real error message.
And as far as your MSAccess question, you set the connection properties in the web.config file. No one can download the web.config file, ASP.NET/IIS knows automatically to never serve up that file. If you need to find out how to setup the DNS within your web.config, you might wanna check out the this faq.
|
|
|
|
|
Hello All,
I am stuck with one problem. I am having one asp.net application in .net framework 2.0 and there is one link to open share point portal. I don't want to get login screen in share point when my user click the link from my asp.net application as he is already get login to my application.
Please help me ASAP.
Thanks,
Ritesh Shah
------------
ritesh4web@gmail.com
|
|
|
|
|
I have to use tree view control on .NET web form.
when i open new project in .net and select web form , web form is opened, but in tool box of web form, i do not find tree view control as we found that in windows form tool box.
my project requirement is to use tree view control in web form.
How to go about this?
Thanks in Advance
sandy
|
|
|
|
|
|
Hi,
I have a textbox.I want to check if data entered in it contains any characters other than digits from 0 to 9.How can I do that. Are there any built-in functions to do this.I don't want to restrict the entry of characters. I want to know whether the data is numeric or alphanumeric.
Regards,
Uma
|
|
|
|