Click here to Skip to main content
15,348,965 members

Comments by Member 10549697 (Top 65 by date)

Member 10549697 21-Sep-18 23:50pm View
   
Sir, MySchedular is dll which gives the scheduled time (daily, weekly,monthly). I checked that code but there is nothing to concern. but is there any case where it happens like this?. If Service Scheduler doesn't work properly.
Member 10549697 26-Jul-17 3:34am View
   
Sorry. i have to make autogeneratedcolumns=false.
Member 10549697 26-Jul-17 3:19am View
   
Hi Karthik, This is a good example. actually this is what i need. but it is binding those columns twice. why?
Member 10549697 18-Jul-17 2:37am View
   
Hi Karthik, Thanks a lot.
Member 10549697 15-Mar-17 2:28am View
   
Hi Karthik,
I thought it should work with FindByText but It's not working though the data is there in database still it shows null
Member 10549697 7-Mar-17 0:51am View
   
Hi Karthik. It's working properly. Thank you!
Member 10549697 7-Mar-17 0:25am View
   
the val() is not working here.
Member 10549697 7-Mar-17 0:21am View
   
It works. Thank you!
Member 10549697 27-Feb-17 5:07am View
   
Correct sir!
this was the problem. now resolved.
Thank you so much
Member 10549697 27-Feb-17 4:53am View
   
it takes the date into mm dd yy format.i don't know what exactly happens.but it shows wrong date
Member 10549697 22-Sep-16 3:48am View
   
Thank You!..
Member 10549697 14-Sep-16 8:27am View
   
okay sir i will try to debug it
Member 10549697 14-Sep-16 8:01am View
   
this is the page from where i am getting the class and i'm passing the parameters
Member 10549697 14-Sep-16 8:01am View
   
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;

namespace ClassEmail
{
public class classEmail : Page
{
public classEmail();

public string SendEmail(string EmailFrom, string EmailSubject, HtmlInputFile emailAttachment, string emailBody, params string[] EmailTo);
public string SendEmailAttachment(string EmailFrom, string EmailSubject, Array emailAttachmentpaths, string emailBody, params string[] EmailTo);
public string SendEmailAttachment(string EmailFrom, string EmailSubject, HtmlInputFile emailAttachment, string emailBody, params string[] EmailTo);
public string SendEmailAttachment(string EmailFrom, string EmailSubject, string emailAttachmentpath, string emailBody, params string[] EmailTo);
public string SendEmailAttachmentReplyTo(string EmailFrom, string EmailSubject, Array emailAttachmentpaths, string emailBody, string ReplyTo, params string[] EmailTo);
public string SendEmailAttachmentWithCC(string EmailFrom, string EmailSubject, Array emailAttachmentpaths, string emailBody, string ccIds, params string[] EmailTo);
public string SendEmailAttachmentWithCCBCC(string EmailFrom, string EmailSubject, Array emailAttachmentpaths, string emailBody, string ccIds, string bccIds, params string[] EmailTo);
public string SendEmailWithReplyTo(string EmailFrom, string EmailSubject, HtmlInputFile emailAttachment, string emailBody, string ReplyTo, params string[] EmailTo);
public string SendEmailWithReplyToWithCC(string EmailFrom, string EmailSubject, string emailAttachment, string emailBody, string ReplyTo, string ccIds, params string[] EmailTo);
public string SendEmailWithReplyToWithCCBCC(string EmailFrom, string EmailSubject, string emailAttachment, string emailBody, string ReplyTo, string ccIds, string bccIds, params string[] EmailTo);
}
}
Member 10549697 14-Sep-16 8:01am View
   
Yes sure.
Member 10549697 13-Sep-16 23:50pm View
   
Yes.This worked.Thank You!
Member 10549697 13-Sep-16 4:40am View
   
no.both are on different page.
Member 10549697 29-Aug-16 1:25am View
   
sir path is right.there is no problem in code but when i open my excel sheet it shows an empty sheet
Member 10549697 28-Aug-16 3:29am View
   
yes i will use that and thanks for the answer.one more question can i create table for defining rows and columns same like this insert query?Please help me
Member 10549697 3-Aug-16 0:40am View
   
Thank you sir.your code always helps me.
Member 10549697 25-Jul-16 5:25am View
   
Actually i tried this but it works like BETWEEN.so these both methods gives same results
Member 10549697 25-Jul-16 5:21am View
   
rather i tried 23/3/2016 11:59:59 and it works for me but i dont want to use that
Member 10549697 20-Jul-16 6:14am View
   
Thank You Sir. IN keyword was missing
Member 10549697 7-Jul-16 23:22pm View
   
yes.it works.thanks for the answer
Member 10549697 7-Jul-16 23:21pm View
   
Thank You sir.it helped.now its working
Member 10549697 7-Jul-16 23:19pm View
   
exactly.comma separated values in array
Member 10549697 7-Jul-16 6:55am View
   
yes.copies of textboxes
Member 10549697 7-Jul-16 5:58am View
   
I'm getting the values in ContactEmailNew And ContactNameNew
Member 10549697 7-Jul-16 5:53am View
   
if (Request.Form.GetValues("ContactEmail") != null && Request.Form.GetValues("ContactName") != null)
{
ContactEmailNew = Request.Form.GetValues("ContactEmail");
ContactNameNew = Request.Form.GetValues("ContactName");
JavaScriptSerializer serializer = new JavaScriptSerializer();

Values = serializer.Serialize(ContactNameNew);
valueEmail = serializer.Serialize(ContactEmailNew);
var concat = ContactEmailNew.Zip(ContactNameNew, (em, nm) => new { ContactEmailNew = em, ContactNameNew = nm });
foreach (var emnm in concat)
{
email = emnm.ContactEmailNew;
name = emnm.ContactNameNew;
lstckeckemail(email, name);
}
}
Member 10549697 7-Jul-16 5:45am View
   
<script type="text/javascript">
$(function () {
document.getElementById("<%=hidcounter.ClientID%>").value = 0;
var email = eval('<%=valueEmail%>');
var name = eval('<%=Values%>');


//alert(email);
//alert(name);
if (email != null) {
var html = "";
$(email).each(function () {
var div = $("<div />");
var counter = $.trim($('[id$=hidcounter]').val());
alert(counter);
alert(name);
var nameArray = name.split(',');
div.html(GetDynamicTextBox(name, email));
$("#TextBoxContainer").append(div);
counter++;
//$('[id$=hidcounter]').val() = counter;
document.getElementById("<%=hidcounter.ClientID%>").value = counter;

});
}
$("#btnAdd").bind("click", function () {
var div = $("<div />");
div.html(GetDynamicTextBox("", ""));
$("#TextBoxContainer").append(div);
return false;
});
$("body").on("click", ".remove", function () {
$(this).closest("div").remove();
});
});
function GetDynamicTextBox(valuename, valueemail) {
alert(valuename);
alert(valueemail);

return '<input name = "ContactName" type="text" value = "' + valuename + '" /> ' + '<input name = "ContactEmail" type="text" value = "' + valueemail + '" /> ' +
'<input type="button" value="Remove" class="remove" />'
}
</script>
Member 10549697 7-Jul-16 5:42am View
   
Sir,My all textboxes have same name.and doesn't have the ids as they are dynamically created with javascript
Member 10549697 7-Jul-16 5:38am View
   
I want to use the split function with this javascript code.but may be it doesn't support to the evals
Member 10549697 7-Jul-16 5:36am View
   
The issue is I want to split the values coming from textboxes.and i am unable to do that
Member 10549697 7-Jul-16 5:34am View
   
The textbox doesnt have ids.we can add number of textboxes dynamically and also they can be removed
Member 10549697 7-Jul-16 5:32am View
   
public string Values;
ContactNameNew = Request.Form.GetValues("ContactName");
JavaScriptSerializer serializer = new JavaScriptSerializer();

Values = serializer.Serialize(ContactNameNew);
Member 10549697 7-Jul-16 5:31am View
   
It is the value inside the dynamic textbox
Member 10549697 7-Jul-16 5:30am View
   
The value is coming from dynamic textbox
Member 10549697 7-Jul-16 5:27am View
   
Sorry Sir But It doesn't work.it does not allow me to use 'split' but if i pass a string like ("Hello") it shows me the option of split
Member 10549697 1-Jul-16 8:27am View
   
I'm extremely sorry sir.actually it was the problem in my database.sorry for bothering you
Member 10549697 1-Jul-16 8:27am View
   
I'm extremely sorry sir.actually it was the problem in my database.sorry for bothering you
Member 10549697 1-Jul-16 4:51am View
   
So what is the solution on that?
Member 10549697 29-Jun-16 3:02am View
   
okay.thank you.it helped
Member 10549697 27-Jun-16 7:57am View
   
how to add filename in this code?
Member 10549697 27-Jun-16 7:29am View
   
even it does not open text files
Member 10549697 27-Jun-16 7:22am View
   
Thank You Sir
Member 10549697 24-Jun-16 7:10am View
   
/uploads/Netscribes (I) Pvt Ltd_INDIA-Mumbai/SO0000/Deliverables/Default_240616154013830.txt


This is the fullpath i get in the database but path doesn't exist
Member 10549697 7-Jun-16 6:32am View
   
Yes..Thank You...
Member 10549697 31-Mar-16 11:36am View
   
Thank You sir! the third link worked...it was easy explanation..really thanks
Member 10549697 31-Mar-16 11:25am View
   
its like normal textbox having tex as "type here..."
Member 10549697 31-Mar-16 0:20am View
   
Thank you sir...this code is easy to understand
Member 10549697 30-Mar-16 13:03pm View
   
and yes i will use byte[]array but the link has worked which is more important and thank you for that
Member 10549697 30-Mar-16 13:02pm View
   
Thank you sir.your link worked for me!
Member 10549697 30-Mar-16 12:31pm View
   
so,can i save docx file on sql server?
Member 10549697 26-Mar-16 3:11am View
   
Thank you for the suggestion.the label text is used for name of the table..i'll google for sql injection attack
Member 10549697 26-Mar-16 3:09am View
   
thanks for the query
Member 10549697 25-Mar-16 10:41am View
   
string str = "insert into " + label4.Text + "(dataid,data) values(" + textBox1.Text + "," + label2.Text + ");";
this is what i did...can you please correct my query?
Member 10549697 25-Mar-16 10:39am View
   
ya thanks for this advice...can you send me the link of code to prevent sql injection or i can learn for preventing it
Member 10549697 25-Mar-16 8:00am View
   
string str = "insert into " + label4.Text + "(dataid,data) values(" + textBox1.Text + "," + label2.Text + ");";
this is my sql query..what i did wrong in that?
Member 10549697 24-Mar-16 21:47pm View
   
//code for encryption in form_1
private void button3_Click(object sender, EventArgs e)
{
cipherdata = richTextBox1.Text;
plainbytes = Encoding.ASCII.GetBytes(cipherdata);
plainkey = Encoding.ASCII.GetBytes("0123456789abcdef");
desObj.Key = plainkey;
desObj.Mode = CipherMode.ECB;
desObj.Padding = PaddingMode.PKCS7;
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms, desObj.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(plainbytes, 0, plainbytes.Length);
cs.Close();
cipherbytes = ms.ToArray();
ms.Close();
label4.Text = Encoding.ASCII.GetString(cipherbytes);
Encrypt er = new Encrypt();
er.label4.Text = label6.Text;
er.label2.Text = label4.Text;
er.Show();
}
//code for decryption in form_2
private void button1_Click(object sender, EventArgs e)
{

// string cipherString = label6.Text;
// System.IO.MemoryStream ms1 = new System.IO.MemoryStream();
// cipherbytes = ms1.ToArray();
// ms1.Close();*/

// label6.Text = Encoding.ASCII.GetString(cipherbytes);
// System.IO.MemoryStream ms1 = new System.IO.MemoryStream(cipherbytes);
// CryptoStream cs1 = new CryptoStream(ms1, desObj.CreateDecryptor(), CryptoStreamMode.Read);
// byte[] cipeherbytes = Encoding.ASCII.GetBytes(cipherString);
byte[] cipherbytes = Encoding.ASCII.GetBytes(label6.Text);
System.IO.MemoryStream ms = new System.IO.MemoryStream(cipherbytes);
desObj.Padding = PaddingMode.PKCS7;
CryptoStream cs = new CryptoStream(ms, desObj.CreateDecryptor(), CryptoStreamMode.Read);
cs.Read(cipherbytes, 0, cipherbytes.Length);
plainbytes2 = ms.ToArray();
cs.Close();
ms.Close();
string garbage = Encoding.ASCII.GetString(plainbytes2);
label2.Text = garbage.Substring(0, plainbytes.Length);
}
Member 10549697 24-Mar-16 21:46pm View
   
yes sir i'm doing the same thing but i am writing the code in 2 forms...i.e one form for encryption and one for decryption..and it's not working..i am posting my code below..please help me
Member 10549697 24-Mar-16 13:13pm View
   
byte[] cipherbytes = Encoding.ASCII.GetBytes(label6.Text);
System.IO.MemoryStream ms = new System.IO.MemoryStream(cipherbytes);
CryptoStream cs = new CryptoStream(ms, desObj.CreateDecryptor(), CryptoStreamMode.Read);
cs.Read(cipherbytes, 0, cipherbytes.Length);
plainbytes2 = ms.ToArray();
cs.Close();
ms.Close();
string garbage = Encoding.ASCII.GetString(plainbytes2);
label2.Text = garbage.Substring(0, plainbytes.Length);
}
Member 10549697 24-Mar-16 13:13pm View
   
now it says padding cannot be removed...here is my entire code
Member 10549697 22-Mar-16 1:20am View
   
ya exactly..thanks
Member 10549697 22-Mar-16 1:20am View
   
thank you!
Member 10549697 19-Mar-16 5:58am View
   
Thank You so much!