|
Hi,
Just Test the mail by using following code
add following in directives
Imports System.Web.Mail
and write following code :
Dim mymsg As New MailMessage()
mymsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25")
SmtpMail.SmtpServer = "mail.wunderman-amman.com"
mymsg.From = "test@test.com" ' from email id
mymsg.[To] = "test@test.com" ' to email id
mymsg.Subject = "ATICO Newsletter"
mymsg.BodyFormat = MailFormat.Html
mymsg.Body = "test"
SmtpMail.Send(mymsg)
Regrads,
Milind
|
|
|
|
|
I was just wondering if it possible to send a reminder to a users email account and set the reminder.
Any help is much appreciated.
|
|
|
|
|
Mc--Gann wrote: I was just wondering if it possible to send a reminder to a users email account and set the reminder.
Are you trying to do it using ASP.NET?
I think you can go for some .Net Console Application or WinService which will be scheduled and will send the Reminder Notification.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi guys
I am generating a runtime htmltable, there are checkboxes
whatever is selected
after post back i want to keep this as it is(as before postback)
code for generating run time table
Dim tr1 As New HtmlTableRow
Dim txtbox As New TextBox
Dim chkbox As New CheckBox
Dim lbl As New Label
Dim td1 As New HtmlTableCell
Dim td2 As New HtmlTableCell
Dim td3 As New HtmlTableCell
txtbox.ID = "xyz" & M
chkbox.ID = "abc" & M
lbl.ID = "ijk" & M
lbl.Text = dsFill.Tables(0).Rows(M).Item("size")
txtbox.Width = "30"
txtbox.Height = "12"
lbl.Font.Size = "8"
chkbox.Height = "8"
lbl.Width = "80"
chkbox.ToolTip = "Click here which size you want"
txtbox.ToolTip = "Fill required quantity"
td1.Controls.Add(lbl)
td2.Controls.Add(chkbox)
td3.Controls.Add(txtbox)
tr1.Cells.Add(td1)
tr1.Cells.Add(td2)
tr1.Cells.Add(td3)
TABLE2.Rows.Add(tr1)
what will be solution please suggest me
Thanks In Advanced
krishna veer singh
|
|
|
|
|
Put the above code in page load event and make sure that this code will execute for every request(wheather it is postback or not).
|
|
|
|
|
Ya it is on page load
but i want to maintain what ever is selected or checked before postback
krishna veer singh
|
|
|
|
|
Hi
When you generate the Html table from codebehind, just put Html table in to session variable and follow code :
on class level declare:
static bool createAgain = false;
in you function :
Session["TABLE2"] = TABLE2;
createAgain = true;
Write following methods to maintain states:
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
Control control = GetPostBackControl(this.Page);
if ((control != null) || createAgain)
{
//should be set before the CreateUserControl method
createAgain = true;
CreateUserControl(controlID);
}
}
protected Control GetPostBackControl(Page page)
{
Control control = null;
try
{
string ctrlName = page.Request.Params.Get("__EVENTTARGET");
if (ctrlName != null && ctrlName != String.Empty)
{
control = page.FindControl(ctrlName);
}
}
return control;
}
protected void CreateUserControl(string controlID)
{
// createAgain field is set to true in the OnPreInit method
// when the 'Create User Control' button is clicked
// the createAgain field is used to check if the
// user control is on the page before the call
// if so create the control again and add it to the
// Control Hierarchy again
if (Session.Count > 0)
{
for (int i = 0; i < Session.Count; i++)
{
switch (Session[i].ToString())
{
case "ASP Control": // Write your control name
{
//Add control to placeholder or div
break;
}
}
}
}
}
}
Please modify the code according to your requirment
Regards,
Milind
|
|
|
|
|
I'm very interested! I would love to find out more.
[url=http://globolstaff.com/][color=#EDF8FF][u]website maintain[/u][/color][/url]
|
|
|
|
|
You have to create the control before PageLoad(). Please read ASP.NET Page life cycle, which will give a clear idea that why we need to do that.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi
Is it possible to provide Hot Keys(keyboard shortcuts) in a Sitemap in ASP.NET.
If yes, How can i do that?
Kindly advice.
Thanks in Advance.
|
|
|
|
|
Use AccessKey Attribute.
Hope this will help you..
|
|
|
|
|
Hi Chetan,
Thank you so much for that.
But i need to set the hot keys in SITEMAP.
Is there any option for that?
Thank you
|
|
|
|
|
|
Hi Milind,
Thank you so much for your suggestion.
I went through the link you had suggested.
Its really good and it works well with the standard asp.net controls.
Can you advice me on how it would work with the SITEMAP in ASP.NET.
Thank you.
|
|
|
|
|
hi,
How can I add items Hierarchically to dropdownlist like below?
a
--b
--n
--n
b
--y
--t
----o
|
|
|
|
|
|
i am developing a webapp. and i need to know:
How to upload my database to the webserver , where my site is to be hosted?
|
|
|
|
|
hi Subin Alex
I think sometimes the Terms that people use are confusing. If you are a Hoster, then you Server must have SQL 2000 installed and there must be IIS, but in the real world there is a Database Server and a Application Server(IIS).
Deploy your App to your IIS , and make sure that your Connection string is in the Web Config and Change it from there after installing or you can create a Web setup Project where your users will be prompted with the name of the server on the installation. there is no differents the important thing to note is to remember where is your IIS and where is your SQL
if you are using a paid host. you need to talk to your provider and tell him what version you want of sql and what version of .NET you want on the IIS.
Hope i helped looking forward for your reply
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
THANKS,
But i am web programmer not one who "host".
I want to know that if i want to upload a web site app in asp.net2.0 and backend as sqlserver2000 ,how do i upload the database to the web server? I am familiar with MsAccess but not with sqlserver.
plz help.
|
|
|
|
|
SQL and Access are Different. In Access you will deploy your application with the Databas, but in SQL you have to point to the Server. SQL Database cannot be accessed like Access databases. SQL Database must be hosted in a Server that SQL installed on it. That mean you need to have another machine that will be your Database Server, install SQL on it and take its name and add it in the Connection String of your Application. This is to tell your application that you are using the Database in a certain Server and Database is bla bla bla.....
Thank you looking forward for your reply
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
yes i've contacted a web hosting firm which supports sqlserver2000, But my question is:
How do my mdf file get attached to the database in the remote web server?
|
|
|
|
|
Now in that case give them your MDF and they will attach them for you, because i dont think a hoster will allow you to do that. I think what they have is a GUI that allows you to create a Database with a Click , create SP's , they will create a shell for you where you can run your sql queries. but what you have to do id to give them mdf files , they will attach them and when you log in into their control panel you will see your DB
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
|
Welcome
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
I have used collectionpager for datalist pagination,its works fine but i am using dropdownlist for sorting the content in the datalist.Here the dropdownlist event is not properly working while using collectionpager .Plz help me?
Thanks in Advance..
|
|
|
|