|
jojoba2010 wrote: But This gives me error ( I am working with .net 2008 )
What error are you getting ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
If you have secure smtp server, you need to use NetworkCredentials to login before you send a mail.
Is the error related to Authentication failure?
|
|
|
|
|
I get these Errors
Error 1 Property or indexer 'System.Net.Mail.MailMessage.To' cannot be assigned to -- it is read only I:\WebSite3\Default.aspx.cs 23 9 I:\WebSite3\
Error 2 Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddressCollection' I:\WebSite3\Default.aspx.cs 23 22 I:\WebSite3\
Error 4 'System.Net.Mail.MailMessage' does not contain a definition for 'Cc' and no extension method 'Cc' accepting a first argument of type 'System.Net.Mail.MailMessage' could be found (are you missing a using directive or an assembly reference?) I:\WebSite3\Default.aspx.cs 25 17 I:\WebSite3\
Error 6 'System.Net.Mail.MailMessage' does not contain a definition for 'Cc' and no extension method 'Cc' accepting a first argument of type 'System.Net.Mail.MailMessage' could be found (are you missing a using directive or an assembly reference?) I:\WebSite3\Default.aspx.cs 26 17 I:\WebSite3\
Warning 8 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202' I:\WebSite3\Default.aspx.cs 29 9 I:\WebSite3\
Error 9 The best overloaded method match for 'System.Web.Mail.SmtpMail.Send(System.Web.Mail.MailMessage)' has some invalid arguments I:\WebSite3\Default.aspx.cs 30 9 I:\WebSite3\
Error 10 Argument '1': cannot convert from 'System.Net.Mail.MailMessage' to 'System.Web.Mail.MailMessage' I:\WebSite3\Default.aspx.cs 30 23 I:\WebSite3\
|
|
|
|
|
You should have a private only for that. Because you will get a lot of junk mail.
|
|
|
|
|
Hi All,
I have adroater controle and I want set image url path in xml file from database correstponding customer.Path of image url is save in database and I want to show image corresponding user.
Thnks to all ................
|
|
|
|
|
|
i want to use three tier architecture in asp.net with c#.net, using ado.net
|
|
|
|
|
There is plenty of help available if you search google. Here is in brief what you will have:
1. UI layer having your pages and user controls.
2. Business Layer having your rules/business validations etc.
3. Data Access Layer which would perform the database operations.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
There is a very good article is available in CP for 3 layered architecture.Have a look
Cheers!!
Brij
|
|
|
|
|
There Tier Architecture is nothing but breaking your application in different layer like,
1. UI Layer
2. BLL : Business Logic Layer
3. DAL : Data Access Layer
Here is one good article for begineers :
3-Tier Architecture in ASP.NET C#[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Iam having two tables in database ms sql server ,dept and emp
dept table with fields are as followsdeptno(primary key),deptname,dlocation
emp table with fields are as follows
empno(primary key),empname ,salary,deptno(foriegn key)
in asp.net integrating with c# , when i select deptno in treeview control i want to display deptno with all details about the employes please help
|
|
|
|
|
|
hii all i have a datalist in which i have taken labels and checkboxs.i want that when the user select the checkboxes from any rows.the text of all the selected check box get displayed in a textbox or label.i have also taken a hidden field to found the id of selected row.what is the next step that i shd perform.plz guide.thank's
|
|
|
|
|
Handle the CheckChanged event and the text for the textbox/label in that.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
hiii on which command shud i do this.....can u tell me in brief....
|
|
|
|
|
This is how you cna assign the check changed event handler for the check box:
<asp:CheckBox ID="myCheckBox" runat="server" OnCheckedChanged="CheckChangedHandler"/>
Now, in the code behind, you can access your hidden field to the selected row index and then access it using the Items property.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
hii m getting one more prob when i am trying to debug by code which is written at button click
event but when i click the button the control is not going inside the button click code....
|
|
|
|
|
Are you writing any javascript for the event..!
if yes may be thts the problem..!
if no copy the code in the event and delete the event and add the event and paste the code..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
Its K..! Any Time..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Recently I have created a data access layer and business logic layer in a class library (seperate assemblies). I cannot get the edit or delete functionailty to work, the gridview simply posts back leaving the data intact.
I then created a dataset in the app_code portion of my web site and it works fine.
Any idea why it seems like putting this code into its own assembly doesn't work when deleting and editing (but select works fine)?
|
|
|
|
|
Hi,
I am a new user to ASP.NET and VS.NET and I need some help. I am also a new user to CodeProject as well.
I am trying to find a simple way to add a hit counter on a web page (ASP.NET and VB.NET) in VS.NET 2005.
I found this example "Fast ASP.NET Hit Counter with Full Digit Graphic File Support" By JediBaron.
I tried it but something goes wrong. I get this error on line 59:
Dim i As System.Drawing.Image = System.Drawing.Image.FromFile(Server.MapPath(Request("src")))
I really cannot figure out what is wrong and how to correct the problem. Any help will be appreciated.
Thanks.
|
|
|
|
|
This is off the top of my head.
In your global.asax do this
Sub Application_Start(ByVal sender AsObject, ByVal e As EventArgs)
Application("Hits") = 0
EndSub
Sub Session_Start(ByVal sender AsObject, ByVal e As EventArgs)
'Lock the Application for concurrency issues
Application.Lock()
'Increment the counter
Application("Hits") = Application("Hits") + 1
'Unlock the Application
Application.UnLock()
EndSub
Than put this in your web form
<%=application("Hits")%>
times.
|
|
|
|
|
Also he needs to store the hit count in permanent storage, so that even if the application gets restarted, the value Remains..
|
|
|
|
|
Hi Abhishek Sur,
I do want to store the counter hits number in a data store, but cannot figure out how to do it.
I have created a test database (DbTest) in SQL Server 2005 with a Param table and a simple column, NbHits. I can connect to it and display the number on a page. That is it.
I would like my counter to be incremented every time a user visits the main page.
I would also like to know which way is best for a simple personal web site.
Do you know of some links where I could find some example?
Thanks.
|
|
|
|