473,396 Members | 1,785 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,396 software developers and data experts.

another several questions

Hello,
2 questions about refresh.

1)
I want to do elegant refresh of the html page.

When refreshing a page,
the page is blink.
Is there anyway to refresh the page, without the blink
(something like in other languages :
1. freeze any changes
2. do the changes
3. unfreeze the changes
)

2)
How can I access the object of the client side of datagrid.
I mean : datagrid do some manipulations, add rows etc...
after that, the server send the results to the client side.
After I am in the client side, I want to access some of the elements on the
grid.
How can I do that ?

3)
Can dialog-box (called by window.showModalDialog) return result to the
calling form ?
If so, I need a sample please.

Thanks :)
Nov 19 '05 #1
5 1066
I'll address your first question.

SmartNavigation is the simplest and most common solution for the postback
ugliness.
Here's more information:
http://msdn.microsoft.com/library/de...ationTopic.asp

The alternatives to SmartNavigation get significantly more complicated.
You could use XMLHTTP to allow your controls to make their own calls back to
the server without have to refresh the whole page:
http://www.codeguru.com/Csharp/.NET/...cle.php/c9679/

This kind of thing gets easier in ASP.NET 2.0 if you can wait until then:
http://www.developer.com/net/asp/article.php/3506896

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Eitan M" <no****@nospam.com> wrote in message
news:OT****************@TK2MSFTNGP14.phx.gbl...
Hello,
2 questions about refresh.

1)
I want to do elegant refresh of the html page.

When refreshing a page,
the page is blink.
Is there anyway to refresh the page, without the blink
(something like in other languages :
1. freeze any changes
2. do the changes
3. unfreeze the changes
)

2)
How can I access the object of the client side of datagrid.
I mean : datagrid do some manipulations, add rows etc...
after that, the server send the results to the client side.
After I am in the client side, I want to access some of the elements on
the grid.
How can I do that ?

3)
Can dialog-box (called by window.showModalDialog) return result to the
calling form ?
If so, I need a sample please.

Thanks :)

Nov 19 '05 #2
> 2)
How can I access the object of the client side of datagrid.
I mean : datagrid do some manipulations, add rows etc...
after that, the server send the results to the client side.
After I am in the client side, I want to access some of the elements on the grid.
How can I do that ? Your scenario is not clear.
3)
Can dialog-box (called by window.showModalDialog) return result to the
calling form ?
If so, I need a sample please.

In window.returnValue property. An example:
alert (showModalDialog("abc.aspx","","");
and somewhere in abc.aspx:
returnValue="Hello";
close();
Nov 19 '05 #3

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OY**************@tk2msftngp13.phx.gbl...
2)
How can I access the object of the client side of datagrid.
I mean : datagrid do some manipulations, add rows etc...
after that, the server send the results to the client side.
After I am in the client side, I want to access some of the elements on

the
grid.
How can I do that ?

Your scenario is not clear.


Generaly , after I create the lines, on the aspx.
And now I am on the client side.
I have a grid, with some data.
When I am on the client side, I want to change, i.e, the text on the "edit"
button of the datagrid
(or whatever).

How can I do that ?

Thanks :)
Nov 19 '05 #4
I'm afraid from the client side, YOU won't be able to change the text on the
"edit" button. Your HTML document could, though.

;-D

In fact, on the client side there IS no DataGrid. There is only HTML. It is
important to keep this in mind. The client-side HTML document has no
relationship to the server-side .Net entities that create it. It's just a
bit of .Net magick that makes it seem so. But if you want to be a true
magician, you will want to remain aware of these things. And you will not
want to refer to any of your tools as "I." I know this sounds picky, but if
you think I'M picky, you will find computers absolutely so.

YOU are the coder. The server-side processes you create, and the client-side
HTML documents and other client-side entitites are your creations. You only
control them at design time. At run-time, your code, the .Net platform and
the browser take over.

So, if you want your client-side HTML document to change dynamically, you're
going to want to use some Dynamic HTML. DHTML is an amalgam of HTML with
JavaScript and CSS.

Okay, so we're talking about a DataGrid here, so we're not necessarily
talking about ONE button. You're talking about AT LEAST one button. So, I
can't really be that specific, because you were not. I CAN tell you that you
would use JavaScript to get hold of the button and change its "value"
property. The "value" property of a button is the text on it. To get hold of
it, you can use document.forms[0].ElementName.value or
document.getElementById("ElementID").value. You could also use CSS, if you
are handling a client-side intrinsic event of the button.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"Eitan M" <no****@nospam.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OY**************@tk2msftngp13.phx.gbl...
2)
How can I access the object of the client side of datagrid.
I mean : datagrid do some manipulations, add rows etc...
after that, the server send the results to the client side.
After I am in the client side, I want to access some of the elements on

the
grid.
How can I do that ?

Your scenario is not clear.


Generaly , after I create the lines, on the aspx.
And now I am on the client side.
I have a grid, with some data.
When I am on the client side, I want to change, i.e, the text on the
"edit" button of the datagrid
(or whatever).

How can I do that ?

Thanks :)

Nov 19 '05 #5
Thanks.
You gave me an idea that works ...
(I have managed to change the contents of elements on the grid after I get
them to the client, by putting on the server side each of them an ID).

Thanks :)
Nov 19 '05 #6

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

Similar topics

5
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
33
by: Partha Protim Roy | last post by:
Hello, I have a Customer form say A to enter/update customer details. In the Form A I have a button which opens another form say B. In the Form B, I am providing user with a option to search...
13
by: aum | last post by:
Hi, I'm a Python programmer, just starting to get into javascript. On reading some of the js guides, and not liking any of the OO usage patterns I saw, I've cooked up something which python...
1
by: Ilyas | last post by:
Hi all I have a database that contains several tables. Each table has the name data01, data02, data03 etc The column definitions for each table all contains several standard columns and then...
4
by: phillikl | last post by:
Good day, I have inhereted an Access DB that is used to ask people questions about network maintance. I have been tasked with ripping this thing apart and creating a new version. I have most...
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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.