15,886,689 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 Samira Radwan (Top 113 by date)
Samira Radwan
4-Mar-19 7:23am
View
@David Crow, It was a typo, my mistake it actually freezes after sending the file and trying to get the response by first constructing the `InputStream`. I updated my question
Samira Radwan
4-Jan-19 8:07am
View
@David Crow, you are absolutely right, removing the addTextChangedListner() eliminate s the problem. my question is If i can't use addTextChangedListner() what should be done to handle any EditText validations? or maybe is there a way to set the text without triggering it? i know i can't do it onCreateView
Samira Radwan
6-Sep-18 13:33pm
View
yes it does work. apology for late answer
Samira Radwan
30-Aug-18 13:20pm
View
thanks, i did pretty much as you suggested, please check my answer and if you have any other thoughts, let me know.
Samira Radwan
30-Aug-18 13:16pm
View
I understand your point. but how to make rotation look like blink? any link or starting code would be really appreciated.
In my case I would like to make the circle blink in certain condition for short time to indicate to the user he has to tap/touch here.
Samira Radwan
28-Aug-18 15:33pm
View
I have tried this. The only thing that workss is button's background color!!
I believe what I'm going to do is create the same image with grey-scale and replace button's background image like : views.setInt(R.id.btn_start,"setBackgroundResource", R.drawable.button_start_grey);
more images but it works, I guess!
Samira Radwan
27-Aug-18 10:48am
View
please refer to the following link:
https://developer.android.com/reference/android/widget/ImageView.html#attr_android:tint
I'm trying to change the image color under certain condition. it works fine from activity but from widget it's not.
Samira Radwan
27-Jun-18 9:00am
View
I'm not an SQL expert, but as @Gerry said using temporary tables is not a bad idea.
I see you have 3 'WHERE field IN' and then big SELECT statement. What I might do is using temp tables for these select specially they have all kind of JOIN and Convert, so instead of WHERE field IN (SELECT...) it will be WHERE field IN (#tempTable). Then after you finished with your update simply drop #tempTable.
Samira Radwan
27-Jun-18 8:34am
View
Do you have office installed on your machine? are you sure you using the correct DLL. the error says you are using higher version.
Try these links:(1) https://stackoverflow.com/questions/6888950/the-microsoft-office-interop-word-assembly-version-is-higher-than-referenced
(2) https://stackoverflow.com/questions/14527305/could-not-load-file-or-assembly-microsoft-office-interop-excel-version-14-0-0
(3) https://stackoverflow.com/questions/23085723/assembly-microsoft-office-interop-word-version-15-0-0-0-uses-microsoft-vbe-inte
These links could give you an idea what could be the problem.
Samira Radwan
13-Jun-18 13:36pm
View
Thank you!
this solution works very well when using array of bytes or signed char. but if `data` is of type `NSData` I got error: expected method to read array element not found on object of type NSData. we can't just read data[i] if it's NSData
Samira Radwan
8-Jun-18 11:09am
View
LOL :)
Sometimes it's better not to ask!! ;)
Also, looking at the bright side I have learnt new approach thanks to @Mohibur :)
Thank you!
Samira Radwan
4-Jun-18 20:23pm
View
no, my boss doesn't like UNION !!
said need to be done in other way, which i don't really know
Samira Radwan
4-Jun-18 20:06pm
View
it's a requirement not to use UNION or UNION ALL
Samira Radwan
5-Apr-18 16:21pm
View
Looks like you might be right. I will give it a try. thank you
Samira Radwan
5-Apr-18 7:22am
View
yes i have added "firmware" directory. check this line of code: list = manager.list("firmware"); (list of all files in "firmware" folder.
Samira Radwan
5-Apr-18 7:21am
View
the problem is if i don't call (cancel) the timer counts down very fast and doesn't stop. it closes the video after 20 seconds but it keeps running
Samira Radwan
4-Apr-18 13:26pm
View
There's no cancel button. My cancel code is in comment in the beginning of the method. Should timer have a cancel button?
Samira Radwan
4-Apr-18 13:24pm
View
Deleted
VIDEO_TIMER_INTERVAL = 1000
Samira Radwan
4-Apr-18 13:24pm
View
VIDEO_TIMER_INTERVAL = 1000
Samira Radwan
4-Apr-18 13:23pm
View
Deleted
VIDEO_TIMER_INTERVAL = 1000
Samira Radwan
29-Mar-18 13:14pm
View
Thank you for your help. I copied the file directly in the assets folder (no sub folders) and it seems to work. still puzzled why not in sub folder, but it works fine for now. Thanks again
Samira Radwan
29-Mar-18 13:01pm
View
I don't think this is the problem, the reason for using list is I will be having number of files in this folder. I have to filter which one to use.
I have just tested the list and i can see i have 2 files when debugging. so if the [manager.list] has files in this directory, why the stream doesn't see them?
Samira Radwan
29-Mar-18 12:36pm
View
no luck!!
Samira Radwan
29-Mar-18 12:21pm
View
It fails at this line. InputStream doesn't see the file when i try to open it. I even used DataInputStream and it gives the same (No such file or directory). any suggestions?
Samira Radwan
29-Mar-18 12:12pm
View
Yes, it does. I have just checked the Logcat
Samira Radwan
19-Jan-18 13:05pm
View
Thank you both @011111100010 and @Richard Deeming for your valuable comments.
@011111100010 the user is going to upload a file from his/her machine using a web interface. I guess no choice I have to save the uploaded file first before sending as attachment.
Samira Radwan
19-Jan-18 8:10am
View
Thanks for your answer. I know i have to get the absolute path of the attached file, the problem is the uploadFile control, the file is on the client/user machine I can't use Server.MapPath and i don't want to save the uploaded file (FileUpload.SaveAs). I'm looking for a way to upload PDF and send it as attachment using SQL database mail.
Samira Radwan
19-Sep-17 18:12pm
View
That was helpful, thank you
Samira Radwan
13-Sep-17 19:43pm
View
That was helpful, thank you.
I managed to send the email, but i receive it like all hashed or encrypted!! do you have any idea why? thanks
Samira Radwan
14-Jul-17 16:04pm
View
No unfortunately, but yo could generate the whole table from ItextSharp instead of HTML table.
Samira Radwan
29-May-17 15:23pm
View
That works. Thanks a lot!!
Samira Radwan
28-Apr-17 9:49am
View
thanks a lot I managed to solve it. Please check my solution
Samira Radwan
18-Apr-17 9:38am
View
both anchor and the (TD) inside a listview. notesTd is a table td please check the second block of code in my question. thank you!
Samira Radwan
22-Mar-17 14:15pm
View
what i found out the problem is not in your code or mine, the problem is global.asax is on the root and all my aspx files and master pages are inside a folder called (EN) not on the root. Routing works fine with any page/form that located on the main root of the project not files located inside folders!!
Samira Radwan
22-Mar-17 12:46pm
View
I have tried both, still giving 404 error
Samira Radwan
22-Mar-17 12:40pm
View
Thank you, but your solution not really different from mine, still not working
Samira Radwan
16-Mar-17 10:15am
View
Actually , you're right.
I will try to extract all the data I need from the objects been created
Thanks again, saved me a lot of time!!
Samira Radwan
16-Mar-17 10:11am
View
Deleted
thanks a lot that works, my bad i used a different JSON file,
Samira Radwan
16-Mar-17 9:59am
View
Deleted
yes it has
Samira Radwan
16-Mar-17 9:58am
View
Also If I want to create DT from each object separately, how to manage this? Thanks again!!
Samira Radwan
16-Mar-17 9:55am
View
Thank you for the answer, I have followed your code and created all the classes and in [Main] this is my full code:
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.Headers.Add(headerKey, headerVal);
httpWebRequest.Method = WebRequestMethods.Http.Get;
httpWebRequest.Accept = "application/json; charset=utf-8";
string JSONfile;
var response = (HttpWebResponse)httpWebRequest.GetResponse();
using (var sr = new StreamReader(response.GetResponseStream()))
{ JSONfile = sr.ReadToEnd(); }
var data = JsonHelper.ToClass<response>(JSONfile);
Debugger.Break();
no errors but (data) is null, i mean all the objects are null (makes/models ....), Am I missing something? Thank you!
Samira Radwan
16-Mar-17 8:33am
View
I nedd all the object, using vehicle make as an example
Samira Radwan
14-Mar-17 14:15pm
View
that's really looks very good, Thanks!!
Samira Radwan
14-Mar-17 14:03pm
View
Actually I tried with a class data structure but it returns null.
clsMakes makes = new clsMakes();
makes = JsonConvert.DeserializeObject<clsmakes>(response);
my class looks like:
class clsMakes
{
public string[] id {get;set;}
public string[] name { get; set; }
public string[] path { get; set; }
}
Samira Radwan
14-Mar-17 14:01pm
View
Thanks a lot this is what I found out!
Samira Radwan
6-Dec-16 14:32pm
View
thank you Richard, I'm aware of SQL injection and agree with you , it's just happened that i have to maintain a code written by someone else and fix the errors too.
thanks again
Samira Radwan
6-Dec-16 11:44am
View
thank you for your answer and the code link. the dDate is declared and assigned correctly. i didn't include this part to my code sample, my bad.
Knowing that this code is working on other machine makes me pretty sure it could be outlook settings?
Samira Radwan
6-Dec-16 10:38am
View
I changed to (Titlecase) with no luck. any other suggestion for what could be the reason?
thank you!
Samira Radwan
6-Dec-16 9:34am
View
Hi Andy, what did you mean by 'all your casing is off'. the code you have provided here is the same like I already have. please explain. thank you
Samira Radwan
23-Mar-16 11:11am
View
thanks! I've already tried where, @Homero Rivera solution does it.
Samira Radwan
23-Mar-16 11:11am
View
thanks a lot! PATINDEX does it
Samira Radwan
25-Feb-16 8:04am
View
for if(node is XComment==false) I totally agree, just use else. for comments coming after data nodes, I actually added to DB in between the first if and it worked, because it will loop first time without comments then second time will do, Hope I explained it correctly, but it really worked :) , excuse my bad English! ;)
Samira Radwan
24-Feb-16 11:46am
View
thank you, this is what i have done
Samira Radwan
2-Feb-16 8:30am
View
please let us know what do you use to convert to PDF? iTextSharp? others?
show a sample code
Samira Radwan
4-Dec-15 21:44pm
View
both schema in my question are in the same file!
Samira Radwan
3-Dec-15 8:30am
View
thanks @Sergey Alexandrovich Kryukov for your help. and sorry for not being more clear when ansking ;)
Samira Radwan
2-Dec-15 16:30pm
View
thanks a lot saved me a lot of time :)
Samira Radwan
2-Dec-15 11:51am
View
thanks for your helpful reply,I managed to download the file(s). but is it possible to convert to datatable if possible? thanks
Samira Radwan
15-Sep-15 16:33pm
View
what do you mean by bad characters? Do you use it as parameter to a SQL query? you could use regular expression. Please be more specific
Samira Radwan
9-Sep-15 16:29pm
View
in your dropdownlist assign The category name to DataTextField property and CatId to DataValueField. in your code insert or update CatId by selecting dropdownlist.SelectedValue.ToString().
Samira Radwan
8-Sep-15 13:38pm
View
you should use CheckBoxList instead of checkboxes to be able to use foreach
Samira Radwan
4-Sep-15 12:21pm
View
sure it will! add your session on page load between if (!IsPostBack). Then assign the session to DataTable on button click. Once updated assign it back to the session.
Samira Radwan
4-Sep-15 11:42am
View
store your table in a session. When update the session write it back to your table.
Samira Radwan
28-Aug-15 16:15pm
View
yes, you are right. So the best guess is your comment (DBNULL)
Thanks!
Samira Radwan
28-Aug-15 16:10pm
View
looks like one of your parameters is null or empty
Samira Radwan
28-Aug-15 12:25pm
View
thank you, it conflicts with Bootstrap javascript.
Gonna fix that :)
Samira Radwan
28-Aug-15 11:03am
View
Thank you, I have already tried $(this) that's why i use the popup id.
Samira Radwan
26-Aug-15 12:29pm
View
got 5* ^_^
Samira Radwan
26-Aug-15 12:27pm
View
I did ^_^
Samira Radwan
26-Aug-15 12:25pm
View
Deleted
I did ^_^
Samira Radwan
26-Aug-15 12:25pm
View
Deleted
I did ^_^
Samira Radwan
26-Aug-15 12:03pm
View
Thanks! that works.
Samira Radwan
26-Aug-15 12:02pm
View
That's better :)
I had to modify your answer and remove (not).
Thank you!
Samira Radwan
26-Aug-15 11:18am
View
(return + not) not working, syntax error :)
Samira Radwan
26-Aug-15 10:35am
View
Thanks Andy, I think your query has syntax error. I had to add if before the first (not) but still. Incorrect syntax near ')' the last brackets. Any idea why?
Samira Radwan
7-Aug-15 8:47am
View
i used onrowcommand before onClick and had the same problem!
Samira Radwan
12-Jun-15 16:40pm
View
Could you please review your code, you select one column and when binding the combobox you display catName1 and combobox value is catId !!
Samira Radwan
12-Jun-15 16:38pm
View
you select DISTINCT one column, there won't be duplicate values for sure!
Samira Radwan
11-Jun-15 16:10pm
View
That works! thanks a lot, Have a good evening :)
Samira Radwan
11-Jun-15 15:54pm
View
thank you, but no!! still not showing. The only change i have done is adding runat="server" and the table Id is the same as ItemPlaceholderID otherwise it won't work
Samira Radwan
11-Jun-15 15:35pm
View
thank you, that works for me had to add ItemPlaceholderID to make it work, but the headers not showing! any suggestions?
Samira Radwan
11-Jun-15 13:47pm
View
just don't know how to do it, thanks
Samira Radwan
9-Jun-15 12:45pm
View
this worked although it gives error in asp.net, thanks a lot :)
Samira Radwan
9-Jun-15 12:31pm
View
Parse Error!, I don't think it's gonna work , looks like c# Split function won't work with html code (')
Samira Radwan
9-Jun-15 12:13pm
View
Thank you, but It looks like it doesn't like the single quotes of .Split('|') within the single quotes of DataSource, any suggestions?
Samira Radwan
13-May-15 14:24pm
View
+5 for the well explained solution!
I will try and see if it works.
Thanks
Samira Radwan
12-May-15 16:54pm
View
If I understand correctly, you want to use comboBox selected value as parameter for your second query, so you should change this: comboBoxInvoice.ValueMember to comboBoxInvoice.SelectedValue.
Samira Radwan
5-May-15 8:16am
View
Deleted
in your web.config do you use the word "provider" in your connection string?
you should use something like this: <add name="DBnmae" connectionstring="your connection string" providername="System.Data.sqlClient">
You should use "providerName" not just "Provider". Hope this helps
Samira Radwan
4-May-15 16:50pm
View
please provide more data to be able to help you. the error could be in your Sqlcommand or parameters.
Samira Radwan
1-May-15 13:58pm
View
still not showing using Style. thanks
Samira Radwan
1-May-15 13:56pm
View
thanks for explaining (call a tag) :)
what i meant is to change the body background image according to dropdownlist selection.
I need to do it using c# code not javaScript.
Thank you.
Samira Radwan
30-Apr-15 9:21am
View
thanks Maciej.
i have just tested it again (if ToDate is null which means no ending date for the discount)and it ignores the records with linenum=0.
maybe i'm doing something wrong. please guide me :)
Samira Radwan
30-Apr-15 8:57am
View
your code works for me, just i had to modify it and add (as t1) in the second select otherwise it will give error "no column name was specified for column 7 of T"
and RowNo is lineNum?
thanks again
Samira Radwan
29-Apr-15 15:14pm
View
thanks a lot!
Samira Radwan
29-Apr-15 12:01pm
View
Deleted
thank you for your help, but top 1 will select only one product. i used your query without top 1. Please submit the answer to be useful for others and mark it as correct one ;)
Samira Radwan
24-Apr-15 8:50am
View
could you please give us more information, what have u tried so far? how is your aspx page looks like?
Thanks
Samira Radwan
23-Apr-15 14:54pm
View
maybe JavaScript is disabled check this link https://productforums.google.com/forum/#!topic/chrome/BYOQskiuGU0
to check javascript in chrome.
another link to check from your code if Javascript is enabled or not:
http://stackoverflow.com/questions/3739100/how-to-check-browsers-javascript-is-enabled-or-not
Samira Radwan
21-Apr-15 11:18am
View
yes, i know! but i didn't design it, unfortunately!
Samira Radwan
21-Apr-15 11:17am
View
YOU ROCK!
Thanks a lot! saved me a lot of time
Samira Radwan
16-Apr-15 12:41pm
View
thanks for your help but it gives me: System.Web.HttpUnhandledException
the type of the exception
Samira Radwan
16-Apr-15 11:52am
View
an example of ex.source is: System.Web
it doesn't give the page's name
Samira Radwan
16-Apr-15 11:44am
View
your question is not clear enough.
you could assign textbox.text as a parameter when redirect to next form like:
in Form1:
string link="form2.aspx?param=" + textbox1.text;
Response.Redirect(link);
in form2
string param=Request.QueryString["param"];
and according to param show or create you panels
hope this helps
Samira Radwan
16-Apr-15 11:30am
View
could you please give more info, like your aspx or cs files how they look like?
thank you
Samira Radwan
19-Mar-15 12:12pm
View
tried Version 5 the latest one, still have the same!
Samira Radwan
18-Mar-15 10:37am
View
thank you
Samira Radwan
18-Mar-15 10:15am
View
ok, thank you now i understand!
for the correct procedure to create a website:
1- right click IIS Sites>> Add website
2- add the website name & physical location (e.g D:\test-site).
3- in (D:\test-site) i should paste the contents of the published web app. from my local machine.
4- right click the website to create virtual directory
5- copy the same contents of (D:\test-site) to this directory
6- set the default document of the website (e.g Home.aspx)
are these steps correct?
please advice
thank you
Samira Radwan
18-Mar-15 9:44am
View
hi @jgakenhe
it's my first deployment. i have never tried to publish a web app.
i published the web forms app. to a local folder then i created a new website directed location to a folder where i copied my web app. from local folder.
BUT i noticed it published without (.CS) files[is it normal?] + i can't browse the site.
AND if i create a virtual directory should i copy the same contents to it?
Please advise, i'm completely lost!!
Samira Radwan
18-Mar-15 8:47am
View
thanks @RayanDev
i managed to publish to local folder i will try to copy it to the virtual directory and see :)
thank you!
Samira Radwan
18-Mar-15 8:42am
View
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at System.Security.AccessControl.Win32.SetSecurityInfo
Samira Radwan
18-Mar-15 8:37am
View
Deleted
Hi @jgakenhe,
i tried to test your solution but i can't find this option (publish to a shared folder).
please advise.
my app. is web forms application.
Thanks
Samira Radwan
5-Mar-15 12:52pm
View
thank you, i have read it
but i don't use exchange server or PickupDirectoryLocation in my code.
do i have to use it?i mean (PickupDirectoryLocation)? please explain
thanks
Samira Radwan
5-Mar-15 12:48pm
View
i have checked many time spam, but no! not receiving bcc
thanks
Samira Radwan
5-Mar-15 12:47pm
View
thanks for your comment, i did configure the stmp on iis and receiving emails now normally in inbox, but still bcc.
thanks
Show More