16,004,416 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 Badour alsamaraie (Top 50 by date)
Badour alsamaraie
14-Dec-15 9:31am
View
this article works with visual studio 2010, in my project i am work on visual studio 2012
Badour alsamaraie
14-Dec-15 9:29am
View
if there any other option to generate report rather than crystal reports (in web application)?
Badour alsamaraie
11-Jul-15 5:09am
View
i am tried to convert list to array or use database summation the same result, i received message "Specified cast is not valid."
Badour alsamaraie
9-Jul-15 4:21am
View
the same error .. actually i don't know whats the meaning of cast is not valid??
Badour alsamaraie
9-Jul-15 3:27am
View
i want to sum all prices related to specific invoice number
Badour alsamaraie
9-Jul-15 3:25am
View
the same error :
Specified cast is not valid.
Badour alsamaraie
8-Jul-15 7:01am
View
the same error :
Specified cast is not valid
Badour alsamaraie
8-Jul-15 6:57am
View
i recive error :
Specified cast is not valid
Badour alsamaraie
8-Jul-15 6:35am
View
okay this is work , but if i want to sum all price for special invoice (i mean can i use condition to select special price)?
Badour alsamaraie
8-Jul-15 5:35am
View
'SalesINvoice.InvoiceDetail' does not contain a definition for 'Field' and no extension method 'Field' accepting a first argument of type 'SalesINvoice.InvoiceDetail' could be found (are you missing a using directive or an assembly reference?)
Badour alsamaraie
8-Jul-15 5:06am
View
i use it but an error appears in x.Field<int> it is an exceptable!!!
what the Field<int>("TotalPrice") means???
Badour alsamaraie
10-Jun-15 3:50am
View
i did what you told me but still the same error, ctrl do not dropdown list that created dynamically each time page is reload
Badour alsamaraie
9-Jun-15 7:41am
View
i did this method but still drp value = Null
Badour alsamaraie
9-Jun-15 7:14am
View
sorry, what you mean?
Badour alsamaraie
12-May-15 7:06am
View
my code i Desfualt.aspx page is :
<body>
<div id="ddd" class="happy">
hi world
</div>
</body>
and the code inside happy.css class is
div
{
background-color: Fuchsia;}
Badour alsamaraie
12-May-15 6:44am
View
okay when you write div.happy what the type of item that i must add to solution to add more attribute to div??
or where i can write happy class command, what is the format of class?
Badour alsamaraie
28-Apr-15 6:52am
View
i know how to use html, i want to learn hoe to use .css and combine it with asp.net control
Badour alsamaraie
28-Apr-15 6:06am
View
sorry i can not understand what you mean!!
Badour alsamaraie
22-Apr-15 3:14am
View
1- link not work ! it is appear content not found!!
2- yes i am connecting the database in my local machine when i published the application on my machine. but i want to create database on remote machine when publish the application on there machine
Badour alsamaraie
22-Apr-15 2:52am
View
how can i create set-up file for web application? and how can i includes the database table???
Badour alsamaraie
15-Mar-15 2:10am
View
i was uploaded small file like 1Mb to 4MB and there is no problem but when i am upload file of 43 MB i receive this error:
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length.
Badour alsamaraie
9-Mar-15 5:58am
View
thanks, that is very brief
am greatfull
Badour alsamaraie
9-Mar-15 5:57am
View
thank you that is work !!
am greatfull
Badour alsamaraie
9-Mar-15 5:18am
View
the only solution that i found and currently use it , i was install program in startup file of the server and this work on!!!
#Maxxx
Badour alsamaraie
4-Mar-15 3:51am
View
i mean .net environment (visual studio 2010) and application type is "Windows Forms Application"
Badour alsamaraie
4-Mar-15 3:25am
View
what impress you??
Badour alsamaraie
24-Feb-15 3:11am
View
Unfortunately that is not work !
Badour alsamaraie
23-Feb-15 2:18am
View
when i add the code above the image become unavaliable
Badour alsamaraie
23-Feb-15 2:18am
View
yes, i tried new web application project and put image, labels and textboxes in the login page and it worked correctly. But i think i fetch the problem. the problem when i add authentication code to web.config
<authentication mode="Forms">
<forms loginUrl="WebForm1.aspx" protection="All" timeout="600" slidingExpiration="true" domain=""/>
<authorization>
<deny users="?">
<allow users="*">
Badour alsamaraie
23-Feb-15 2:07am
View
the same problem i tried your code but no image appear just label and textbox. when i run on other project it works properly
Badour alsamaraie
23-Feb-15 1:23am
View
you mean you tried my code above??
Badour alsamaraie
23-Feb-15 1:20am
View
i am already put <body><form><div>.....</div></form></body>
Badour alsamaraie
23-Feb-15 0:52am
View
okay, My login.aspx page is such as :
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" ImageAlign="Middle"/>
<br />
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="User Name" Font-Bold="True"
Font-Size="Large" ForeColor="#FF6600">
<asp:TextBox ID="TextBox1" runat="server" style="margin-bottom: 0px">
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Password" Font-Bold="True"
Font-Size="Large" ForeColor="#FF6600">
<asp:TextBox ID="TextBox2" runat="server">
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="SignIn"
onclick="Button1_Click1" Font-Bold="True" ForeColor="#FF6600"
Height="37px" Width="70px" />
</div>
</form>
____________________________________
my login .apx.cs
protected void Page_Load(object sender, EventArgs e)
{
Image1.ImageUrl = "~/Images/LiveRadio.jpg";
}
Badour alsamaraie
23-Feb-15 0:49am
View
i dont want to add login in master page, i am using <authentication> in web.config so when client write application Url he/she must log in before going to master page
Badour alsamaraie
23-Feb-15 0:47am
View
image path is okay !!
Badour alsamaraie
10-Feb-15 15:19pm
View
how can i set authentication cookies using FormsAuthentication.RedirectFromLoginPage() ??
Badour alsamaraie
10-Feb-15 14:49pm
View
when i use the code below login.aspx not run first !!
protected void Button1_Click(object sender, EventArgs e)
{
if(( arch.Users.Any(u=>u.username == TextBox1.Text))==true)
{
var get_user_pass= (from x in arch.Users where x.username==TextBox1.Text
select x.password).FirstOrDefault();
//if ((TextBox1.Text == "1") && (TextBox2.Text == "1"))
if(Convert.ToString(get_user_pass)==TextBox2.Text)
{
FormsAuthentication.SetAuthCookie(TextBox1.Text, false);
string returnUrl = Request.QueryString["returnUrl"];
if (!string.IsNullOrEmpty(returnUrl))
{ Response.Redirect(returnUrl); }
else { Response.Redirect("Default.aspx"); }
}
}
}
what i want is to make my defualt.aspx(which is inside master page) as start page of application, but login.aspx must in force so user must login before using the master page
Badour alsamaraie
10-Feb-15 14:46pm
View
when i use the code below and but my defualt.aspx as start page login.aspx not run first!!
protected void Button1_Click(object sender, EventArgs e)
{
if(( arch.Users.Any(u=>u.username == TextBox1.Text))==true)
{
var get_user_pass= (from x in arch.Users where x.username==TextBox1.Text
select x.password).FirstOrDefault();
//if ((TextBox1.Text == "1") && (TextBox2.Text == "1"))
if(Convert.ToString(get_user_pass)==TextBox2.Text)
{
FormsAuthentication.SetAuthCookie(TextBox1.Text, false);
string returnUrl = Request.QueryString["returnUrl"];
if (!string.IsNullOrEmpty(returnUrl))
{ Response.Redirect(returnUrl); }
else { Response.Redirect("Default.aspx"); }
}
}
}
what i want is that before loading master page login.aspx appear even if it is not the start application page!?
Badour alsamaraie
9-Feb-15 3:57am
View
why using cookies? actually i did it but no change, it still appear master page first when i am run the project!!!
Badour alsamaraie
29-Jan-15 5:23am
View
sorry i can not understand!
when i am disable back button it is not work. i want to make users press browser back put hundle direction
Badour alsamaraie
27-Jan-15 6:34am
View
thanks,,, i am appreciate your solution. i tried fro 3 days and can not the answer. thanks again
Badour alsamaraie
13-Oct-11 8:54am
View
thanks srikanthgaddala ....
Badour alsamaraie
10-Oct-11 11:22am
View
ok .... if i want to sue the same code in that library and make the same form of it ... what things that i must remove to do that so it wil be run as a normal program
Badour alsamaraie
10-Oct-11 4:34am
View
how can i convert it from library to a program ?? i mean use it as any other c# program , what changes can i do to it ??
Badour alsamaraie
10-Oct-11 4:29am
View
how can i convert it from library to a program ?? i mean use it as any other c# program , what changes can i do to it ??
Badour alsamaraie
10-Oct-11 2:24am
View
it is an application and i was downloaded it form this site " i mean codeproject site"
Badour alsamaraie
2-Oct-11 15:07pm
View
yea i had this link ... but this create a log or event entries , in my work i had already created logs only to want is to log them to the database ????
Badour alsamaraie
1-Oct-11 11:21am
View
pardon???
i can under stand your comment "Edit: spelling mistake"
Badour alsamaraie
30-Sep-11 18:56pm
View
from my reading to different articles i found that there must be a connection between my created database and my log ... so am used logging application block. i must configure it to log to the database.
would you hep me how to config it? i dont know how to make there read logs as input to it ???
Badour alsamaraie
30-Sep-11 13:37pm
View
thanks prdshulka
but when am use the code for reading log entries an error is appear :
Warning 1 'System.Diagnostics.EventLogEntry.EventID' is obsolete: '"This property has been deprecated. Please use System.Diagnostics.EventLogEntry.InstanceId instead. http://go.microsoft.com/fwlink/?linkid=14202
that i cant understand..... the second thing i want to read all entries not last two , how can i modify the for loop to meet my request???
if i want to write each entry to the database do you think that the procedure to write to the database will be inside the for loop ???
sorry or annoying you but i really wont toy help....
with my regard
Show More