15,900,907 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 Member 12893295 (Top 18 by date)
Member 12893295
20-Sep-18 9:42am
View
Deleted
public static bool hasValidCharforContactNo(string input)
{
Regex r = new Regex(@"^\d{10}$");
if (r.IsMatch(input))
{
return true;
}else
{
return false;
}
}
Member 12893295
20-Sep-18 6:19am
View
Deleted
Its working bymistake i have added true into else condition you need to replace the true by false into else condition.
public static bool hasValidCharforContactNo(string input)
{
Regex r = new Regex(@"^\d{10}$");
if (r.IsMatch(input))
{
return true;
}else
{
return false;
}
}
Please check it.
Member 12893295
20-Sep-18 6:12am
View
Thanks a lot...
Member 12893295
20-Sep-18 3:32am
View
I got whatever you told but im just asking to workaround..
Member 12893295
20-Sep-18 2:48am
View
is any alternative for it
Member 12893295
20-Sep-18 2:11am
View
you mean to sey that you need to open website into desktop application or what?
Member 12893295
6-Jul-18 14:15pm
View
You need to use the rowcommand or rowdatabound event for get the row values of gridview
Member 12893295
6-Jul-18 14:09pm
View
I think, windows authentication does not showing the popup.Have you add windows authentication into web.config file and also use Httpcontext to get the windows authentication user.
Member 12893295
30-Mar-18 14:26pm
View
should i put the code into rowcommand event or any other event? becoz i have done with row commmand whatever you gave but is not working. i put my code below:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Always" runat="server">
<contenttemplate>
<asp:GridView ID="grdUpdate" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84"
BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
OnRowCommand="grdUpdate_RowCommand" OnRowDataBound="grdUpdate_RowDataBound">
<columns>
<asp:TemplateField HeaderText="Edit">
<itemtemplate>
<asp:ImageButton ID="lbledit" runat="server" CommandArgument='<%#Eval("ID") %>'
CommandName="Edit" CausesValidation="false"
ImageUrl="~/Images/RIDER LOGO.ico" Width="20px" Height="20px" />
<asp:TemplateField HeaderText="ID">
<itemtemplate>
<asp:Label ID="lblID" runat="server" Text='<%#Eval("ID") %>'>
<asp:TemplateField HeaderText="Name">
<itemtemplate>
<asp:Label ID="lblName" runat="server" Text='<%#Eval("Name") %>'>
<asp:TemplateField HeaderText="Age">
<itemtemplate>
<asp:Label ID="lblAge" runat="server" Text='<%#Eval("Age") %>'>
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FFF1D4" />
<SortedAscendingHeaderStyle BackColor="#B95C30" />
<SortedDescendingCellStyle BackColor="#F1E5CE" />
<SortedDescendingHeaderStyle BackColor="#93451F" />
ID
<asp:TextBox ID="txtid" runat="server">
Name
<asp:TextBox ID="txtName" runat="server">
Age
<asp:TextBox ID="txtAge" runat="server">
--------------------------------------------------------
protected void grdUpdate_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
if (e.CommandName == "Edit")
{
ImageButton img = (ImageButton)e.CommandSource;
GridViewRow row = (GridViewRow)img.NamingContainer;
Member 12893295
23-Apr-17 8:48am
View
thanks its working for me...
Member 12893295
23-Apr-17 8:47am
View
Thanks its working for me...
Member 12893295
20-Apr-17 6:27am
View
i have tried like this but it didn't get
function GetPlantName() {
var dataservice = new function () {
ConsoleName = function (callback) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService1.asmx/GetConsoleName",
async: false,
dataType: "json",
success: function (response) {
callback(response.d.data);
}
});
};
return {
ConsoleName: ConsoleName
};
} ();
var tmp2 = null;
dataservice.ConsoleName(function (data) {
tmp2 = data;
alert(tmp2);
});
}
Member 12893295
16-Apr-17 10:52am
View
Thanks it working for me.
Member 12893295
14-Apr-17 1:31am
View
jquery-1.12.4.js actually i have ajax call inside ajax call so the async =false settitng will impact on other ajax call????
Member 12893295
13-Apr-17 4:22am
View
Got and error like Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
Member 12893295
13-Apr-17 2:37am
View
it resolved their is ajaxcontroltoolkit problem....sorry for late
Member 12893295
13-Apr-17 2:37am
View
it resolved their is ajaxcontroltoolkit problem....sorry for late
Member 12893295
13-Apr-17 2:37am
View
it resolved their is ajaxcontroltoolkit problem....sorry for late
Show More