15,899,634 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 saifullahiit (Top 88 by date)
saifullahiit
19-Aug-15 14:39pm
View
can you please tell me how to show images from the current directory
saifullahiit
19-Aug-15 14:24pm
View
i have optimized my code:
$files = glob(__DIR__.DIRECTORY_SEPARATOR.'*.jpg');
echo $files;
foreach ($files as $file) {
if (!is_file($file)) { // if isn't file, skip it
continue;
}
$info = pathinfo($file);
// check if allowed extensions
if (in_array(strtolower($info['extension']), array('jpg', 'png', 'gif'))) {
echo '<img src="'.$file. '" alt="'.$file. '" />'; // your image echo
}
}
but here images are broken. you can check the link.
saifullahiit
17-Aug-15 3:42am
View
when you debug the code , you never enter in, " if (chk.Checked) { }" loop ???
yes you are right
saifullahiit
16-Aug-15 5:08am
View
the entire code is above please read it carefully
saifullahiit
16-Aug-15 1:12am
View
no. 1. enter web page link in text box and hit load button
2. then it loads images in grid view.
saifullahiit
27-Jan-15 4:49am
View
no no its not run time error.
saifullahiit
27-Jan-15 4:46am
View
installmentdueAmount is saving cost(10000,2000,3000) and its datatype is nvarchar
saifullahiit
27-Jan-15 4:43am
View
have tried it before it says cant convert string to decimal.
saifullahiit
27-Jan-15 4:37am
View
it is nvarchar value. i want to convert it to decimal
saifullahiit
9-Oct-14 6:12am
View
any js version
saifullahiit
22-Sep-14 6:54am
View
i have tried this one but could not find the solution
saifullahiit
17-Sep-14 15:18pm
View
if you check the code which i have given you will get my point what do i mean by asp:calander.
BDW its a asp.net control
saifullahiit
5-Sep-14 4:45am
View
i want asp.net code behind solution bro
saifullahiit
5-Sep-14 4:45am
View
<asp:table runat="server">
m talking about this table
saifullahiit
16-Jun-14 4:00am
View
thanks for reply. i have used the following code:
<script type="text/javascript" src="code.jquery.com/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$('#menu-item-597 > a').click(function() {
alert("hi");
});
</script>
its working locally but not working on the live server.
http://customer.yorube.co/kameron if you open the link, click on enter and then click on shop menu item. you will see nothing happning.
saifullahiit
5-May-14 4:13am
View
i apply your query like
declare @i=85 int
while(@i<348)
begin
exec procedurexyz @i
set @i=@i+1
end
and i receive the following error.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '='.
Msg 137, Level 15, State 2, Line 3
Must declare the scalar variable "@i".
Msg 137, Level 15, State 2, Line 5
Must declare the scalar variable "@i".
Msg 137, Level 15, State 2, Line 6
Must declare the scalar variable "@i".
saifullahiit
12-Mar-14 1:14am
View
can you please give me the code saif.9634781@gmail.com
saifullahiit
6-Jan-14 1:05am
View
Thank you so much. you were right but a bit changes that i made and i worked fine;
MyCommand = new OleDbDataAdapter("select * from [Sheet1$B6:B6]", objConn);
ds = new System.Data.DataSet();
MyCommand.Fill(ds);
Label1.Text = ds.Tables[0].Rows[0][0].ToString();
//dont change Row[0][0], only change in [Sheet1$B6:B6] to A1 etc
saifullahiit
6-Jan-14 0:17am
View
it gives me the following error.
System.IndexOutOfRangeException: There is no row at position 1. at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at System.Data.DataRowCollection.get_Item(Int32 index) at Default2.Page_Load(Object sender, EventArgs e)
the data on the excel sheet resides in B6 i have tried to put 6 and 2 but i still gave error.
saifullahiit
5-Jan-14 11:27am
View
i havent found any solution in the given link :( can you please simplify it or give me code here
saifullahiit
1-Jan-14 0:31am
View
it shows error type of one expression in join clause is incorrect. and second error is contextual keyword 'on ' is required
saifullahiit
23-Sep-13 7:20am
View
it simple and to the point :)
saifullahiit
19-Apr-13 0:58am
View
I need to know what I asked. its not an issue for me that i've used a girl photo or else.
Thanks
saifullahiit
18-Mar-13 3:33am
View
yes i used iframes from the given link.
http://mesdomaines.nu/iframe_resize_better/iframe_resize.html
but when i redirect from page1 to page2. it does not show the content in page2.
(my iframe is: <iframe id="some_id" name="some_name" src="new.html" style="border: 1px solid silver; width:600px" önload="setIframeHeight(this.id)">
yahoo
</iframe> where new 3.html is third page and its content is not shown but the new.html content is show.)
saifullahiit
14-Jan-13 1:13am
View
could you please tell the error?
saifullahiit
1-Jan-13 4:21am
View
Thanks Magiccoder but this is not what i want, these are fixed tabs. As i mentioned that i want the button should scroll down when user scroll the page down. i also gave example links in my first post.
saifullahiit
31-Dec-12 23:07pm
View
your given link doesnt work, it redirects me to my own question page(http://www.codeproject.com/Answers/519275/W3School#answer1)
saifullahiit
26-Dec-12 5:18am
View
suppose in your code the div with id "div1" is a tag in a webpage say www.codproject.com i want to access that "div1" tag in my own web page. so how i will reference to codeproject.com page?
saifullahiit
26-Dec-12 3:20am
View
suppose there is a webpage say www.codeproject.com. it has an html tag say Question tag. now i want to put that Question tag in my webpage which is www.saif.com. so that user open saif.com webpage and that shows to him Question tag of codeproject.com. Clear now?
saifullahiit
26-Dec-12 3:19am
View
suppose there is a webpage say www.codeproject.com. it has an html tag say Question tag. now i want to put that Question tag in my webpage which is www.saif.com. so that user open saif.com webpage and that shows to him Question tag of codeproject.com. Clear now?
saifullahiit
26-Dec-12 3:19am
View
suppose there is a webpage say www.codeproject.com. it has an html tag say Question tag.
now i want to put that Question tag in my webpage which is www.saif.com. so that user open saif.com webpage and that shows to him Question tag of codeproject.com.
Clear now?
saifullahiit
8-Nov-12 13:05pm
View
no it does not exist on the destination. i have used the true parameter. i does not give the error but it does not copy the file either.
saifullahiit
30-Aug-12 7:22am
View
cant understand :( could you please elaborate it thorough code?please
thanks
saifullahiit
23-Aug-12 0:15am
View
Syntax error (comma) in query expression '[uid] =System.Windows.Forms.Label
saifullahiit
28-Jun-12 14:02pm
View
if you have a solution for that please let me know. the question "why" is i think has no sense here. ;)
saifullahiit
1-May-12 10:01am
View
by start up i dont mean that it should be on start menu.
i mean its process should be start at the windows start like u see volume controle, utorrent, idm etc
saifullahiit
16-Apr-12 11:09am
View
i haven't got any idea from given links:(
have some other suggestions?
saifullahiit
12-Apr-12 7:09am
View
please send me the answer of other questions. thanks
saifullahiit
12-Apr-12 6:18am
View
its a entry test sample question not an asg. please help me to solve it.
saifullahiit
12-Apr-12 6:09am
View
its not an assignment. its my entry test sample question. please help me out
saifullahiit
29-Mar-12 0:12am
View
how?
saifullahiit
18-Mar-12 23:55pm
View
just check the question again, at the end i have mentioned that i dont know how to add the all middle numbers.
saifullahiit
19-Feb-12 6:01am
View
what i want is to create a widows form. put browser controls on it, and a button. a webpage will be open in the windows form containing captcha images when i click on the button it save only captcha image from webpage into local drive.
saifullahiit
14-Feb-12 1:20am
View
the problem is that i dont know how to create a control that checks the checks pixels row by row, find empty space between two characters and then save it.
saifullahiit
13-Feb-12 5:12am
View
it gives an error InterpolationMode does not exist in current context
saifullahiit
13-Feb-12 1:46am
View
it just tell me the green,red and blue pixels, i want to calculate the total pixel no matter what ever the color of pixel is.
saifullahiit
13-Feb-12 1:46am
View
it just tell me the green,red and blue pixels, i want to calculate the total pixel no matter what ever the color of pixel is.
saifullahiit
13-Feb-12 1:45am
View
Deleted
it just tell me the pixel format. i want to calculate the total pixel no matter what ever the color of pixel is.
saifullahiit
13-Feb-12 1:45am
View
it just tell me the pixel format. i want to calculate the total pixel no matter what ever the color of pixel is.
saifullahiit
12-Feb-12 1:27am
View
if it cannot b deleted it it should b transparent.
saifullahiit
12-Feb-12 0:37am
View
it checks the color of pixel if pixel color is white delete that pixel.
saifullahiit
12-Feb-12 0:36am
View
system.drawing
saifullahiit
12-Feb-12 0:36am
View
i want to know how is it possible
saifullahiit
10-Feb-12 9:01am
View
it only draw one line. i want to draw 10 line. can you tell me how is it possible?
saifullahiit
10-Feb-12 3:02am
View
i m not drawing image. i want to draw lines on image.
saifullahiit
5-Jan-12 8:32am
View
acutally i want to create a windows form.
the image shuld be like captcha image in which text is shown in an image.
saifullahiit
28-Oct-11 8:44am
View
FileUpload1.PostedFile.SaveAs(Server.MapPath("~\\NewFolder1\\") + FileUpload1.FileName);
saifullahiit
28-Oct-11 8:44am
View
FileUpload1.PostedFile.SaveAs(Server.MapPath("~\\NewFolder1\\") + FileUpload1.FileName);
saifullahiit
27-Oct-11 7:43am
View
no when i cheked my db table the data was inserted as
<binary data="">
saifullahiit
27-Oct-11 6:48am
View
it saved the images with the name of slides. means if the slide name is 1,2,3,4 so the image name is also 1,2,3,4
saifullahiit
27-Oct-11 6:44am
View
i have tried your given suggestion but it gave same error
saifullahiit
27-Oct-11 6:10am
View
here is the complete code:
it is for saving it into db
protected void Button1_Click(object sender, EventArgs e)
{
ApplicationClass pptApplication = new ApplicationClass();
Presentation pptPresentation = pptApplication.Presentations.Open("saifullah.ppt", MsoTriState.msoFalse,
MsoTriState.msoFalse, MsoTriState.msoFalse);
var slides = new List<string>();
for (var i = 1; i <= pptPresentation.Slides.Count; i++)
{
string target = i+".jpeg".ToString();
pptPresentation.Slides[i].Export(target, "jpg", width, height);
string pic = target;
con.Open();
cmd = new SqlCommand("insert into images values('"+@pic+"')",con);
cmd.ExecuteNonQuery();
con.Close();
}
pptPresentation.Close();
}
and it is for retreiving from db
MemoryStream stream = new MemoryStream();
try
{
con.Open();
cmd = new SqlCommand("select pics from images", con);
byte[] image = (byte[])cmd.ExecuteScalar();
stream.Write(image, 0, image.Length);
Image imag = Image.FromStream(stream);
Response.ContentType = "image/JPEG";
imag.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
}
finally
{
con.Close();
stream.Close();
}
saifullahiit
27-Oct-11 5:21am
View
i dont want to use FileUpload1 coz i have a ppt file that has been converted to images i have used the loop that converts the ppt slide one by one into an image, assign that image to string target and save it in the db. so for that purpose i dont want to use fileupload1.
saifullahiit
26-Oct-11 10:00am
View
i have used it but it gives the same error
saifullahiit
26-Oct-11 6:05am
View
i have used the
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;
but it still gives an error
saifullahiit
25-Oct-11 8:57am
View
thanks MRB it worked, you are the gr8
saifullahiit
25-Oct-11 8:35am
View
same type of code is also given in:
http://stackoverflow.com/questions/2653740/problems-with-office-automation-in-asp-net-i-can-use-alternatives-such-as-open
http://stackoverflow.com/questions/2972263/ppt-slides-to-images
so its not something risky it just convert your ppt file into image so that user wont download them as ppt.
if you can solve the given issue, it will be much appreciable.
saifullahiit
18-Oct-11 9:31am
View
u r rite but there are 18 fields in each form how is it possible to save all of them in session.?
saifullahiit
11-Oct-11 6:42am
View
yes you are right bro. but actually my requirements is that no client side action should be performed.
saifullahiit
11-Oct-11 6:13am
View
ok user logs in. select select a number from and click on submit. some numbers are coming from where. the user selected number is saved in database with the user email id. now user logs out. now i want that server must run a method on back side that shuld not called by the user. it must b automatically called match the user number with the database number.
saifullahiit
26-Aug-11 2:59am
View
i m doing it but i is giving error that cannot convert datareader to dataset(ds=cmd.executereader)
saifullahiit
8-Aug-11 7:34am
View
actually its a currency trading website feeds are comming from a website and are stored in database. user select a currency on the front end and click on hte button. so after every seconds feeds that are stored in database are shown to the user. so i want to insert a rotator so that it takes the values from database after every second and show it to the user. i think now it will be clear to u.
saifullahiit
7-Aug-11 3:36am
View
can you show me the code?
saifullahiit
5-Aug-11 13:06pm
View
Cannot have multiple items selected in a DropDownList.
saifullahiit
1-Aug-11 9:34am
View
can u please give me a small demo,or code please
saifullahiit
1-Aug-11 7:17am
View
i mean 26 tabs and 26 graphs. each tab contains graph which takes values from database
saifullahiit
29-Jul-11 16:14pm
View
you the gr8. thanks alot
saifullahiit
25-Jul-11 6:41am
View
yes
saifullahiit
25-Jul-11 3:41am
View
Brij can you tell what type of service i need to create and how?
saifullahiit
19-Jul-11 15:46pm
View
sir the fxfeed.getPrice returns the prices from a website. to some extend you that point is correct that it should be stored somewhere. so can u tell me how to store them in to temporary variables?
saifullahiit
18-Jul-11 10:11am
View
yes i am going to insert it in one table.do i need to insert it in different tables? name of cols are AUD/USD_HIGH,AUD/USD_OPEN etc.
saifullahiit
18-Jul-11 9:54am
View
but i need to insert 104 values in database at the completion of loop how is it possible.
saifullahiit
15-Jul-11 12:29pm
View
i want to get this information from database and i am using asp.net with c#
saifullahiit
13-Jul-11 2:55am
View
sir u r rite but if u see there a downloadable file at the end of that code just download it and try it. it is useless. it does not fulfill my requirements.
saifullahiit
13-Jul-11 1:59am
View
sir u r rite but if u see there a downloadable file at the end of that code just download it and try it. it is useless. it does not fulfill my requirements.
saifullahiit
11-Jul-11 3:01am
View
sir i have the key shud i put it and run it?
saifullahiit
11-Jul-11 3:01am
View
sir i have the key shuld i put it and run it?
saifullahiit
11-Jul-11 2:59am
View
sir i have the key.should i put it and run it?
Show More