|
Hi All,
I need to fetch all the Undelivered mail form my outlook inbox I am using ASP.NET 2.0(VB).
Can anyone suggest me with the code??
Thanks in advance...
|
|
|
|
|
ASP.NET 2.0 wrote: I need to fetch all the Undelivered mail form my outlook inbox
Undelivered mail are stored in outbox of outlook ...
if you can fetch from inbox then possibly you can do same for outbox
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Sandeep,
Thanks for the reply. Yes I am read mails from outlook but if any of the undelivery mail is there then it throws and exceptions and stops reading mails after that.
Please help me if u know how to handle this...
|
|
|
|
|
You can't actually fetch mail from the outbox while outlook is in the process of sending the mails. It'll be locked.
SG
|
|
|
|
|
Thanks for the reply but my requirment is different. When a user click on fetch mail button (which is located on ASP.NET Application ie my Project) it should read all the mails one by one and so I store the email ID's of the undelivery ID into database.
I have a code where it reads mails from outlook but if any mail is undelivery then it just stops reading.
Please help me with this...
|
|
|
|
|
Hi i am doing some calculation & getting values in decimal...,
And i am displaying it in datagrid,
in that datagrid columns "data formatting expression" i given as {0:N} Like...,
So in that columns,after the decimal i am getting 2 values only...,
I tried to store the values in my table...,
But its store my first value only...,
It Means,its store all row values...,But the value first number only store in the table...,
Example value will be 510.01 means...,in table its store only 5...,
If i remove the {0:N} "data formatting expression".., then its store the full value like 510.0123...,
Whats the probs?, y if i give "data formatting expression" its not store properly...,
Anyone solve my probs...,
Magi
|
|
|
|
|
Using the data formatting expression does not cause the problem like this. I think it is related with your Database code.
Please check it or give the details about the method you are using to save the data into database.
DAsh04
|
|
|
|
|
See in datadrid i am getting values in that column like...,
Col1
510.09
234.78
12344.76
Values for with in datagrid so i try to store those value in this format(my add button click event)
For Each MainGRD As DataGridItem In Me.dgrdsub.Items
sqlconn.Open()
Dim strInsertproc As String
Dim GTotal As Decimal = Val(MainGRD.Cells(3).Text)
Dim BonusAmt As Decimal = Val(MainGRD.Cells(5).Text)
Try
strInsertproc = "BonusAdd'" & GTotal & "','" & BonusAmt & "'"
sqlCmd = New SqlCommand(strInsertproc, sqlconn)
sqlCmd.ExecuteNonQuery()
lblMessage.Text = "Record Inserted............"
Catch ex As Exception
If Mid(ex.Message, 1, 9) = "Violation" Then
lblMessage.Text = "Already exist in the DataBase......"
Else
lblMessage.Text = Mid(ex.Message, 1, 75) ' Show friendly error message.
End If
End Try
sqlconn.Close()
In that col1 if i give {0:N} then the values store in my table like:
5
2
1
If i remove the data formatting expression {0:N} then the values store in my table like:
510.09010
234.787778
12344.766576
Magi
|
|
|
|
|
Hi,
have you checked what is being stored in the variables "GTotal" and "BonusAmt" during the program execution.
DAsh04
|
|
|
|
|
ya i checked if i give data formatting expression{0:N} Then first value..,first number only i am getting...,
If i remove that format exp then i am getting correct value...,
Magi
|
|
|
|
|
Hi,
Format does not cause error like this. Please check the variables' value after statement like
Dim GTotal As Decimal = Val(MainGRD.Cells(3).Text)
Dim BonusAmt As Decimal = Val(MainGRD.Cells(5).Text)
and check your stored procedure "BonusAdd" and its parameter type and width.
DAsh04
|
|
|
|
|
Hi all,
I would like to know how to view data of a database through the Data Grid View.
Glad if you can give me good referrences and links to tutorials regarding this .
Thank you.
RangaSL
|
|
|
|
|
|
|
Hello all,
i am not getting this. i have made EnableViewState = false to my one of the TextBox & page level also. Still it is showing the values in textbox after postback.
why this is happening
anybody anysounds?
regards
GV Ramana
|
|
|
|
|
Find out from the page source whether the view state hidden field is present or not. If no, and you still get the textbox values, ,it maybe the work of some toolbar in your browser.
SG
|
|
|
|
|
Yes i think it will be there ..
Will you discuss what you want to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Description: Failed to execute request because the App-Domain could not be
created. Error 0x80070005 Access is denied.Event ID: 1088
Tried to give asp premission and restart iis but never works. ANy help???
|
|
|
|
|
go to IIS - right click on Virtual Directory -> Properties -> goto Directory Tab -> Create new Appdomain by clicking on Create button over there. if already created, remove it & re create.
hope it will works
regards
GV Ramana
|
|
|
|
|
Hi All,
I have another requirement.
I need the code for uploading files into the database.
I tried using the FileUpload control in ASP.NET 2.0, and got the code(to be put in the button click event code) to upload the files in my own system in some other location.
However, my requirement is that i should be able to upload the file into a remote system or the SQL database.
Please give me the code for this....
Thank You.
|
|
|
|
|
i tried the following code for upload into mu own system but i don know how to go about and upload in the remote server.Please Help.
protected void Button1_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
try
{
//The following line of code specifies the path
FileUpload1.SaveAs("D:\\Uploads\\" +
Label1.Text = "The file has been successfully uploaded in to: " +
"D:\\Uploads\\" + FileUpload1.FileName;
}
catch (Exception ex)
{
Label1.Text = "ERROR: " + ex.Message.ToString();
}
else
{
Label1.Text = "Oops! You forgot to specify the file! Browse for the file above.";
}
}
|
|
|
|
|
i am trying to implement windows authentication on one of my websites on my IIS but when ever i try to browse to the website a messagebox pops up asking me for my user name and password. but i thought that the authentication would be done in the background automatically without me being prompt to enter my username and password.
What am i doing wrong?
kenny edmond
|
|
|
|
|
what u r exactly trying to do?
u want to give permissions to all the local users?
regards
GV Ramana
|
|
|
|
|
yea thats what i want to do well i want to authenticate that only on persons on my network can log in
|
|
|
|
|
Greeting fellow geeks & geekettes,
I'm running into a difficult problem that I'm finding very hard to troubleshoot, and I hope some people here have had the same issue and can help me resolve it.
I have a couple of websites on our server that use GDI+ to generate some graphics on the fly. The idea is to generate menu items with a specific font.
All it does is create a bitmap, read a background image file and copy over, then loads a local font file using a PrivateFontCollection and write the text onto it. The bitmap is then outputted straight onto the response stream. Pretty straight forward.
Now the problem is that server runs fine for a while, then after a while (few hours, a day at most), the server stops responding. Now the clue is that it only stops responding on those pages that use those generated labels, other pages seem ok.
An IIS restart solves the problem for another few hours, or so.
I would think it's because GDI+ resources are being wasted/leaked somehow.. yeah?
I've tried making the code as tidy as possible, closing/disposing of resources & streams but it's not helping (I actually think it lasts longer if I don't manually clean up but that's just a crazy thought). I've even tried caching the resulting bitmaps to avoid recreating all the GDI+ objects every time.
I have also the impression that it's the font loading/drawing part that's causing the problem, as similar code works fine on another project that doesn't actually write using fonts (just generate thumbnails).
Some pages can have up to 25 generated labels on them, which means 25 requests at a time on the server to generate these. Maybe too many simultaneous access to resources?
Finally, the server is a Windows 2000 Server with IIS 5. My development machine is a Windows 2003 and it doesn't seem to have that problem. However I suspect this is not a valid assertion that Windows 2003 works better as I'm the only user doing requests to the development machine and that is not reflecting the load put on the live server.
Anyway, basically, I'm a bit lost with this, and not being able to reproduce on the development machine doesn't help either.
Any suggestion or idea to test this would be greatly appreciated!
Cheers,
Ben
|
|
|
|