Click here to Skip to main content
14,331,758 members

Comments by Heba Kamel (Top 80 by date)

Heba Kamel 23-Oct-18 8:49am View
ok, Thanks for your support
I'll try :)
Heba Kamel 23-Oct-18 8:37am View
Heba Kamel 23-Oct-18 8:36am View
Heba Kamel 23-Oct-18 8:36am View
Heba Kamel 23-Oct-18 8:27am View
because it's a JSON object, and the properties is dynamic
Heba Kamel 23-Oct-18 8:23am View
Ok any suggestions to do this ?
for me the whole string must put in one column.
Heba Kamel 23-Oct-18 8:15am View
" the index is on the Name column. It can be used to satisfy queries on the Name column, but will be of no use for queries on the Transaction column.

I did the index on Name column with include Transaction column
because of I cannot create the index directly on Transaction column because it's nvarchar(2000)
Heba Kamel 23-Oct-18 7:44am View
ok, I have updated the question
Heba Kamel 21-Feb-17 15:14pm View
no, it works fine if I delete charts configuration from web.config file
Heba Kamel 28-Jul-16 3:48am View
Thanks Ryan, I thought there are some settings or some thing that I should do before upload on Host as this is my first time to publish website
I'll contact with them Ok
Have a nice day.
Heba Kamel 28-Jul-16 3:46am View
Thank you, I'll do :)
Heba Kamel 16-Jun-16 2:26am View
I don't use Visual Studio, I am using nsb-appstudio with sqlite
Heba Kamel 14-Jun-16 4:19am View
ok, I'll try again
thanks :)
Heba Kamel 14-Jun-16 3:33am View
I made this and table already found, my question here is how the code above know that test.db that this is the database I created
because SqlOpenDatabase if doesn't found the database it create new one
and this what happened in my case every time I launch the project the database create again
how to make the project know that I want to use the database I created in sqlite using cmd
or how to get the database that the project created
may be I don't understand well how it works but that's what I understand till now
Heba Kamel 6-Feb-16 5:11am View
The SaveAs method is configured to require a rooted path, and the path " " is not rooted
Heba Kamel 5-Feb-16 19:56pm View
the error is don't save image in folder ,
but I can read from folders normally how can I know I have permissions or not?
Heba Kamel 21-Dec-15 6:05am View
Yes, but for sorry I am out now
Do you mind when I back tell you ?
I don't know what time is it in your city, I'll go home after 6 hours from now
Heba Kamel 21-Dec-15 4:40am View
so this is my function
public static StringBuilder SaveUser(User user)
string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
using (SqlConnection con = new SqlConnection(constr))
using (SqlCommand cmd = new SqlCommand("INSERT INTO Users VALUES(@Username, @Password)"))
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@Username", user.Username);
cmd.Parameters.AddWithValue("@Password", user.Password);
cmd.Connection = con;
Class1 c = new Class1();
html = c.GetData();
return html;
//return response.write(html);
but how return response.write(html); ?
Heba Kamel 21-Dec-15 3:44am View
Do you mean aspx page
okay, it only have a form to insert and ajax function that I wrote it in the post
and this is a form
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0">
User Name:
<input type="text" id="txtUsername" value="<%= userName %>"/>
<input type="password" id="txtPassword" value="<%= password %>"/>
<input type="submit" id="btnSave" value="Save"/>
<input type="submit" id="btnUpdate" value="Update"/>

<%= html %>
Heba Kamel 21-Dec-15 3:39am View
Yes, this is appear ($('#container').html('<p> Your record successfully saved</p>');)
I think now the problem in response but what do u mean with check your response html
Heba Kamel 21-Dec-15 3:25am View
which function did u mean?
I alert in document.ready and it isn't appear after save
Heba Kamel 21-Dec-15 3:22am View
I don't understand u well but CS.aspx/SaveUser is the same page but I get html table from another class that contains the function create html string builder
Heba Kamel 21-Dec-15 3:14am View
No, It doesn't back to page_load on button click
Heba Kamel 21-Dec-15 3:06am View
I did it before but the table removed after save .
Heba Kamel 21-Dec-15 3:00am View
No, I want to do this without asp controls like update panel and in update panel I can't use <%= html %>
Heba Kamel 21-Dec-15 2:30am View
okay, I'll edit my question to add this in appropriate format
Heba Kamel 6-Dec-15 4:05am View
ok, what's the solution to clear?
Heba Kamel 22-Nov-15 4:10am View
I solved it by using
imap.ConnectSSL("", 993);
rather than
Heba Kamel 16-Nov-15 6:34am View
That's all I did

string fileSavePath = Server.MapPath("~/uploads/");
FileUpload1.PostedFile.SaveAs(fileSavePath + fileName);
File.Copy(fileSavePath + fileName, Server.MapPath("~/processed/") + fileName, true);

HyperLink link = new HyperLink();
link.ID = "Link1";
link.Text = fileName;
link.NavigateUrl = "download.aspx?name=" + fileName;
Page.Controls.Add(new LiteralControl("<br/>"));
Label1.Text = "File successfully uploaded";

and there is download.aspx page to let me download from link
Heba Kamel 11-Nov-15 4:43am View
any way I did it using hyperlink to download the file and used javascript to hide and show this hyperlink
Heba Kamel 11-Nov-15 4:42am View
I made it the same idea by using hyperlink to download file
Heba Kamel 11-Nov-15 4:10am View
but how by using Response.Redirect ("nextpage.aspx", false);
redirect on the same page, I don't have two pages
how it appear label text ?
Do I understand you well
Heba Kamel 11-Nov-15 4:08am View
Ok, I commented Response.End
and use this line
Response.Redirect ("nextpage.aspx", false);
I put the same page
but it doesn't appear too
Do I understand you well ?
Heba Kamel 5-Nov-15 8:15am View
Thank you for this solution
but how get selected value in contoller to save it ?
Heba Kamel 8-Jun-15 16:28pm View
with me just send 3 MB attachment, and it's not a .exe file
any help ?
Heba Kamel 6-Jun-15 19:28pm View
what do you mean (one by one) ?
Heba Kamel 6-Jun-15 6:18am View
ok, sorry
I asked this because somebody told me there is a way .
Heba Kamel 5-Jun-15 22:00pm View
Ok, thank you so much :)
Heba Kamel 5-Jun-15 21:10pm View
any way to increase this size to send more attachments ?
Heba Kamel 5-Jun-15 20:32pm View
and in my case I need to send a lot of attachment .
Heba Kamel 5-Jun-15 20:31pm View
you are right, I tried 2 or 3 and it's sending correctly
the question now how many attachment can I send ?
Heba Kamel 15-Apr-15 8:40am View
It works well now
thank you so much Tadit :)
Heba Kamel 6-Apr-15 17:02pm View
yes, thanks
Heba Kamel 6-Apr-15 7:03am View
this line in links too
I accept your answer
Thank you
Heba Kamel 6-Apr-15 7:02am View
thanks this line
keyCode = event.which || event.keyCode
works fine when I pass event as a parameter to function
Heba Kamel 5-Apr-15 9:41am View
doesn't work
Heba Kamel 2-Jan-15 9:53am View
Thank you
Heba Kamel 2-Jan-15 9:53am View
Thank you
and Happy New Year too :)
Heba Kamel 2-Jan-15 8:20am View
any id is identity in table
Heba Kamel 1-Dec-14 15:34pm View
but my account didn't work too ?!!
Heba Kamel 1-Dec-14 15:14pm View
Error in login to Gmail account ?!
I try it and it's correct
Heba Kamel 1-Dec-14 8:59am View
I mean I go to Gmail but don't know from where get account ..
Heba Kamel 30-Nov-14 16:37pm View
How ?
Heba Kamel 30-Nov-14 16:23pm View
Is there any setting in Gmail before sending ?
Heba Kamel 30-Nov-14 16:05pm View
Okay, did you test the previous code with email (
I created this mail for testing and I have the same error , you can test and this is a password (testsend0123)
Heba Kamel 30-Nov-14 14:01pm View
Afzaal ?
Heba Kamel 29-Nov-14 10:58am View
I agree with you,
Thank you Afzaal
Heba Kamel 29-Nov-14 10:18am View
I create new account for test and this is a code , you can test it please
but I have the same error

string smtpAddress = "";
int portNumber = 587;
bool enableSSL = true;

string emailFrom = "";
string password = "testsend0123";
string emailTo = "";
string subject = "Hello";
string body = "Hello, I'm just writing this to say Hi!";

using (MailMessage mail = new MailMessage())
mail.From = new MailAddress(emailFrom);
mail.Subject = subject;
mail.Body = body;
mail.IsBodyHtml = true;
// Can set to false, if you are sending pure text.

mail.Attachments.Add(new Attachment("C:\\n.txt"));

using (SmtpClient smtp = new SmtpClient(smtpAddress, portNumber))
smtp.Credentials = new NetworkCredential(emailFrom, password);
smtp.EnableSsl = enableSSL;
Heba Kamel 29-Nov-14 10:05am View
but my password and username is correct
Heba Kamel 28-Nov-14 18:45pm View
Make sure that you're using the correct password for the valid username on the server .

Did you mean my email password ?
Heba Kamel 28-Nov-14 18:41pm View
How can i get this account, and where i used this account in my code?
Heba Kamel 28-Nov-14 17:58pm View
Did you mean in this line i must write user name rather than email in first parameter ?
smtp.Credentials = new NetworkCredential("", password);
Heba Kamel 28-Nov-14 17:57pm View
Sorry, it's mistake i mean Gmail smtp (
yes, i used it in using block
in this line
smtp.Credentials = new NetworkCredential("", password);
i must write email or user name in first parameter?
Heba Kamel 28-Nov-14 8:56am View
i wrote this line
Smtp.Port = 25;
but still error

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. c5sm16036467wik.3 - gsmtp
Heba Kamel 28-Nov-14 8:46am View
No, how can I do this?
I can change yahoo's SMTP to GMail's SMTP (, right?
Heba Kamel 26-Nov-14 15:33pm View
Ok, sending email will solve my problem with Hotmail
but Facebook ?
Heba Kamel 25-Nov-14 14:32pm View
Why stupid idea? i have some mails and want to know if those already registered on Facebook and Hotmail or not (that's a project purpose)
Do you mean stupid on purpose or on the way to solve it ?
Heba Kamel 25-Nov-14 8:08am View
:D ok, how i can create new account from my desktop application ? :D
Heba Kamel 24-Nov-14 11:31am View
Do you have any links ?
Heba Kamel 24-Nov-14 10:00am View
No, i didn't know more about Facebook API
but I'll search on it now
Heba Kamel 5-Aug-14 15:26pm View
the same problem
Heba Kamel 27-Jun-14 4:40am View
but it doesn't work on IE , in IE this is remove all objects not only selectedObject only
Heba Kamel 26-Jun-14 13:14pm View
thanks DamithSL it's solved
Heba Kamel 26-Jun-14 13:13pm View
Thanks Mohibur it's run :)
add solution to i can accept it
Heba Kamel 26-Jun-14 13:13pm View
Thanks Mohibur it's run :)
add solution to i can accept it
Heba Kamel 26-Jun-14 12:38pm View
i don't want remove newly element i want remove selected element
Heba Kamel 25-Jun-14 16:22pm View
this line is run successfully

SqlCeConnection con = new SqlCeConnection("Data Source="
+ System.IO.Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), "MyDB.sdf"));
Heba Kamel 24-Jun-14 15:49pm View
i get this
Keyword not supported: 'datasource'.

and this is my code

string StartupPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);

SqlConnection con = new SqlConnection(string.Format("DataSource={0}", System.IO.Path.Combine(Application.StartupPath, "Database2.sdf")));
Heba Kamel 24-Jun-14 2:14am View
i made new database (Database1.sdf) then i made tables on it
Heba Kamel 24-Jun-14 2:08am View
when i make add connection no databases appears !!