|
code is perfectly fine. there might be some SMTP settings issue
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Ok thanks bro.... Any idea for the setting for SMTP Server?default SMTP server time out is 5 min rights? What else in smtp will cos this issue?
KaKaShi HaTaKe
|
|
|
|
|
* Is a VALID SMTP Server
* Check to be sure the server System.Web.Mail is executing on can connect to the mail server. Some times firewalls or proxy servers can get in the way.
* Try specifying the value by IP address. Poor DNS resolution can sometimes hinder name lookups.
* Make sure the that the mail server is running at port 25. If you did not specify a SmtpMail.SmtpServer property, or if SmtpMail.SmtpServer points to "localhost" (or the equivalent), be sure the SMTP Service is running on port 25.
* For testing purposes change the MailMessage.From and MailMessage.To properties to an address that exists on SmtpMail.SmtpServer. Some times this exception is thrown, when it really is a relay issue.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
other then this?
KaKaShi HaTaKe
|
|
|
|
|
|
hi there,
is there anyone who can give me an idea how to save the document such as word that allow to be save straight away in to the page without uploading it.
for example: right now I have an asp.net page that have a button that will open up a word document. this word document its only for editing the contents. After finishing with the contents they need to save it to their computer then uploaded to the web page.
is there any way doin it without uploading it but save straight away to the web page.
any help would be appreaciate
thank you
|
|
|
|
|
what do you mean by saving the doc directly to the page? you mean save it to their computer n later upload it?
|
|
|
|
|
No, that what we have right now.
what I need to save document straight to web page so we don't to upload them.
|
|
|
|
|
i don't know what on earth you're tring to do
please elaborate
|
|
|
|
|
well basicly,I need to create a word viewer in my asp.net web application that enable me to save straight to server.
gamzun wrote: hi there,
is there anyone who can give me an idea how to save the document such as word that allow to be save straight away in to the web page without uploading it.
for example: right now I have an asp.net page that have a button that will open up a word document. after finish with the document then it need to be save so in the web page they can view what document they have. in order to save it they need to save it to their computer first then uploaded to the web page. this way is take too much time for boss, so he wants a simple thing to do to save this word document straight to the web page
is there any way doin it without uploading it but save straight away to the web page.
any help would be appreaciate
thank you
hope this understood enough
thanks
|
|
|
|
|
Hey Guys need help.
I have came across this error. When in VS2005 ASP.net i using the Fileupload tool in the toolbox given. When I upload a small size file like about 3.73 MB. When I click a button it still works even without any function written on the button. But when i upload around 4.97 MB and i just click a button the web site display Internet Explorer cannot display the webpage
Any solution to this issue.
KaKaShi HaTaKe
|
|
|
|
|
By default, .NET allows upto 4MB of file size to be uploaded. You need to add/modify the following entry to system.web section of web.config.
<httpruntime maxrequestlength="4096">
4096KB
Please change it to desired value.
K.P.Kannan
|
|
|
|
|
Hey Thanks bro for the hint ...
Cheers
KaKaShi HaTaKe
|
|
|
|
|
Add this <httpruntime maxrequestlength="8192" /> on webconfig to set size of upload in 8MB
_________________________________________________________________________
|
|
|
|
|
Good Afternoon,
I recently added a drop down list box to my ASP.NET 2.0 Windows form page. It had the simple function of allowing the user to select a site identification number and posting it to a label that could be referenced for future queries. I have used this hundreds of time on C# desktop applications. The problem is....IT DOESN'T WORK! I created the event from the Properties box of the control. When it did nothing, I put a 'STOP' on it for diagnostics only to find that changing a selection DID NOT run the code, as if it wasn't there at all. The code is below:
protected void DropDownListSites_SelectedIndexChanged(object sender, EventArgs e)
{
LabelSite.Text = DropDownListSites.Text;
}
I thought these events were automatic......any ideas???? Thank You, Pat
|
|
|
|
|
please check that autopostback property is set to true.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
YES...Thank You...BUT...this seems to have created another problem. Now, each time the box is activated, it reloads the information in the list content so that content is added over and over. I have not looked at this yet, but I suppose some sort of conditional statement will cure this. IF you know of one off the top of your head, let me know. I've done a lot with C# but am a relative newcomer to ASPX.
Many thanks for your help.>>>Pat
|
|
|
|
|
I have a project where this is important.
|
|
|
|
|
Metascan is implemented (internally) in C++. However, we expose everything through COM, and this allows .NET clients to use it seamlessly. We offer sample code in C# that demonstrates how it is done. There is no difference from the C# point of view if the code is internally implemented in something other than .NET (no extra code is needed in order to use the COM object; It appears to be a regular .NET class).
|
|
|
|
|
You obviously have TWO accounts, asked and answered yourself about some 3rd party software.
Blog link to be reinstated at a later date.
|
|
|
|
|
Your post makes no sense at all.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
To create an administrative user
1. In the Website menu, click ASP.NET Configuration.
2. Click the Security tab.
When I click on the security tab ill get this:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
I then click on the "Choose Data Store" button, which takes me to the "Provider" tab. At this point I click on the link to choose a single provider. On the next page, I select "AspNetSqlProvider" (the only option available) and click on the "Test" link.
At this point, I get an error page. Contents pasted below.
FYI: I have not installed the SQL Server 2005 Developer Edition, cause I thought that VS is gonna setup a server without any problems by itself.
What's the probelm and what can I do to finally begin with the getting started? thanks for your help!
|
|
|
|
|
Is the connectionstring in your web.config correct? Is the membership asociated to that connectionstring?
|
|
|
|
|
I have developed a component for my web application using C#. Now I want to reuse same component for a console app also.
Now I need to identify whether the request is coming from console application or web app..other than that the component is independent of any session or source.
I do not want to pass hint through a var..
any other ideas???
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
you can check to if the HttpContext is null.If HttpContext is not null then its an ASP.NET web application:
if (HttpContext.Current != null)
{
}
|
|
|
|