|
afaik you your code is fine if you are getting mail in queue. to send it you have to have a live internet connection and valid smtp server. if it is in queue nothing is wrong with the code you need to check smtp server setting.. or relay options in IIS
-----
|
|
|
|
|
Hi,
I m having typeddataset with 3 tables and relations among them. 2nd datatable has some computed columns including aggregate functions based on relation with 3rd table. While I am trying to fill the data in to datatables I am getting the following exception if at all my 3rd table doesnt have any rows. I am getting this error while i am setting EnforeceConstraints of dataset to true after filling datatables. Before filling them I am setting it to false.
"Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
Any kind of help will be appreciated.
Thanks in Advance.
|
|
|
|
|
What do your computed columns look like?
|
|
|
|
|
Hi Mike,
My computed columns in the second datatable are like:
Count(Child.detailId)
Here in second datatable I am having a column which is having dataexpression as "Count(Child.detailId)", and in second datatable itself there are some other columns which are computed based on the above calculated column.
Is there any problem with aggregate columns.
Thanks.
|
|
|
|
|
I haven't found anything definitive on this... do you need to enforce constraints? Can you get by without them? Can you get by without the computed column?
|
|
|
|
|
Hi,
I need those consdtraints should be in place and computed columns should be also there because i dont have those columns stored in database.
Thanks.
|
|
|
|
|
how can i change the url of the content page in contentPlaceholder. Currently it is now allowing to specify the url of content page.
I have a page in another folder. How can i achive this
|
|
|
|
|
In the content page's source view there should be a page directive at the top. With in the directive there should be a masterpagefile="yourmasterpage.master". If you don't have one you will need to add it and intellisense should take care of the rest. Since your content page can be in any folder with in the application, it should the be the masterpagefile tag's responsibility to point to the correct masterpagefile.
e.g. if the masterpage.master file in is the root directory, all of the contenct pages that use this master file should have the masterpagefile tag equaling "~/masterpage.master", regardless of their physical folder location.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Can u help me to find the solution that how to read a word document using filestream,when i did it is read as a binary file,but i wanted it to be read as a text file..
KRISHNA
|
|
|
|
|
The Word native format is a binary file. What specifically are you trying to accomplish?
|
|
|
|
|
Hello to all,
I want a dialog window on button click and dialog window has datagrid.
Datagrid has hidden column as employee number and second column is employee name which is template column(Linkbutton).
When I click on templete column I want that the selected employee name should be displayed in a listbox which is on parent form.
Please help me.
|
|
|
|
|
|
Hi
Can any one tell me how to merge the repeated values in a column? At present we are using bound column to display the records.
Code we are using
------------------
<asp:datagrid id="LocationsGrid" runat="server" onselectedindexchanged="LocationsGrid_SelectedIndexChanged" useaccessibleheader="True" autogeneratecolumns="False" gridlines="None" tooltip="Click location to edit" allowsorting="true" bordercolor="black" borderwidth="1" cellpadding="3" headerstyle-backcolor="#00aaaa">
<alternatingitemstyle>
<columns>
<asp:boundcolumn datafield="Location" headertext="Location" footertext="Hello" readonly="False" sortexpression="StringValue">
<asp:boundcolumn datafield="reference_id" headertext="Item No" sortexpression="IntegerValue">
<asp:hyperlinkcolumn text="Heading" datanavigateurlfield="reference_id" datanavigateurlformatstring="call_detail.aspx?action=View&callId={0}" datatextfield="Heading" headertext="Call" navigateurl="call_detail.aspx?action=View&callId={0}" sortexpression="StringValue">
Present Output
--------------
Girls Technology 484 hoover in workshop
Girls Technology 490 Fault on lights
Tillitson Pavillion 427 Please fit new locks to cupboards
Tillitson Pavillion 58 rendering
Tillitson Pavillion 309 Please attend to washer
Tillitson Pavillion 420 Please re-fit old handrail
Tillitson Pavillion 300 REPAIR WASHING Mc DOORDOOR HINGE BROKEN
Required output
----------------
Girls Technology 484 hoover in workshop
490 Fault on lights
Tillitson Pavillion 427 Please fit new locks to cupboards
58 rendering
309 Please attend to washer
420 Please re-fit old handrail
300 REPAIR WASHING Mc DOORDOOR HINGE BROKEN
Here the value at Location column gets repeated and we want to merge it one cell.
Thanks in advance,
Arunagiri
|
|
|
|
|
chk this
http://aspnet.4guysfromrolla.com/articles/072603-1.aspx
|
|
|
|
|
hi!
can you please tell me how i can locate a directory and read its contents(All the file e-g .doc,.txt,bmp...etc what ever it contain) in a data grid and if some one click on the link the file will then downloaded and the second link will delete the file
i am using asp.net using vb.net
plz provide the code if possible
thanks in advance
shezi
|
|
|
|
|
|
I try to Send e-mail from local machine (local Host) to remot mail at yahoo
the program fail to send this mail
please help me with full steps
and needed steps for configure SMTP
and SmtpMail.SmtpServer
thanks for all
|
|
|
|
|
.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. I've seen a few questions from folks wondering about how to get started with it. Here is a simple snippet of how to send an email message from “sender@foo.bar.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):
MailMessage message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);
System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system (so for ASP.NET applications you’d configure this in your application’s web.config file). Here is an example of how to configure it:
from tis inside html tag
system.net
mailSettings
smtp from="test@foo.com"
network host="smtpserver1" port="25" userName="username" password="secret" defaultCredentials="true"
smtp
mailSettings
system.net
upto tis inside html tag
or
http://www.codeproject.com/useritems/EmailApplication.asp
hope tis will help u, to configure smtp http://www.aspit.net/tutorials/specific/configuring_smtp_server_under_iis_step_by_step.asp
coolsweety
-- modified at 7:27 Thursday 20th April, 2006
|
|
|
|
|
Salam,
First, do you have an SMTP server installed on one of your machines?? Or do you have an email with SMTP support (free webmails like yahoo, hotmail..etc do not allow to send emails programmatically through their SMTP servers...)
Once you have a valid SMTP server, here's some code to do so :
MailMessage mail = new MailMessage();<br />
mail.To = "xxxx@yahoo.com";<br />
mail.Bcc = "yyyy@yahoo.com; sersif@mce.gov.ma";<br />
mail.From = "your email or name";<br />
mail.Subject = "your subject";<br />
mail.Body = "your subject";<br />
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "YOUR EMAIL USERNAME");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "YOUR EMAIL PASSWORD");
<br />
SmtpMail.SmtpServer = "10.4.1.2";
<br />
SmtpMail.Send(mail);
|
|
|
|
|
Im glad you got some decent responses...those people are very patient.
1) Please use descriptive subject titles - Everyone wants "Help", but thanks for at leastusing please
2) telling us "it fails" does not help us solve your problem. Please remember to post the code you are using and the exception message that is given.
|
|
|
|
|
i have a rediobutton and a dropdownlist and when the form loaded rediobutton.checked = false and dropdownlist be disable(means dropdownlist.enable = false) and i want after load when i select rediobutton (means rediobutton.checked = true) dropdownlist be enable
how can i do this work
|
|
|
|
|
just set the autopostback property of radio button true, then on RadioButton1_CheckedChanged event write dropdown.enabled=true;
coolsweety
-- modified at 9:05 Thursday 20th April, 2006
|
|
|
|
|
Hey,
You need to set the radionbutton AutoPostback property to 'true'..
Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist..
I'd rather suggest you use a checkbox instead of a radiobutton.
Good luck.
|
|
|
|
|
thanks for your help thats right i forgeted the atuopostbak.
that be work now thank
|
|
|
|
|
hi all,
am using a third party control called infragistics webgrid for study purpose.
and am having one problem when using it, the problem is
i have one web grid. it has a column with date value. when edititng this column(date column) with an invalid date, the column is replaced with some valid date. how can i get rid from this
plz help me
coolsweety
-- modified at 6:30 Thursday 20th April, 2006
|
|
|
|