15,898,035 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by udaysimha (Top 26 by date)
udaysimha
22-Mar-12 4:32am
View
Following is the my code:
function addDropdown(GUID) {
var newSelect = $("<select id='SelectedRoles" + index + "' önchange='addoperand(" + index + ")' name='SelectedRoles" + index + "'></select>");
for (var i = 0; i < ddlOperand.length; i++) {
if (GUID != '' && GUID != null) {
newSelect.append("<option value='" + GUID + "'>" + ddlOperand[i] + "</option>");
}
else {
newSelect.append("<option value='" + ddlOperand[i] + "'>" + ddlOperand[i] + "</option>");
}
}
var newimage = $("<br/><img önclick='closeselectederow(" + index + ")' id='img" + index + "' src='../../images/cancel_cross.png'/>"); /* uday */
$("#addcritiriatable").append(newimage); /* uday */
$("#addcritiriatable").append(newSelect);
index++;
}
// removing controls dynamically./* uday */
function closeselectederow(index) {
$("#img" + index).remove();
$("#SelectedRoles" + index).remove();
$("#opratorddl" + index).remove();
$("#operandvaluesrddl" + index).remove();
}
<table id="addcritiriatable" border="10" style ="height:auto;">
</table>
udaysimha
23-Nov-11 0:19am
View
Hi boss,
I changed code like you suggested,and i execute my application by giving wrong input that is like 423.1, customvalidator is returning true and the rest of controls in page are not validating by Requiredfield validator and page returning true then system throwing "input string was not in corret format" .
Is IndexOf() is available to the function Chkdecimalvalidation(sender, args)?
udaysimha
22-Nov-11 8:57am
View
hi bossplease explain me under standable form, yes i am a BAD programer....
whether the way i am following is right? give me your valuble suggetions.
udaysimha
22-Nov-11 8:23am
View
yes now i understood what your said, i tryed like below
function Chkdecimalvalidation(sender, args)
{
var s = args.Value;
var decPos = s.IndexOf('.') + 1;
if (decPos >= 1 && (s.Length - decPos) > 3)
{
args .IsValid=true ;
}
else
{
args .IsValid=false ;
}
}
even thought i did`t result.
udaysimha
22-Nov-11 6:04am
View
HiI looked at your exampls and links, in that founds only index of a specified character.
Here my requirement is to find decimal point if it exits and no.of digits after decimal.If there is no decimal point no need to check the user input.
I am calling Chkdecimalvalidation(serber, args) function from CustomValidator here.
udaysimha
22-Nov-11 5:38am
View
Hi Eduard Lu
Thanks for your reply,i tryed with you suggestd reg-ex ^[0-9]([\.\,][0-9]{1,3})?$
it`s not working, i tryed by givig values like 234(should accept),
233.334(should accept), 23.1(shold not accept), 233.43235(should not accept)
follow my code:
<asp:RegularExpressionValidator ID="revlength" runat ="server" ControlToValidate ="txtLength"
ErrorMessage="wrong" ValidationExpression ="^[0-9]([\.\,][0-9]{1,3})?$" >
udaysimha
22-Nov-11 5:30am
View
Hi Boss,
Thanks for your quick reply, i am not joking, i am a beginer past 2 monts only i am working in asp.net.
Actual my requirement is i am tryint to validate textbox value with CustomeValidator to check how many digits are entered after decimal point if it exits.If it is more then 3 digits it should not be accept user input.
just follow my code what i tryed
function Chkdecimalvalidation(serber, args)
{
var txtval=args .Value;
var splitvalue=txtval.Value.split(".",2);
if(isNaN (splitvalue[0])|| isNaN (splitvalue[1]))
{
if(splitvalue[1]!= null )
{
if(splitvalue [1].length == 3)
{
args .IsValid=true ;
}
else
{
args .IsValid=false ;
}
}
else
{
args .IsValid=false ;
}
}
else
{
args .IsValid=false ;
}
}
i am not getting correct result. I think split() is not avilable here.
Please help me.
Thanks
udaysimha
22-Nov-11 4:59am
View
Hi
Thanks for your reply.Please can you explain with some example code.
Any help would be appriciated.
Thanks
Uday
udaysimha
9-Nov-11 5:17am
View
Hi P.Singh
Thanks a lot for your reply.
udaysimha
9-Nov-11 2:59am
View
hi P.singh
Thanks for u r reply, i have a doubt that there is no BigInteger datatype in c#,
if we want how to get that datatype or is there any alternative is avilable for BigInteger in c#.
please let me know.
udaysimha
1-Nov-11 4:36am
View
Hi Anuja,
Thanks for your reply,here i am using JQuery to pop`s up Calendar when user click on TextBox.After clicking on TextBox a calendar is poping up and if user press keys in keyboard from 0 to 9 and symbal "/" it(text box) accepting that. So i want to restrict user to enter any data rather i want to allow user to select date form calendar only.
If you have any idea please help me.
Thanks
uday
udaysimha
31-Oct-11 9:15am
View
Hi Anuja
Thanks for your`s reply.Can you please explain me about onclick="Showcalander1(event)" and why you takes image tag here.
I tried this
txtDate.Attributes.Add("readonly", "readonly");
it`s not working
Please give me some explation to understand better.
Thanks
uday
udaysimha
31-Oct-11 8:21am
View
Hi Anup Das Gupta
Thanks for your`s reply,Here my requirement is not to validate the date entered by the user .Here whenever user moves cursor into date filed Textbox it will pop the calendar, user should select date from calendar only and user should not allow to enter date manualy(means by pressing keys in keyboard).
Please help me to achive this.ThanksUday
udaysimha
24-Oct-11 4:56am
View
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>Destination</HeaderTemplate>
<itemtemplate> <%#Eval("Destination")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"><itemtemplate><asp:ImageButton ID="ibEdit" runat="server" CausesValidation="False" CommandName="Edit"ImageUrl="~/images/Edit.gif" ToolTip="Edit" CommandArgument='<%# Container.DataItemIndex %>'><HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
please help me to solve this error.
Thanks
udaysimha
24-Oct-11 0:59am
View
Hi AlokZanwar,
Thanks for your reply and suggestion.Here i am puting gridview html code:
<asp:GridView ID="gvTransactionDetails" runat="server" Style="left: -3px; position: relative;
top: 44px; width: 641px;" AutoGenerateColumns="False" ShowFooter="false" CellPadding="4"
ForeColor="#333333" GridLines="None" OnRowEditing="gvTransactionDetails_RowEditing"
OnRowCommand="gvTransactionDetails_RowCommand" OnRowDataBound="gvTransactionDetails_RowDataBound"
DataKeyNames="TDID" AllowPaging="True" onpageindexchanging="gvTransactionDetails_PageIndexChanging" PageSize="20">
<footerstyle forecolor="White" font-bold="True" backcolor="#1C5E55">
<rowstyle backcolor="#E3EAEB">
<columns>
<asp:BoundField HeaderText="CVRelID" DataField="CVRelID" Visible="false" />
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
TransID</HeaderTemplate>
<itemtemplate>
<%#Eval("TransID")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField Visible="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate> VendorID</HeaderTemplate>
<itemtemplate>
<%#Eval("VendorID")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
VendorName</HeaderTemplate>
<itemtemplate>
<%#Eval("VendorName")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField Visible="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>CustomerID</HeaderTemplate>
<itemtemplate>
<%#Eval("CustomerID")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>CustomerName</HeaderTemplate>
<itemtemplate>
<%#Eval("CustomerName")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>Origin</HeaderTemplate>
<itemtemplate> <%#Eval("Origin")%>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle><itemstyle horizontalalign="Center">
udaysimha
24-Oct-11 0:50am
View
Hi SAKryukov,
Thanks for your replay and advice.Here gridview contains 26 rows, size of the page i set to 20.Whenever i am trying to edit the first 20 rows which are present in first page there is no problem at all.The problem is whenever i am trying to edit rows from 21 or more it`s throwing exception.
The line igvTransactionDetailsIndex is used to find the index of row which is going to edit.it getting the index of row which is going to edit currectly but the next line that as below
GridViewRow gvTransactionDetailsrow = gvTransactionDetails.Rows[igvTransactionDetailsIndex];//exception throwing here
The gridviewrow object gvTransactionDetailsrow is returning null.
Please suggest me to solve this problem.
Thaks
Uday
udaysimha
13-Oct-11 9:28am
View
Hi kishorekke,
Thanks for your reply for may post.
udaysimha
11-Oct-11 3:50am
View
Hi thanks for your reply.
I tryed the way you suggested it not showing any error but Rowcommand event is not fireing, please can you help me.
udaysimha
4-Oct-11 4:42am
View
Hi Syed salman
Thanks for your`s reply,i tryed the way you suggested but it`s not working and RowUpdating event is not executing.
here we are clicking Update link button that means it is postback. please can you give me some more Suggestions about this.
udaysimha
24-Sep-11 8:43am
View
Hi Costica,
Thanks for your`s replay boss,please can you explain the use of QUOTENAME() function and how it will be usefull for my requirement here.
udaysimha
22-Sep-11 1:22am
View
Thanks jb_fubar it is working well.
udaysimha
21-Sep-11 9:25am
View
it working fine
Thanks
udaysimha
16-Sep-11 4:54am
View
Deleted
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate >
Date</HeaderTemplate>
<itemtemplate>
<%#Eval("SFInformationDate")%>
<edititemtemplate>
<asp:TextBox ID ="txtDate" runat ="server" Text ='<%#Eval("SFInformationDate")%>' >
<footertemplate>
<asp:TextBox ID="txtSFDate" runat="server">
udaysimha
16-Sep-11 4:51am
View
Hai Sunasara Imdadhuse, Thanks for your reply, but it showing an errror
"The name 'txtSFDate' does not exist in the current context"
Actually txtSFDate is avilable in current cotext.
see the code below for javascript:
<script>
$(document).ready(function() {
var textbox='<%= txtSFDate.ClientID %>';
$('#' + textbox).datepicker();
});
</script>
see code below for design:
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate >
Date</HeaderTemplate> <itemtemplate>
<%#Eval("SFInformationDate")%>
<edititemtemplate>
<asp:TextBox ID ="txtDate" runat ="server" Text ='<%#Eval("SFInformationDate")%>' >
<footertemplate>
<asp:TextBox ID="txtSFDate" runat="server">
udaysimha
26-Aug-11 4:40am
View
Thaks for your reply, i understanded what your sad, here i am show the code for
dbpinsidentdetails.InputParam(...), please gothrough the code and advise me.
public void InputParam(string paramName,int paramValue)
{ Param= Com.Parameters.Add(paramName,SqlDbType.Int);
Param.Direction=ParameterDirection.Input;
Param.Value = paramValue; }
Note: second argument 'paramValue' will change based on input data type.Thanks
K Uday
udaysimha
18-Aug-11 7:28am
View
Hi,
I tried all what your suggested there i getting correct result, but in SP only i did`t get correct result.
Show More