15,886,362 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 Mohammad Al Hoss (Top 34 by date)
Mohammad Al Hoss
25-Apr-20 4:48am
View
Thank you
Mohammad Al Hoss
25-Apr-20 4:48am
View
Thank you
Mohammad Al Hoss
22-Nov-19 14:59pm
View
It did not work
<configuration>
<system.web>
<authentication mode="Forms">
<authorization>
<allow users="*">
<location path="~/RtfDocs">
<system.web>
<authorization>
<deny users="?">
<deny users="*">
Mohammad Al Hoss
22-Nov-19 13:23pm
View
And use the <location path="download">?
Mohammad Al Hoss
1-Jul-19 2:28am
View
No different databases, but is it supported to have to SQL Failover clusters?
Mohammad Al Hoss
6-May-19 2:03am
View
This column holds the encrypted data.
Mohammad Al Hoss
2-Jan-17 7:24am
View
No I do not want to solve it problematically.
I want to display it for the users to type it, then after I post the username and password to login.
Mohammad Al Hoss
4-Nov-16 8:26am
View
Any Sample or URL?
Thanks.
Mohammad Al Hoss
1-Feb-14 8:38am
View
the document-complete event is taking too much time to be triggered.
is there a workaround?
Mohammad Al Hoss
8-Jun-13 10:55am
View
I tried to do this
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
Console.WriteLine(e.KeyChar.ToString()); //You can do other process here
e.Handled = true;
}
but still the returned Ascii code is sending events to the application and opening help windows and other stuff.
Mohammad Al Hoss
6-Jun-13 16:21pm
View
Deleted
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
var result = textBox1.Text;
MessageBox.Show(result.ToString());
}
}
But this did not work.
Mohammad Al Hoss
6-Jun-13 16:19pm
View
I will try and get back to you thanks.
Mohammad Al Hoss
19-Jul-12 21:17pm
View
What should I replace it with?
Mohammad Al Hoss
9-Oct-11 14:18pm
View
Hi did you try to add asp.net hyperlink and customize it's navigate URL?
Mohammad Al Hoss
28-Apr-11 9:28am
View
Is t something like this your are loking for
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx
or
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MutuallyExclusiveCheckBox/MutuallyExclusiveCheckBox.aspx
Mohammad Al Hoss
28-Apr-11 9:24am
View
Are the computers on the same network, is the computer that will host the application also on the same network.
Mohammad Al Hoss
27-Apr-11 8:05am
View
Any Ideas
Mohammad Al Hoss
27-Apr-11 7:41am
View
I am using c#, and it is a webform that holds a submit button when I click it it form turns white and does not submit the page.
Mohammad Al Hoss
27-Mar-11 11:52am
View
thanks.
Mohammad Al Hoss
27-Mar-11 11:46am
View
here is the code i am using
Int64 RequiredLength = (Int64) (3.8 * 1024);
//EncoderParameter epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, (int)numQual.Value);
int val = 50;
EncoderParameter epQuality = null;
//epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, val);
epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, val);
// Store the quality parameter in the list of encoder parameters
EncoderParameters epParameters = new EncoderParameters(1);
epParameters.Param[0] = epQuality;
// Create a new Image object from the current file
Image newImage = null;
newImage = Image.FromFile(strFile);
// Get the file information again, this time we want to find out the extension
FileInfo fiPicture = new FileInfo(strFile);
// Save the new file at the selected path with the specified encoder parameters, and reuse the same file name
string savepath = "TempResize\\" + fiPicture.Name;
newImage.Save(savepath, iciJpegCodec, epParameters);
FileInfo ResizedInfo = new FileInfo(savepath);
Int64 ResizedInBytes = ResizedInfo.Length;
//double somrthing = (3.8 * val) / ResizedInKb;
Int64 RequiredVal = (RequiredLength * val) / ResizedInBytes;
epQuality = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, RequiredVal);
// Create a new Image object from the current file
Image ResizedImage = null;
ResizedImage = Image.FromFile(strFile);
epParameters.Param[0] = epQuality;
ResizedImage.Save("TempResize\\New\\" + fiPicture.Name, iciJpegCodec, epParameters);
Mohammad Al Hoss
27-Mar-11 11:44am
View
I tried to save the image with percent value to 50 then see what is the size in bytes, then based on the new image size I calculate the new percent but also not working well.
Is there any other way to do this, other methods or something.
Mohammad Al Hoss
18-Mar-11 10:23am
View
Are you publishing your application to the root folder(wwwroot)? and are you Assigning it a port?
for example //localhost:96/.
please type the URL you are using when the images disappear so I can help.
Mohammad Al Hoss
1-Mar-11 3:55am
View
Explain more please
Mohammad Al Hoss
27-Feb-11 12:25pm
View
1- why you are setting the login info if you are setting the datasource as datatble
2-save the rpt object in a viewstate or session then on init event give it to the crystal report viewer.
exp:
init()
{
crystalreportviewer1.reportsource = (reportdocument) viewstate["rpt"];
}
if also did not work send me the class to check what is going on wrong.
Mohammad Al Hoss
27-Feb-11 6:18am
View
Please post the code you are using.
Mohammad Al Hoss
27-Feb-11 6:10am
View
Please post the code that binds the report
Mohammad Al Hoss
27-Feb-11 5:47am
View
I did that and i worked thanks for your help
Mohammad Al Hoss
27-Feb-11 4:41am
View
They renamed the file and the site worked well, so they said the problem is form the web.config but they did not say which part of the file.
my site URL is "http://www.mohammadalhoss.com/" note that it is a one file application it only holds default.aspx
Mohammad Al Hoss
27-Feb-11 4:29am
View
Can you explain more please.
Mohammad Al Hoss
27-Feb-11 4:28am
View
Yes I did and they gave me the same answer, just update the web.config.
Mohammad Al Hoss
27-Feb-11 4:20am
View
They asked to update thses sections
CUSTOMERRORS mode="Off"
COMPILATION debug="true"
HTTPERRORS errormode="Detailed"
asp scriptErrorSentToBrowser="true"
They told me that the problem is in my web.config, note that the application is wroking well on my PC
Mohammad Al Hoss
27-Feb-11 4:18am
View
Deleted
These two sections
<customerrors mode="Off">
<compilation debug="true">
<system.webserver>
<httperrors errormode="Detailed">
<asp scriptErrorSentToBrowser="true"/>
they told me that the problem is in my web.config file.
Mohammad Al Hoss
1-Feb-11 2:24am
View
HiI am trying to fill a web form with data already exists in the database, this web form (asp) has a picture box that uses activex component that allows you to browse then drag and drop an image.
The problem is when I opened the web page in a webbrowser control (windows form) I got an error because of the activex and I was not able to add an image.
My question is:
• Is there a way to customize the web browser control to accept ActiveX.
• Is there a way to write the values to the current IE browser from a windows application or any application?
Thanks a lot for your help.
Mohammad Al Hoss
31-Jan-11 6:16am
View
I meant that I tried this option and it worked well till I faced a problem with an image control that uses active x. it allows the user to browser then drag and drop the image and you can see it directly.
thanks for you help.
Show More