Click here to Skip to main content
16,005,209 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionadd header after each 15 Records Pin
Bajrang Singh6-Jul-07 3:03
Bajrang Singh6-Jul-07 3:03 
QuestionImage size checking Pin
Icarus1236-Jul-07 2:24
Icarus1236-Jul-07 2:24 
AnswerRe: Image size checking Pin
Tarik Guney6-Jul-07 5:18
Tarik Guney6-Jul-07 5:18 
GeneralRe: Image size checking Pin
Bajrang Singh6-Jul-07 20:51
Bajrang Singh6-Jul-07 20:51 
QuestionMessage box Pin
Archana New to Dotnet6-Jul-07 2:16
Archana New to Dotnet6-Jul-07 2:16 
AnswerRe: Message box Pin
Sathesh Sakthivel6-Jul-07 2:18
Sathesh Sakthivel6-Jul-07 2:18 
AnswerRe: Message box Pin
Sonia Gupta6-Jul-07 2:21
Sonia Gupta6-Jul-07 2:21 
AnswerRe: Message box Pin
kubben6-Jul-07 2:47
kubben6-Jul-07 2:47 
I am not sure what programming language and what version of .net you are looking for. Here is an example in vb.net for .net 1.1
Private Sub ShowMessageBox(ByVal aMessage As String)
        'This procedure will cause a dialog box to pop up with whatever message is passed in.
        aMessage = aMessage.Replace(vbCrLf, "\n").Replace("""", "'")

        Dim myScript As New StringBuilder
        With myScript
            .Append("<script>")
            .Append(Environment.NewLine)
            .Append("alert(""").Append(aMessage).Append(""");")
            .Append(Environment.NewLine)
            .Append("</script>")
            Page.RegisterStartupScript("Promo Error", .ToString())
        End With
    End Sub


It is slightly different for .net 2.0 and the syntax is a little different for C#.

Hope that helps.
Ben
GeneralRe: Message box Pin
Archana New to Dotnet6-Jul-07 4:26
Archana New to Dotnet6-Jul-07 4:26 
GeneralRe: Message box Pin
kubben6-Jul-07 4:34
kubben6-Jul-07 4:34 
Questionweb form closing event. Pin
Sonia Gupta6-Jul-07 2:12
Sonia Gupta6-Jul-07 2:12 
AnswerRe: web form closing event. Pin
kubben6-Jul-07 2:19
kubben6-Jul-07 2:19 
GeneralRe: web form closing event. Pin
Sonia Gupta6-Jul-07 2:26
Sonia Gupta6-Jul-07 2:26 
GeneralRe: web form closing event. Pin
N a v a n e e t h6-Jul-07 2:31
N a v a n e e t h6-Jul-07 2:31 
GeneralRe: web form closing event. Pin
kubben6-Jul-07 2:43
kubben6-Jul-07 2:43 
AnswerRe: web form closing event. Pin
InsDev6-Jul-07 2:26
InsDev6-Jul-07 2:26 
AnswerRe: web form closing event. Pin
Tarik Guney6-Jul-07 5:16
Tarik Guney6-Jul-07 5:16 
AnswerRe: web form closing event. Pin
sathesh pandian19-Jul-07 6:42
sathesh pandian19-Jul-07 6:42 
QuestionQucik Record Count From DataSource Pin
munklefish6-Jul-07 1:37
munklefish6-Jul-07 1:37 
AnswerRe: Qucik Record Count From DataSource Pin
Sathesh Sakthivel6-Jul-07 1:41
Sathesh Sakthivel6-Jul-07 1:41 
Questiondates in datagrid.........., Pin
HemMagesh6-Jul-07 1:23
HemMagesh6-Jul-07 1:23 
AnswerRe: dates in datagrid.........., Pin
InsDev6-Jul-07 1:53
InsDev6-Jul-07 1:53 
QuestionDatagrid bound column value in datagrid textbox..(I hope this time i will get..) [modified] Pin
Member 38798816-Jul-07 1:12
Member 38798816-Jul-07 1:12 
AnswerRe: I hope this time i will get........., Pin
Sathesh Sakthivel6-Jul-07 1:21
Sathesh Sakthivel6-Jul-07 1:21 
AnswerRe: Datagrid bound column value in datagrid textbox..(I hope this time i will get..) Pin
InsDev6-Jul-07 1:36
InsDev6-Jul-07 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.