|
how to call msgbox function in asp.net
|
|
|
|
|
MessageBoxes in ASP.NeT (webpages) are powered by JavaScript.
|
|
|
|
|
is it possible to exit an event in asp.net
|
|
|
|
|
Javascript alert[^]
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
why you are sending the message to me
|
|
|
|
|
You don't need help?
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Hi Friends ,
I want to set the Internet Explorer's Page Setup Property for printing automatically , when the page is loaded . Means i want to set the margin defalult , so no need to set the margin manually after loading the page when we r going to print the document.And if possible ,i want to set it through javascript.
Please , guide me, regarding this.
Thankin you,
Param
-- modified at 3:52 Thursday 7th December, 2006
param
|
|
|
|
|
hi,
use the follwing code in <BODY> section and change the text in BOLD to your values
<script language="javascript" event="onload" for="window">
javascript:window.open('http://www.YOUR URL.com','YOUR PAGE TITLE','width=570,height=650,top='+((screen.height/2)-(NaN))+',left='+((screen.width/2)-(NaN))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no');
</script>
<script language="javascript">
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
how to write code to exit
in vb.net we can write the code like exit sub
in asp.net how to write the codee
|
|
|
|
|
|
Hi Pals
I have a requirement to send mail from Web Application. On a contact us page client requirement is to send a mail to a specified mail ID from the USER'e mail ID.
1. In the screen I am having "To" field( its pre-specified mail ID, like admin@clientdomain.com
2. "From" field where the guest user( who are not loggd in the application) gives his/her Email ID.
3. Then subject and Body test field.
Now is it possible to send a mail to the "admin@clientdomain.com" from users email id( ALMOST LIKE SENDING A MAIL FROM SOME-ELSE'E MAIL ID WITHOUT HAVING HIS/HER PASSWORD KNOWN ). I tried but not getting any mails but no errors also.
Please help
Arindam,
|
|
|
|
|
If you use your own mail server, then sure.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Chris for helping me out.
But the problem is client will be using their own mail server. And the user can have any mailID. How can I send a mail from any mail ID to a mail server?
The user who is sending the mail is not a logged in user also. May be he is not a valid mail ID holder of client's domain.
As an example say clients mail domain name is clientDomain.com. Now can I send a mail from a web application having mentioned just my mail ID say arindamdt@gmail.com (or if I know my friend's mail ID)?
Arindam
|
|
|
|
|
I think Chris ment not using some third-party mailserver. For example you can use Gmail mailserver with your mail account, but in that case, the "From" of the email will always be the address corresponding to the account used. Basically it all depends on the mail server configuration.
|
|
|
|
|
hi,
add the following line in design mode and check.....it should work
<asp:HyperLink id="HyperLink1" NavigateUrl="mailto:admin@clientdomain.com" Runat="server">Contact us</asp:HyperLink>
and you should be sending the mails through your own mail server.
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
Hi friends,
Please explain about object pooling with example.
Thanks in Advance,
Regards,
Prya
|
|
|
|
|
|
how to implement stored procedures with outputparameters in asp.net
|
|
|
|
|
The same way you do it outside ASP.NET. ASP.NET is irrelevant.
You specify parameters as output parameters when you add them, and check their value on return.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
u can use this as an example which returns integer as output value
Public Function GetMailSent(ByVal CaseId As String) As Integer
Dim objConn As New SqlConnection
Dim objDB As New clsCommon
Dim objDS As New DataSet
Dim objCommand As New SqlCommand
Dim objDA As New SqlDataAdapter
Dim param As New SqlParameter
Dim intMailSent As Integer
Try
objConn = objDB.GetDatabaseConnection
objCommand.CommandType = CommandType.StoredProcedure
objCommand.CommandText = "spGetMailSent"
objCommand.Connection = objConn
objDA.SelectCommand = objCommand
objCommand.Parameters.Add("@CaseID", SqlDbType.VarChar).Value = IIf(IsDBNull(CaseId), DBNull.Value, CaseId)
param = objCommand.Parameters.Add("@retval", SqlDbType.Int)
param.Value = Decimal.Zero
param.Direction = ParameterDirection.Output
intMailSent = objCommand.ExecuteNonQuery()
GetMailSent = objCommand.Parameters("@retval").Value
Finally
'objDB.CloseDatabaseConnection()
End Try
End Function
Regards,
Ritika
|
|
|
|
|
I have 1 query in which i want to select max(column) value
and second query select * from tablename
i want to bind both these queries to dataset and display in 1 datagrid.
How to do this?
Thanx
Mini Thomas
|
|
|
|
|
Try using group by in query.
SELECT stateid, MAX(stateid) as "MAX id"
FROM states
GROUP BY stateid
Regards,
Saqib Umar
Sr. Software Engineer
|
|
|
|
|
hi toall
I have to populate some datas from sql server database and display it directly in a TEXT Format or TEXT file. When i run the project it should provide me an option to whether open or save or cancel the file. when i click open it should be opened and be viewed in a excel sheet in TEXT format and when i click save it should ask the destination folder and should be saved there in TEXT format and when i click cancel it should be cancelled and the application should be closed. pls note that all these actions should happen in the same browser and should not be redirected to anyother page. Can anybody give me the detailed description and code in Asp.Net using C# .It's very Urgent.
regards
saravanan
|
|
|
|
|
The first step is probably to write a method that returns your data as a CSV, given that this is a good way of getting Excel to read something. So, read your file from the database, iterate over the rows and create your text file. Clicking Save can just feed the file down again to a file.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi Every one,
i am trying to use style sheet in content page which is using my master page...
it is not applying syles to Grid..
i declared <link> tag for style sheet... in Master page could u please answer my question
Thanks
Satish
|
|
|
|