|
I used ../image path for the images....didnt work....
any other suggestion plz.
thnx.
raj.
|
|
|
|
|
read http://www.4guysfromrolla.com/webtech/121799-1.shtmlthis article about Server.MapPath() functionality
|
|
|
|
|
dynamic raj wrote: any other suggestion plz.
This message is a generic message that means exactly what it says - you are on a secure page (https) but some element of the page is nonsecure (http). This can be anything that is loaded into the page, such as an image (as already suggested), a css file, a script include, an applet etc.
If you are having trouble tracking down the offender, try something like fiddler[^] and watch for any http requests when hitting your https page.
|
|
|
|
|
Hi J4..
just I installed fiddler...
could you explain little bit more...how to track the exact items...
thnx
|
|
|
|
|
erm... it's pretty self-explanatory. Whhen you make a request to a page fiddler shows each http request that your browser is issuing. when you hit the https page look for any requests that says http. Thats you're culprit for the "this page contains both secure and nonsecure ....." message.
|
|
|
|
|
please give me simple code to clear gridview
|
|
|
|
|
gridview.DataSource = null;
|
|
|
|
|
no its not like that, i want to clear the data in gridview then fill some other data in same gridview.
|
|
|
|
|
sounds like you have a refresh problem.
Is your gridview in an updatePanel?
Is the gridview DataBound after set to null ?
gridview.DataSource = null;
gridview.DataBind();
|
|
|
|
|
Hi RajKumar,
adap.Fill(ds,"table1");
ds.Clear();Clear the dataset and
Then fill another data and bind to the gridview
|
|
|
|
|
hi
i am not using any adapetr or dataset . i am using data table.
|
|
|
|
|
Hi RajKumar,
ok then will have a option dt.Clear();
|
|
|
|
|
see i am using datatable to fill gridview and i am using this for some calculater ... it will display result in grid view .. after one one calculation if user want to do next calculation then previous record shd not display..
|
|
|
|
|
if you have AutoGenerating Columns then just change the DataSource
example:
GridView1.DataSource = datasource<br />
GridView.DataBind();<br />
<br />
GridView1.DataSource = newdatasource<br />
GridView.DataBind();
if you are using BoundFields then I will sugest u using new GridView control for new datasource
I Love T-SQL
|
|
|
|
|
You want to clear and Fill the grid.You want these two process in two different events or only one event.
Cheers..!
Vijay s
|
|
|
|
|
see i am using datatable to fill gridview and i am using this for some calculater ... it will display result in grid view .. after one one calculation if user want to do next calculation then previous record shd not display.. plz help me in this.
|
|
|
|
|
So you are not using DB.How many DataTable you are using ? Can you send your Code..?
Thank & Regards
Vijay s
|
|
|
|
|
can u tell me how to delete complete data only from data table before adding data to it ?
|
|
|
|
|
if you delete row use this code.
dt.Rows[Index].Delete()
Or if u want delete data
dt.Rows[Index]["ColumnName"] = null;
Thank & Regards
Vijay s
|
|
|
|
|
simply bind the gridview without specifying the datasource...data will get vanished
Ashish Sehajpal
|
|
|
|
|
I am having two projects how can i integrate project one's MSIL into second one through web.config .
modified on Wednesday, April 16, 2008 6:27 AM
|
|
|
|
|
Hi All,
Here in my application I want to send Mail through my application, but when I click on send,got an error msg -
"Send Email Failed. Mailbox unavailable. The server response was: 5.7.1 Unable to relay for suveen.kulshreshtha@yahoo.com "
Plz help me to shortout that problem.
here is the code
protected void btnSendmail_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
try
{
MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text);
smtpClient.Host = "localhost";
smtpClient.Port = 25;
message.From = fromAddress;
message.To.Add("suveen.kulshreshtha@yahoo.com");
message.Subject = "Feedback";
message.IsBodyHtml = false;
message.Body = txtMessage.Text;
smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
smtpClient.UseDefaultCredentials = true;
smtpClient.Send(message);
lblStatus.Text = "Email successfully sent.";
}
catch (Exception ex)
{
lblStatus.Text = "Send Email Failed.;" + ex.Message;
}
}
thanks
SMK
|
|
|
|
|
MailMessage objMM = new MailMessage();
objMM.To = "email@y.com";
objMM.From = mailtxt.Text;
objMM.Bcc = "a@b.com";
objMM.Cc = "b@b.com";
objMM.BodyFormat = MailFormat.Html;
objMM.Priority = MailPriority.Normal;
objMM.Subject = subjecttxt.Text;
objMM.Body = "textbox1";
SmtpMail.Send(objMM);
SmtpMail.SmtpServer = "localhost";
try something like that maybe
also try
http://codebetter.com/blogs/peter.van.ooijen/archive/2006/04/05/Using-localhost-as-mailserver-_2800_5.7.1-Unable-to-relay-for-xxx_2900_.aspx
|
|
|
|
|
Thanks Its working
Regards
SMK
|
|
|
|
|
hi
I am using Vs 2005 ( C# )
I am using tab container to which i have added tab pannels in those pannels few controls ...now the code is running perfectly but i cant see it on the explorer ..is that i am missing something....please tell me .. * i have checked the visible property
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|