|
How to keep open the multiple panes in AJAX Toolkits Accordion control?
Satish
modified on Monday, February 2, 2009 3:29 AM
|
|
|
|
|
Hi Folks,
I have a problem with send mail at scheduled time.
what i done for this .
i added one globle .asax page in to the application
and i wrote the code for send mail in the Application_Start.
it running fine when i debugged it, its executing but i did not geting mails.
this is the code i written in asax page
plz send the solutioin how to achieve this.
Thanks in advance
]]>
--%>
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
sendmail()
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
End Sub
Sub sendmail()
Dim s As Net.Mail.SmtpClient
Dim m As Net.Mail.MailMessage
s = New Net.Mail.SmtpClient()
m = New Net.Mail.MailMessage()
m.From = New System.Net.Mail.MailAddress("from")
m.To.Add(New System.Net.Mail.MailAddress("to"))
m.Subject = "autogeranted mail"
m.Body = "Test mail"
m.IsBodyHtml = False
s.Host = "mail.studio.com"
s.Port = 25
s.Credentials = New System.Net.NetworkCredential("from", "password")
mail")
Try
s.Send(m)
Catch
End Try
End Sub
|
|
|
|
|
Member 4720184 wrote: and i wrote the code for send mail in the Application_Start.
Have you considered reading the documentation and learning when application_start event fires? You can't write code for sending scheduled mails there. A better way is to write a console application which sends the mail and schedule it with windows scheduler.
|
|
|
|
|
all action/events are done during page load. while I have coded them in a button click event. why?
|
|
|
|
|
onyang2 wrote: all action/events are done during page load. while I have coded them in a button click event. why?
Quote Selected Text
How about explaining what you mean in detail?
|
|
|
|
|
What I mean is that my datagridview shows data at page load instead of during a button click
|
|
|
|
|
Your code is broken, and apparently you're an idiot. You posted this twice and still didn't make a whole lot of sense, why not post the code so we can explain why it is that you have no idea about ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks in advance,
We are developing a site specially for mobile in .net. In this we are providing download of ringtones, videos, wallpapers.. But ringtones are not downloaded in iphone. Later we came to know that iphone suuport .m4r format. But m4r ringtones are
also not downloaded into the iphone( here we are setting content type to application/octate-stream ), it is showing iphone does not support this format.
I want to know how we should provide download of ringtones to iphone.
|
|
|
|
|
This has bugger all to do with ASP.NET. I suspect it can't be done at all, b/c the iPhone is so limited.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
i have one form where i am using one gridview which bind through multiple filters and on this grid i have one hyperlink,by click on this i redirect to another form.I save some data on this form and again redirect to previous form but now filters r changed.
I dont want to go with so many querystrings or session variable from this form to other,so can we have any thing using java script which refresh previous page with same filters.
N!dh!
|
|
|
|
|
What are the controls that are getting cleared ?
|
|
|
|
|
I have some dropdown for selection of month,year,customer,region and 2 radio button for status
N!dh!
|
|
|
|
|
Caching may be the solution for your problem
|
|
|
|
|
how to do that
N!dh!
|
|
|
|
|
|
Hi,
u can try using hidden variables.
when u bind the grid get those variables from correspoding controls
and store them in hidden variable.Every time u fetch data to grid u assign those variable values which r in Hidden variables.
try like this and let me know the result
Happy Coding
|
|
|
|
|
Hello everyone,
I have a CollapsiblePanelExtender(CPE) inside the datagrid within updatepanel/contemplate. My problem is when i clicked any button that is inside the CPE the datagrid collapse
jyn
|
|
|
|
|
hi,
How can I use a tree view to display the data from database tables?I am using MS sql database.
regards,
bill
|
|
|
|
|
hi,
I have a grid view selecting data from 2 database tables to display.I have a delete button in the grid view .The grid view delete button should delete the rows from both tables.I am using sqldatasource.How can I do this?
regards,
bill
modified on Monday, February 2, 2009 1:59 AM
|
|
|
|
|
Hi bill
what option u r using for binding grid,means you r binding grid through sqldatasource control,or binding this grid from codebehind
N!dh!
|
|
|
|
|
billcodes wrote: How can I do this?
1 - Handle the click event.
2 - Write query to delete.
Does that help?
|
|
|
|
|
which click event works for that?
|
|
|
|
|
u have delete button...right ??? you must be selecting a particular row to delete ..right??? when this click happen for delete ..execute a querry to delete rows in tables..
delete toffy where primary_key="hahaa"
delete Biscuits where primary_key="Biscuits"
vikas da
|
|
|
|
|
sorry in above it should be...
tasumisra wrote: delete Biscuits where primary_key="hahaa"
vikas da
|
|
|
|
|
when i click detail in grid view update query must be fired ????
|
|
|
|