User Profile

Collapse

Profile Sidebar

Collapse
krungkrung
krungkrung
Last Activity: May 14 '10, 09:15 AM
Joined: Nov 6 '08
Location: Philippines
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny! Thanks..thanks!

    Sorry if I did not clearly explain my last post....:)


    What I mean by placing my LoadAllPhotos() function to a Base Class is, instead of placing it to current .aspx page, I want to place it in another Class(which inherits System.Web.UI.P age) and my .aspx page will just inherit that class, so I can call LoadAllPhotos from my JavaScript using PageMethods of ASP.Net AJAX...but as what youve...
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny! Thanks again.

    The .NET code I posted resides in the .aspx page and not in the master page. But I want to place it in a Base class. That's why I ask you if a 'Page' object can be used as parameter in .Net to JavaScript function transition, so I can replace the 'Me' with the passed 'Page' object parameter.

    Nope. Never used AJAX before, but am applying it to my current project. So technically, Im a noob. :)....
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    ERRATUM:

    4. Hitting delete btn should delete Image and calls back the LoadAllPhotos() function(to refresh array of preloaded images) without posting back. -->unfortunatel y I still unable to do this using PageMethods since I placed the function LoadAllPhotos() inside the current page which supposed to be in a PageBase.
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny!

    Thanks for asking.

    Well, I dont know how am I supposed to tell and explain to you what I really want to do with my program....I just feel its kinda 'awkward' or embarrassing posting or sharing my 'noob' way of coding :) ...but I believe sometimes people need to be criticized to learn from others opinion...so I'll just try my best to explain it to you.

    Here's what I want to do:

    ...
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny!

    I just have a follow-up question...is it possible to pass a 'Page' as parameter from .Net procedure to a JavaScript function and return that passed 'Page' parameter to a VB.Net function...like :


    Code:
    Sub FromNet()
    Dim strTest As String = "<script language=javascript id='myClientScript'>ToJavaScript(" & MyPage & ");</script>"
            Page.ClientScript.RegisterStartupScript(Me.GetType(),
    ...
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny! Thanks for that very informative post. I really appreciate it. Im kinda..'wow!'.. and realized that I still have a lot of things to learn in asp.net....waaa yyy to go krungkrung..(", )


    thanks..thanks. really.
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    hi Frinny and sudevg!

    thanks for your generous reply.

    sorry i forgot to post quickly, but i already figured out the problem.

    the problem was just the control id being passed to the function. i found out that asp.net(correct me if am wrong) generates control id automatically, of every control within a page upon processing. eg, txtTextInput component would generate something like ctrl001_xxxxx_t xtTextinput...
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ScriptManager in MasterPage
    Hi Frinny!

    Thanks for the reply.

    Yeah I agree with you that it is very likely a JavaScript error. But why is it that, when I run the page in a single page(without using the MasterPage) and using the same JavaScript function, It executes smoothly? Isn't the error also something to do with 'ScriptManager' being placed in the MasterPage or something to that effect?

    Btw, I placed the PageMethods inside a...
    See more | Go to post

    Leave a comment:


  • krungkrung
    started a topic ScriptManager in MasterPage

    ScriptManager in MasterPage

    Hi all,

    Can somebody help me figure out whats wrong with my program?

    I created a site with the use of MasterPage..and with a plan of utilizing and abusing the capabilities of AJAX, I added the ScriptManager to create PageMethods.

    Here's what I did:

    1. I added the "ScriptMana ger" and the "JavaScript that calls the page method" in MasterPage...wi th Javascript inside the...
    See more | Go to post

  • yeah it works! thanks a lot nukefusion!
    See more | Go to post

    Leave a comment:


  • VB.Net: Problem deleting an image used by a PictureBox

    hi again to everyone!

    I made a simple program(for my VB.Net practice). The program loads an image file to a picturebox upon clicking a button. after loading the image file i have another button to delete the loaded image file from the directory. But I have a problem deleting the image file used by the picturebox even if I set the "PictureBox1.Im age = Nothing" before deletion takes place. The error says, "The process...
    See more | Go to post

  • krungkrung
    replied to ADODB.Recordset to DataGridView
    in .NET
    many tnx guys! (",) ---------------------
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to ADODB.Recordset to DataGridView
    in .NET
    Hi Frinny!! Tnx for the post...yeah! using table (dataset) is easy indeed.. I just want to explore and exploit the capability of VB.Net when it comes to migrating from VB6 codes..so I will not have a very hard time recoding my old VB6 codes to VB.Net...beside s that, I want to make a reusable procedures in Vb.Net that can use both ADO.NET and ADODB...sounds crazy huh?? why should I use ADODB when ADO.NET is now available and indeed much better to...
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to how to fill the datagrid with a table
    in .NET
    Hi!

    I think, using the last code, dataGrid1.DataS ource = ds, you are refencing the whole dataset and not the specific table of the dataset which you named "information".. .maybe thats the reason why your datagridview doesnt know which particular records to show....

    you may try: dataGrid1.DataS ource = ds.Tables("info rmation");

    NOTE: information is the name of table you created in dataset...
    See more | Go to post

    Leave a comment:


  • krungkrung
    started a topic ADODB.Recordset to DataGridView
    in .NET

    ADODB.Recordset to DataGridView

    Hi, can someone help me solve this 'simple' problem of mine???

    I tried populating DatagridView using Recordset but it displayed nothing.
    I used DatagridView.Da taSource = RecordsetObj. RecordsetObj already has records on it, but why records don't display in DataGrid???
    I used DataSet to populate Datagrid using the same code (DatagridView.D ataSource = DSObj.Tables(in dex)) and it displayed the records...

    ...
    See more | Go to post

  • krungkrung
    replied to SetWindowsHookEx API -- PLEASE HELP!
    in .NET
    tnx for that bright idea Plater...maybe i should try it then...(",)
    See more | Go to post

    Leave a comment:


  • krungkrung
    replied to SetWindowsHookEx API -- PLEASE HELP!
    in .NET
    oh my apology....

    hi Plater...I used MessageBox.Show () and it did not make any difference....t he message box appeared but its not at the center of the owner form(as what im expecting)....a s what ive said..Im new to vb.net. Just started using this like 2 days ago..;-)
    See more | Go to post

    Leave a comment:


  • krungkrung
    started a topic SetWindowsHookEx API -- PLEASE HELP!
    in .NET

    SetWindowsHookEx API -- PLEASE HELP!

    Hi everyone! Im new to vb.net. I'm currently recoding my vb6.0 codes to vb.net(for upgrading purposes), unfortunately some of the codes dont work/execute the way it executes in vb6.0, though I never get any error. That is, the program runs without error but the function being called dont execute. Can anybody help me figure out this matter??

    ***HERES WHAT SHOULD THE PROGRAM DO....
    message box should always display at the center...
    See more | Go to post
No activity results to display
Show More
Working...