473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CallBack and Form Problem...

Hello, im testing to make a webapplication, that has 2 buttons and with this
buttons you could change the databinding of a webgrid... i have a problem,
that the first time it renders 100% ok, but at the second time it throws an
error of object not initialized. here is my code... i need to make it to the
form because of the grid. with the gridview of .net works fine, but i want to
make it with the infragistics grid!

here is the test. http://rothariger.com.ar/icallback/icallback.aspx
<[Server Side Code]>
str: is a variable private to the form.
infragrid: is a variable public global of type infragistics ultrawebgrid i
save this for save the style.
uwg: is the grid of the form.
the error occurs in this line Form.RenderControl(htm).

Public Function GetCallbackResult() As String Implements
ICallbackEventHandler.GetCallbackResult
Return str.ToString()
End Function

Public Sub ReiseCallbackEvent(ByVal eventArgument As String) Implements
System.Web.UI.ICallbackEventHandler.RaiseCallbackE vent
uwg = infragrid
uwg.Visible = True
Select Case eventArgument
Case "Button1"
uwg.DataSource = Usuarios()
uwg.DataMember = "Usuarios"
uwg.DataBind()
Case "Button2"
uwg.DataSource = Room()
uwg.DataMember = "Rooms"
uwg.DataBind()
End Select
Dim sr As New IO.StringWriter()
Dim htm As New HtmlTextWriter(sr)
Form.Controls.Add(uwg)
Form.RenderControl(htm)
str = sr.ToString()
End Sub
<[Client Side Code]>
myBody: is the body, so i change all innerhtml in the body.

function myFunction(args, context)
{
grid = document.getElementById("myBody");
grid.innerHTML = args;
}

thanks for any help!
Jan 13 '06 #1
2 1161
if you enter to the address i give, i added 2 buttons more, to gridview, so
you could view working...

but if you touch first the gridview buttons the others dont work at once...
and if you touch the infragrid buttons the first time, and then gridview
doesnt work neither...
it was clear?

thanks!
Jan 13 '06 #2
i add something, with firefox, it works like i want...
Jan 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fc | last post by:
hi, i'm having a problem using C#'s lock and windows2000's text to speech (vtext.dll) ... basically it looks like the callback from the TTS is violating C#'s lock, which looks very very...
0
by: bob | last post by:
Hi all Currently porting an application to managed C++ Have managed to create working MDI form and child windows etc. Also added a callback from an unmanaged 'C' dll (ok that was strangely...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
6
by: ReinhardH | last post by:
Hi, I have to use a cdecl dll (3 party dll). One of the functions needs a callback as a parameter. Unfortunately it seems that I'm not able to solve this issue. What I have done is: Declare...
7
by: Roemer | last post by:
Hi all I stumbled over a new problem: I have a programm with just a class that is asynchronous listening for network connections. As soon as someone connected, a new form needs to be created....
2
by: Marcus Kwok | last post by:
I have processing code (I'll call it the "model") written in native unmanaged pure C++, and I have put a GUI on top of it written using Windows Forms (.NET 1.1). The GUI is used to set the...
2
by: Joe | last post by:
In the callback I need to call an event letting the calling form know that the operation completed. If the operation fails, the main form needs to show another form. The problem I get is when the...
11
by: The Frog | last post by:
Hi all, Maybe I am just missing something simple here, but I seem to have an issue with a callback function in A97 that is used to fill a Listbox with values. The first time the callback...
2
by: toringe | last post by:
Hi I try to connect to a cardreader from a VB.NET 2003 application. The cardreader manufacturer has provided an OCX to access the reader trough. The OCX sends status messages back by using...
10
by: SQACPP | last post by:
Hi, I try to figure out how to use Callback procedure in a C++ form project The following code *work* perfectly on a console project #include "Windows.h" BOOL CALLBACK...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.