16,015,809 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 .NET 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 _ProgProg_ (Top 91 by date)
_ProgProg_
31-May-20 17:04pm
View
Thanks a lot. I will mark this as the right answer.
Do you have a working example with google reCaptcah?
_ProgProg_
22-Jan-19 0:32am
View
Now i save all tokens in a DB Table then i am validating only the latest one. But if there is a way to get all tokens using identity with each token date that will be better.
_ProgProg_
21-Jan-19 0:47am
View
The current behavior is:
You can generate many tokens, but when you use one of them for resetting, the others are disabled. I want to disable all previous while generating new.
_ProgProg_
7-Jul-18 5:25am
View
Could you please give me example?
_ProgProg_
7-Jul-18 4:58am
View
I simply have data from data base not exported to any file format.
I want to export it to .xlsx format.
_ProgProg_
7-Jul-18 4:25am
View
Rows and columns. Arabic data
_ProgProg_
24-Apr-18 9:41am
View
can you give me a detailed example?
_ProgProg_
23-Apr-18 4:46am
View
Yes but unfortunately i am not using repository pattern.
_ProgProg_
11-Feb-18 2:35am
View
Thanks a lot.
I wanted to do that for my own pc. I didn't intend to use it to harm anyone.
_ProgProg_
15-Dec-16 0:40am
View
you are the sock puppet. USELESS..
_ProgProg_
14-Dec-16 6:34am
View
really? if you don't know the answer, then don't reply.
_ProgProg_
14-Dec-16 1:27am
View
Deleted
really? if you don't know the answer, then don't reply.
_ProgProg_
28-Jun-16 5:50am
View
Yes this is what i want which is to create a new document contains the both pages without creating pdf for each byte array. I mean using the two byte arrays directly to generate the new document.
Is that applicable?
_ProgProg_
28-Jun-16 5:38am
View
Couldn't i merge the two byte arrays and then save them???
_ProgProg_
9-May-16 5:22am
View
No Errors.
but these links used for windows forms application.
_ProgProg_
9-May-16 4:46am
View
any ides???
_ProgProg_
9-May-16 4:46am
View
i tried these links but it didn't solve the problem as it works for windows forms applications
_ProgProg_
9-May-16 4:06am
View
Thanks alot for your help.
i will try that.
actually i searched alot but i didn't find what i need.
all i have found is code for C# not asp.net and nothing straight to solve my problem
Thanks..
_ProgProg_
8-May-16 6:10am
View
Couldn't i disable the download button?
_ProgProg_
5-May-16 9:48am
View
isn't there is any way to create the event log manually using command prompt?
_ProgProg_
14-Apr-16 8:17am
View
Thanks alot johannesnestler, I will keep searching and if i found anything helpful i will post it here.
_ProgProg_
14-Apr-16 7:45am
View
So, isn't there is anyway to create attributes on class properties dynamic?
_ProgProg_
14-Apr-16 7:41am
View
Ok, I appreciate your answer alot.
It's a code design principle in my company not to add a reference of Core project in WebApp.
Actually Core Classes Maps DB Tables with its attributes [i am using code first] so what do you mean by creating a wrapper and adding attributes to it.
Just to clarify why did i thought about this idea, if i have a property called EmployeeName which is mapped to a column [EmployeeName nvarchar 200] in Employees Table and i wanted to change column capacity of the column to be 300 i have to the following changes:
First, i have to change the string length property of EmployeeName in CORE Class to be 300.
Second, Run Migration to update database.
Third, Update EmployeeName property stringlength attribute to be 300 in EmployeeModel in WebApp to validate the property in UI.
All of what i want is to remove step NO 3 and when i update CORE Class attribute, the Employee model attribute will be created in runtime from the core class.
_ProgProg_
14-Apr-16 5:45am
View
Any Ideas???
_ProgProg_
6-Apr-16 1:36am
View
So, Isn't that applicable?
_ProgProg_
5-Apr-16 10:07am
View
Do i have to do that with all image pixeles? i mean do i have to loop through all the image pixels?
_ProgProg_
5-Apr-16 9:41am
View
can help me with code?
_ProgProg_
5-Apr-16 9:37am
View
Can you help me with this algorithm?
_ProgProg_
31-Mar-16 3:20am
View
Thanks, It works fine after i loaded assembly.
_ProgProg_
21-Mar-16 4:28am
View
Actully i tried again after removing this line of code:
Graphics graphics = Graphics.FromImage(bmp);
And it works fine now..
Thanks alot..
_ProgProg_
21-Mar-16 4:21am
View
Actually i called bmp.Dispose(); but the same issue occures.
Notice: I am using File.Delete outside bitmap scope.
Any Ideas??
_ProgProg_
17-Mar-16 8:25am
View
Thanks you so much for that
_ProgProg_
28-Dec-15 1:57am
View
thanks i found my own solution which is:
In the redirected page i am inheriting a custom class that inherits from System.Web.Ui.Page and in the page_init event i am setting the hidden field value based on the session variables.
That worked for me very good.
but your answer was the entry point for me.
Thanks....
_ProgProg_
28-Dec-15 1:45am
View
I appreciate your answer so much..
_ProgProg_
28-Dec-15 1:21am
View
yes i am setting the hiddenfield value before response.redirect but if i did that after response.redirect, this code will be unreachable.
Am i Right??
_ProgProg_
27-Dec-15 15:36pm
View
Actually i did that solution but i faced a problem.
I am setting the hiddenfield when the user login to the system with its type but it didn't keep the value and after it redirects to its page, it looses its value.
Do you have any idea???
_ProgProg_
16-Dec-15 7:13am
View
Thanks alot,
that was helpful
_ProgProg_
16-Dec-15 6:43am
View
@Sergey Alexandrovich Kryukov
Any Ideas??
_ProgProg_
16-Dec-15 3:12am
View
Okay Let me explain my case to you:
I am using entity framework Code First.
Employee Class which is in [HR.Core] Maps a DB Table called Employee and i am already defines its attributes like required, stringlength[200] , ......
Now I want the Employee Model Class [In HRApp] properties attributes to be with the same properties attributes of Employee Core Class without the need to define these attributes on the Employee Model class's properties directly and that is the point. Alot of times it happens that i am forgetting attributes or changing attributes values between Employee Core Class And Employee Model Class.
For Example:
Employee Name Property String Length in Employee Core Class is 200 and in Employee Model Class it is 500. (An Exception Is Thrown as i am trying to store 500 characters in 200 characters column).
So i thought about inheriting Employee Core Class properties attributes to be in Employee Model Class properties Attributes.
i have implemented a custom validation class which named CustomRequired will take for example the class name and property name as strings and these property will be required if the employee class mapped property is required.
Now i am ready to add the [CustomRequired("ClassName", "PropertyName")] attribute on any Model property which will make it required if the mapped one is required also.
Now I hope i have explained my point of view clearly
_ProgProg_
16-Dec-15 3:03am
View
Actually i am trying to make a method which takes the class name as a string and getting its type for some long logic.
If you want i can explain it.
_ProgProg_
16-Dec-15 1:08am
View
Thanks Rajdeep,
That was very helpful.
_ProgProg_
13-Dec-15 6:31am
View
Actually Rajdeep it gives me the same result.
The problem is that validation occurs after the Post Action not before.
[for example] If i added a required attribute on the employeeName property directly, then i pressed on the Post Action [Create Button] then validation occurs on client side.
But after implementing [ConditionalRequired], My condition is validated on server as it depends on the property value.
_ProgProg_
13-Dec-15 5:20am
View
It's a simple Create view with property EmployeeName.
For testing now i am using ConditionalRequired with always return false;
Here is My Code:
if (ModelState.IsValid)
{
//Some Code For Insert
//Some Code For Redirect
}
else
return View();
As You Can See, Now i added Else Statement to return to the same view and view the message that employee name is not valid.
So this is not occured until i press the Create button.
_ProgProg_
13-Dec-15 4:56am
View
Actually it did the purpose but the code is implemented after post action and i want that code run on rendering view.
_ProgProg_
13-Dec-15 4:16am
View
Can you give me more details of how to use this?
_ProgProg_
15-Apr-14 16:35pm
View
I 've tried the readonly property and the same problem exist
_ProgProg_
15-Apr-14 16:23pm
View
actually this link is not what i want but thanks for your effort
_ProgProg_
15-Apr-14 16:19pm
View
you are right in your thinking, But i am setting its value on another check box checked changed
so when it is checked, this text box value should be 1 else it should be false
_ProgProg_
24-Mar-14 6:00am
View
Any Ideas??
_ProgProg_
20-Mar-14 5:29am
View
Any Ideas?????????????
_ProgProg_
19-Mar-14 9:04am
View
I read about oracle cache dependency but i think that it's almost like what i am doing?
So may be i din't get your point.
Would you please be more specific.
_ProgProg_
19-Mar-14 5:38am
View
No i didn't But i am using Oracle DB.
Do i have to search for OracleCacheDependency instead of SqlCacheDependency ?
_ProgProg_
25-Feb-14 3:06am
View
Actually, I've posted this yesterday to telerik Forum but i 've no respond untill now!
here is the URL
http://www.telerik.com/forums/markfirstmatch-telerik-radcombobox-filter-one-character-only-in-ie-11
_ProgProg_
16-Feb-14 17:48pm
View
Deleted
Thanks to you Guys but i've found the Solution.
Right click on the solution file in Solution explorer window and select reload ploject
this will convert the application to vs 2013
_ProgProg_
16-Feb-14 16:49pm
View
i Appreciate your comment
I tried to open the Solution which made with VS 2010 But i didn't get any Conversion messages
i 've just got a message "Unavailable" and the project was unloaded
_ProgProg_
30-Jan-14 8:57am
View
please note that the checkbox have no text
so i want to style itself to be dimmed
thanks in advance
_ProgProg_
30-Jan-14 8:47am
View
id did the following and it didn't work
chkAllowText.css("background-color", 'gray');
_ProgProg_
30-Jan-14 8:23am
View
can i add any css to check box to look dimmed?
it's urgent!!!
_ProgProg_
30-Jan-14 8:12am
View
Any Ideas?
Its Important
_ProgProg_
6-Dec-13 11:17am
View
yes
_ProgProg_
6-Dec-13 2:44am
View
i am just clicking Right click on the stored procedure ans selects Execute and give it the parameters.
then it write this code not me
_ProgProg_
6-Dec-13 2:33am
View
Thanks Ganesh Raja For your answer
Now the Stored Procedure are free of synteax errors
ALTER PROCEDURE [dbo].[SP_T_ANALYSER_RESULTS_GET_BY_AnalyserID_Date]
@p_AnalyserID INT,
@p_Date_From datetime = null,
@p_Date_To datetime = null
AS
DECLARE @query varchar(2000);
SET @query = 'SELECT * FROM T_ANALYSER_RESULTS WHERE T_ANALYSER_RESULTS.AnalysersID = ' + Convert(varchar(30),@p_AnalyserID)
IF @p_Date_From is not null BEGIN
set @query = @query + ' And T_ANALYSER_RESULTS.ResultDate > ' + CONVERT(varchar(50),@p_Date_From)
END;
IF @p_Date_To is not null BEGIN
set @query = @query + ' T_ANALYSER_RESULTS.ResultDate < ' + CONVERT(varchar(50),@p_Date_To)
END;
EXEC(@query)
But there is something else
after executing it without sending Date_From and Date_To
it executes successfully
but if send Date_From and Date_To it gives me error
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '1'.
here is the syntax of executing
DECLARE @return_value int
EXEC @return_value = [dbo].[SP_T_ANALYSER_RESULTS_GET_BY_AnalyserID_Date]
@p_AnalyserID = 1,
@p_Date_From = N'01/01/2013',
@p_Date_To = N'01/01/2014'
SELECT 'Return Value' = @return_value
NOW WHAT?!!!!
_ProgProg_
6-Dec-13 1:35am
View
Thanks for ur Fast Reply
I did that but now the error Changed to this
Msg 102, Level 15, State 1, Procedure SP_T_ANALYSER_RESULTS_GET_BY_AnalyserID_Date, Line 9
Incorrect syntax near '@query'.
Msg 102, Level 15, State 1, Procedure SP_T_ANALYSER_RESULTS_GET_BY_AnalyserID_Date, Line 12
Incorrect syntax near '@query'.
and Intellisense is highlighting Under @query
Now What??
_ProgProg_
27-Oct-13 10:03am
View
The database column T_AKARAT_BILLS.BILL_DT is already declared as a DATE data type!!!
_ProgProg_
27-Oct-13 9:21am
View
Any Ideas Plz?
_ProgProg_
29-Sep-13 14:45pm
View
Any Ideas Plz???
_ProgProg_
25-Sep-13 7:51am
View
how could i set the database to single user mode?
_ProgProg_
4-Aug-13 7:50am
View
hi, how can i get benefit of this link.
i opened it but there is no discussion of what to do
_ProgProg_
29-Jul-13 5:48am
View
how can i get that??
_ProgProg_
2-Jun-13 8:27am
View
Thanks for your help Tradit Dash i will see these documents now
I hope it will help
_ProgProg_
26-May-13 3:29am
View
thanks to you Basmeh Awad
_ProgProg_
26-May-13 2:59am
View
should this be in insert and update????
_ProgProg_
25-May-13 4:27am
View
okay i 've tried this but ther result was as follows:
N????? ??????
_ProgProg_
25-May-13 3:58am
View
this is the value of the string from debug
insert into SI_0019_Bank_tbl ( Bank_code , Bank_Name ) VALUES ( 7,'البنك الأهلى' )
and i am just executing nonquery
_ProgProg_
25-May-13 3:26am
View
i am saving banks
if i entered البنك الاهلى
it saves it as ?????????????????????
and the grid view also shows it as ?????????????????
_ProgProg_
25-May-13 3:19am
View
nvarchar for the arabic data column
_ProgProg_
15-May-13 8:21am
View
the application sends emails and the email i send from (sender) is not valid after a number of right sending???
why is this?
does yahoo suspend email that sends more emails???
_ProgProg_
13-May-13 8:14am
View
Someone tell me what to do PLZ!!!!!
_ProgProg_
13-May-13 5:19am
View
Thanks Dave Kreskowiak for Your Reply
I've tried this but it didn't work
i've the same error
Unable to read data from the transport connection: net_io_connectionclosed
_ProgProg_
12-May-13 8:56am
View
so what should i do???
_ProgProg_
7-May-13 10:22am
View
my server settings is
Session timeout (minutes) = 20
_ProgProg_
7-May-13 10:12am
View
no i didn't but i will do that now
_ProgProg_
7-May-13 10:04am
View
i am only redirecting to the login page if the user does't have privilage to that page
and this code is in the master page load.
i get the user privilage from a datatable stored in the session
_ProgProg_
30-Apr-13 2:58am
View
Thanks Kushal.patil121 for your reply
but i've solved it my self
_ProgProg_
22-Apr-13 4:18am
View
Sorry for late in reply but thanks to you for your reply.
it looks like i'm a bit confused about adobe air usage.
In the article you mentioned i've found this:
Adobe Air is a framework that enables web developers, usually involved in html/js/flash programming, to build desktop applications.
and it is a framework to build rich internet applications???
How it builds a desktop applications for the web developers?!!!
plz explain this!
_ProgProg_
17-Apr-13 5:46am
View
i didn't find what i want exactly in this article but it was helpful.
thanks for it.
Now, i want to know if i could use air to build a graphical asp.net page?
and give me example please.
_ProgProg_
15-Apr-13 4:15am
View
thanks Sergey
i've updated the question.
_ProgProg_
9-Apr-13 10:48am
View
Is there is another way except the dynamic sql statment?
_ProgProg_
9-Apr-13 5:09am
View
Is there is any free API for sending Messages???
Just for testing
_ProgProg_
9-Apr-13 4:31am
View
thanks alot for your time
_ProgProg_
9-Apr-13 4:19am
View
thanks for your time..
i am using Ajax to call some method from database
this method takes parameters from the page
and gets some values from the DB
i want to populate the result to the page controls by accessing these controls in the web method.
Show More