in Search
ATTENTION: I've decided to put the upgrade on hold due to a compatibility issue of our server environment with the latest CS installer package. CS 2008 now requires SQL Server 2005 as the backend DB but our database server currenlty has SQL Server 2000 installed on it. I'll resume the upgrade once I figure out when Telligent is releasing a patch to the schema compatibility issue. For now, we will continue to use the old version of CS while waiting for the said patch. If you have any questions about this process, please don't hesitate to post them on our forums and I'll answer them as soon as I can. Thanks for your patience and support guys! I'll let you know as soon as this is resolved. - Keith Rull
Latest post 05-05-2008 12:58 AM by SuperNoob. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 04-29-2008 11:53 PM

    Msgbox

    mga kuya bkt pag ni run yung asp.net project via the IIS...... nag eeror yung mga msgbox()

    pero pag ni ra run ko lang sa Visual Studio during development ok naman sila

     

    super critical pa naman yung mga msgbox na "MsgBoxStyle.YesNo" (confirmationbox) ang mode

     

    salamat po sa lahat ng tutulong

    • Post Points: 20
  • 04-30-2008 12:03 AM In reply to

    • jop
    • Top 25 Contributor
    • Joined on 08-08-2006
    • Singapore
    • Posts 187
    • Points 3,170

    Re: Msgbox

    source please.

    [jop]

    • Post Points: 20
  • 04-30-2008 12:17 AM In reply to

    Re: Msgbox

    Dim resultMsgbox As Int16 = MsgBox("Are you sure you want to delete the record?", MsgBoxStyle.YesNo, "Warning")

    If resultMsgbox = 6 Then

         'somecodes'

    End If

     

    this works fine in Visual Studio's internal browser when run

    pero browse ng boss ko thru his browser 'http://loacalhost/addresspath'

     e nag eerror kapag dinadaanan na yung mga msgboxes.

    i just cant remember the error kasi d2 sa workstation ko nde ako pde gumamit ng IIS kase nde ako admin account

     

    pls help po

    salamat

    • Post Points: 20
  • 04-30-2008 12:23 AM In reply to

    • jop
    • Top 25 Contributor
    • Joined on 08-08-2006
    • Singapore
    • Posts 187
    • Points 3,170

    Re: Msgbox

    I thought this is vbscript? You are trying pop a serverside msgbox?

    [jop]

    • Post Points: 20
  • 04-30-2008 12:28 AM In reply to

    Re: Msgbox

    it is in the code behind....

    yes serverside msgbox po

    pero gumagana talaga sya sa internal browser ng Visual Studio eh

    • Post Points: 5
  • 04-30-2008 12:35 AM In reply to

    Re: Msgbox

    my initial work around for this issue is this.....

    Dim resultMsgbox As Int16 = msgbox_confirm("are you sure you want to delete this record")

    If resultMsgbox = 6 Then

        'somecodes'

    End If

     

    Private Function msgbox_confirm(ByVal Message As String) As Int16

    System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=""JavaScript"">" & vbCrLf)

    System.Web.HttpContext.Current.Response.Write("confirm(""" & Message & """)" & vbCrLf)

    System.Web.HttpContext.Current.Response.Write("</SCRIPT>")

     return WHAT???? <-----problem area

    End Function

     

    kaya lang nde ko alam kung panu kunin yung na click na button sa confirm()

     

    • Post Points: 20
  • 04-30-2008 1:05 PM In reply to

    Re: Msgbox

    ahh ang kailangan mo pala javascript

    try mo ilagay ito sa Page_Load event

    btnDelete.Attributes.Add("onclick", "<SCRIPT LANGUAGE=""JavaScript"">confirm('" & Message & "');</SCRIPT>")

    • Post Points: 20
  • 04-30-2008 3:54 PM In reply to

    • LaTtEX
    • Top 25 Contributor
    • Joined on 02-19-2006
    • Bonifacio Global City
    • Posts 87
    • Points 1,220

    Re: Msgbox

    Answer

    Hindi talaga gagana ang MsgBox sa web application kasi ang msgbox eh gumagamit ng Windows forms API -- kung lumabas man siya, dun siya magpo-popup sa web server mo, hindi dun sa browser ng client. Imagine how that looks like.

    As stated by the peepz above, you need some javascript to show a popup. 

    Jon Limjap tech :: DotNet @ Kape ni LaTtEX personal :: Kape ni LaTtEX our business: I-NAV Travel & Tours
    • Post Points: 20
  • 05-05-2008 12:58 AM In reply to

    Re: Msgbox

    tnx guys

    sana sa susunod na mga versions ng visual studio and .netFramework maging native na yung mga functions ng msgboxes sa mga webApps as they function in windowApps.

    hyyy. kakainis tlga nde p nmn me marunong nung mga Javascript sa .net. ang alam ko lang dun e ikabit yung mga Javascript functions sa mga "onclick", "onmouseover" etc... na events sa html. just like during the classic days.

    • Post Points: 5
Page 1 of 1 (9 items)