|
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.
|
|
|
|
|
what do you mean
ALT + F4 wrote: cant see it on the explorer
do you mean Internet Explorer, can you see it in mozilla firefox?
|
|
|
|
|
neither in explorer nor in firefox
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
OK post your code
Check the tab isn't set to visible = false as well
|
|
|
|
|
<asp:scriptmanager id="ScriptManager1" runat="server">
<ajaxtoolkit:tabcontainer id="TabContainer1" runat="server" activetabindex="1" height="206px">
Style="z-index: 17; left: 0px; position: absolute; top: 0px">
<ajaxtoolkit:tabpanel id="TabPanel1" runat="server" headertext="TabPanel1">
<contenttemplate>
<asp:textbox id="TextBox1" runat="server" style="z-index: 100; left: 54px; position: absolute;<br mode=" hold=" /"> top: 159px">
<asp:button id="Button1" runat="server" style="z-index: 102; left: 230px; position: absolute;<br mode=" hold=" /"> top: 158px" Text="Button" />
<headertemplate>
Source
<ajaxtoolkit:tabpanel id="TabPanel2" runat="server" headertext="TabPanel2">
<contenttemplate>
<asp:label id="Label1" runat="server" style="z-index: 100; left: 122px; position: absolute;<br mode=" hold=" /"> top: 165px" Text="Label">
<asp:textbox id="TextBox2" runat="server" style="z-index: 102; left: 185px; position: absolute;<br mode=" hold=" /"> top: 163px">
<headertemplate>
Destination
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
try removing all style attributes from the code and see if it shows then
|
|
|
|
|
its working on other systems...thanks for your response do u know how to uninstall ajax tool kit ?
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
go to add remove programs on the server maybe
what was the solution to the problem with the code?
|
|
|
|
|
everything was working fine.... i dont know why now its not working ....and
its not present in add or remove
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
How can i close a popup window in vb.net 2005 ?
Thanks in advance.
Sekhar
|
|
|
|
|
You have to control the popup using Javascript; not vb.net.
Check the following link[^].
*jaans
|
|
|
|
|
btn_close.Attributes.Add("onclick", "window.close(); return false;");
|
|
|
|
|
I am using CheckBox in my web form.But checked status always shownig false, Even I select that checkbox and I am also using Master Page in my Webform
Do you have any Idea.
Thank & Regards
Vijay s
|
|
|
|
|
hmm unless you have it set to false in the tag?
Is there anything happening on the checkbox check i.e. someone ticks the box and a postback occurs?
Can you post some of your code?
|
|
|
|