15,887,135 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 hamid-shrk (Top 16 by date)
hamid-shrk
3-Nov-16 13:44pm
View
Thank you my dear friend, it works greatly :)
hamid-shrk
3-Nov-16 13:15pm
View
Deleted
I put it:
public IQueryable<simcardoutput> GetSimCardBySearch(string number)
{
var context = new Entities();
var simcard = context.SimCards;
var operators = context.Operators;
var rondtype = context.RondTypes;
var city = context.Cities;
Regex rr = new Regex(number.Replace("*", @"\d"));
var query = from s in simcard
join o in operators on s.IdOperatorFK equals o.IdOperator
join r in rondtype on s.IdRondTypeFK equals r.IdRondType
join c in city on s.IdCityFK equals c.IdCity
where
rr.Match(s.Number).Success
select new SimCardOutPut()
{
IdSimCard = s.IdSimCard,
Operator = o.Title,
RondType = r.Title,
City = c.Title,
Number = s.Number,
Type = s.Type,
Status = s.Status,
Quality = s.Quality,
Seller = s.Seller,
Price = (Int64)s.Price,
ShowType = s.ShowType,
Active = (Boolean)s.Active
};
return query;
}
and the result was:
LINQ to Entities does not recognize the method 'System.Text.RegularExpressions.Match Match(System.String)' method, and this method cannot be translated into a store expression.
hamid-shrk
8-Mar-13 8:42am
View
oh i forgot this,
very very thank you.
hamid-shrk
8-Mar-13 6:09am
View
why when id don't use update panel validation controls doesn't work correctly?
hamid-shrk
8-Mar-13 6:02am
View
i think you don't understand my problem,
dear Reje, when i use validation controls, they doesn't work and page refresh.
hamid-shrk
8-Mar-13 6:00am
View
Deleted
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Elvatra.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="upd" runat="server">
<contenttemplate>
<asp:TextBox ID="TextBox1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator">
</div>
</form>
</body>
</html>
hamid-shrk
8-Mar-13 5:51am
View
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Elvatra.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:updatepanel id="upd" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:TextBox ID="TextBox1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="RequiredFieldValidator">
</div>
</form>
</body>
</html>
hamid-shrk
8-Mar-13 5:41am
View
I used it but the page refreshed again :(
hamid-shrk
8-Mar-13 5:27am
View
no, this is my page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Elvatra.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="RequiredFieldValidator">
</div>
</form>
</body>
</html>
when i didn't use update panel, the validation controls refreshing my page again
hamid-shrk
26-Apr-12 12:42pm
View
your welcome :)
hamid-shrk
25-Apr-12 4:56am
View
:)
hamid-shrk
25-Apr-12 3:37am
View
Tank you Mohamed
hamid-shrk
25-Apr-12 3:35am
View
Deleted
Tank you Mohamed
hamid-shrk
18-Apr-12 14:06pm
View
the dear fellow,check your link with mine.
(زنده باد ایرانی)
hamid-shrk
18-Apr-12 9:48am
View
your field type in DB is "image" type or "varchar" ,... ?
hamid-shrk
16-Apr-12 8:29am
View
hi,
what is your regular expersion for not allowed characters?
Show More