Showing posts with label url. Show all posts
Showing posts with label url. Show all posts

Wednesday, March 28, 2012

Substring from URL

OK, i thought I was quite experienced with asp.net, though I have a silly question. I have a photo album on my website, but at the moment most of the data is stored in a database, and I get long URLs like www.arsluminis.com/photography/album/?aid=2, I'd like to have it like www.arsluminis.com/photography/album/1/2/, so I need to get the "1" and the "2" both in a parameter, I tried it using "indexOf" and "lastIndexOf", but I can't find it.
Anyone got an idea please?

Regards,
NielsHello,
if all the urls that you have are in the form of the url that you gave :
www.arsluminis.com/photography/album/?aid=2

then, you might have something like this:

string s = url.IndexOf('=');
then you can copy the value after "=" by using any method in Strings

then, also, use the methods of String like concat and create the new url that yoy want, in the format that you want.

best of luck
Consider using the .net class System.Uri. Pass the URL into the constructor and use its Query parameter to get a string representing the querystring.

If you want to look through individual parameters, there are two ways:
1. Brute force. Use the Split('&') method on the string class to create an array of elements. Then loop through them.
2. Regular expression. I think the expression is:
Parameter name;
=
any text
? OR end of line

Here's the reference I like for building regular expressions:
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/regexp.html#1193136

The .net class is System.Text.RegularExpressions.Regex.

Saturday, March 24, 2012

suggestions for RSS Feed url?

I have been getting into RSS quite a bit lately and I would like to try my
hand at writting one. What is the best suggestions for the URL? Should it
be an aspx returning XML? Should it be an HttpModule (or handler? what's
the other way?) or some other mechanism?
If you've written one, I would love to hear about your experiences. If you
have any website urls I would love to see them too. I've tried googling,
but I seem to get drowned in plain-jane, end user rss feed stuff, not too
much developer oriented or url info. Maybe it's my keywords?
Thanks."Flip" wrote ...

>I have been getting into RSS quite a bit lately and I would like to try my
>hand at writting one. What is the best suggestions for the URL? Should it
>be an aspx returning XML? Should it be an HttpModule (or handler? what's
>the other way?) or some other mechanism?
Isn't it usually just an xml file? I might be wrong, I dont know - but I
like you would like to get into writing one...

> If you've written one, I would love to hear about your experiences. If
> you have any website urls I would love to see them too. I've tried
> googling, but I seem to get drowned in plain-jane, end user rss feed
> stuff, not too much developer oriented or url info. Maybe it's my
> keywords?
I did find this which looks like a good start, and helpfully there's both C#
and VB examples for the .net part...
http://www.uberasp.net/getarticle.aspx?id=17
HTH
Rob
Another option for the url is the rss prefix. I was hunting in RSSBandit's
feed xml and found this one for CBC.
http://rss.cbc.ca/topstoriesnews.xml
> http://www.uberasp.net/getarticle.aspx?id=17
Very ! I'll read up on that during lunch! :> Thanks for the quick
feedback. Hopefully we'll both get some more urls from other's.
Thanks again.
"Flip" wrote ...

> Thanks again.
More than welcome :o)
Rob
> More than welcome :o)
I didn't get a chance to play with this last night. :< I hope to try it out
tonight and get back to you with a sample URL. If you try it out, COOL! If
not, hey, at least you led me in the right direction to learn something new!
:>
Have a good one.

Thursday, March 22, 2012

Suppressing the URL in a asp.net app

Hi,

I've seen many Internet sites that suppress the URL or show the same URL all
the time your moving around different pages. You'll only see the real page
with it's path in the statusbar way down on the page.

How is that done in asp.net?

I have an example on this, in sweden, stockholm where I live we have a
wellknown kindergarten for older men (warehouse shop) named Clas Ohlson

http://www.clasohlson.se/

You'll also have them on a flaglink in finnish, norwegian and english
language just above the statusbar. So that you see what I mean.

Any ideas?

TIA

Kenneth PThe above link (http://www.clasohlson.se/) is using a frameset. The
address bar isn't updated since you're navigating within a frame of the
page frameset.

Since HTML Framesets are a client side technology, this approach would
work the exact same in ASP.NET.

More info on frames here:
http://www.w3schools.com/html/html_frames.asp
- Jon
http://weblogs.asp.net/jgalloway
Hi

They are using frames. Just look at the main page "View -> Sourece" and you
will see that page have some frame.
With right click on page you'll see that page has url. Click on top and also
on bottom to see that the page url is different.
Also take a look on frame stuff to undestand clearly what is happening.
There is no trick made in asp.net in that page.

Cheers.

"Kenneth P" wrote:

> Hi,
> I've seen many Internet sites that suppress the URL or show the same URL all
> the time your moving around different pages. You'll only see the real page
> with it's path in the statusbar way down on the page.
> How is that done in asp.net?
> I have an example on this, in sweden, stockholm where I live we have a
> wellknown kindergarten for older men (warehouse shop) named Clas Ohlson
> http://www.clasohlson.se/
> You'll also have them on a flaglink in finnish, norwegian and english
> language just above the statusbar. So that you see what I mean.
> Any ideas?
> TIA
> Kenneth P
Kenneth P wrote:
> Hi,
> I've seen many Internet sites that suppress the URL or show the same
> URL all the time your moving around different pages. You'll only see
> the real page with it's path in the statusbar way down on the page.
> How is that done in asp.net?
> I have an example on this, in sweden, stockholm where I live we have a
> wellknown kindergarten for older men (warehouse shop) named Clas
> Ohlson
> http://www.clasohlson.se/
> You'll also have them on a flaglink in finnish, norwegian and english
> language just above the statusbar. So that you see what I mean.
> Any ideas?
> TIA
> Kenneth P

That has nothing to do with asp.net or any other server-side technology,
it is client-side html.
The trick is to use a frameset as your first page. The URL shown is the url of that
frameset definition, the rest of the site works within that frameset.

For that site: use "View | Source" from the menu and scroll down to below the
<NOSCRIPT> section. (strange, a noscript section with embedded javascript...)

Hans Kesting
Hi jongalloway,

Hmmm...

Have you seen the same technology on pages without frames?

Kenneth P

"jongalloway" wrote:

> The above link (http://www.clasohlson.se/) is using a frameset. The
> address bar isn't updated since you're navigating within a frame of the
> page frameset.
> Since HTML Framesets are a client side technology, this approach would
> work the exact same in ASP.NET.
> More info on frames here:
> http://www.w3schools.com/html/html_frames.asp
> - Jon
> http://weblogs.asp.net/jgalloway
>

"Kenneth P" wrote:

> Hi jongalloway,
> Hmmm...
> Have you seen the same technology on pages without frames?
> Kenneth P
>
> "jongalloway" wrote:
> > The above link (http://www.clasohlson.se/) is using a frameset. The
> > address bar isn't updated since you're navigating within a frame of the
> > page frameset.
> > Since HTML Framesets are a client side technology, this approach would
> > work the exact same in ASP.NET.
> > More info on frames here:
> > http://www.w3schools.com/html/html_frames.asp
> > - Jon
> > http://weblogs.asp.net/jgalloway
Sorry about that empty post above, accidentally hit the Enter key :-)

here are some interesting articles that could solve your problem:
www.15seconds.com/issue/030522.htm
www.codeproject.com/aspnet/URLRewriter.asp

I hope this helps

"Tim Bens" wrote:

>
> "Kenneth P" wrote:
> > Hi jongalloway,
> > Hmmm...
> > Have you seen the same technology on pages without frames?
> > Kenneth P
> > "jongalloway" wrote:
> > > The above link (http://www.clasohlson.se/) is using a frameset. The
> > > address bar isn't updated since you're navigating within a frame of the
> > > page frameset.
> > > > Since HTML Framesets are a client side technology, this approach would
> > > work the exact same in ASP.NET.
> > > > More info on frames here:
> > > http://www.w3schools.com/html/html_frames.asp
> > > - Jon
> > > http://weblogs.asp.net/jgalloway
> >
Tim,

Thanks for the links.

Kenneth P

"Tim Bens" wrote:

> Sorry about that empty post above, accidentally hit the Enter key :-)
> here are some interesting articles that could solve your problem:
> www.15seconds.com/issue/030522.htm
> www.codeproject.com/aspnet/URLRewriter.asp
> I hope this helps
>
> "Tim Bens" wrote:
> > "Kenneth P" wrote:
> > > Hi jongalloway,
> > > > Hmmm...
> > > > Have you seen the same technology on pages without frames?
> > > > Kenneth P
> > > > > "jongalloway" wrote:
> > > > > The above link (http://www.clasohlson.se/) is using a frameset. The
> > > > address bar isn't updated since you're navigating within a frame of the
> > > > page frameset.
> > > > > > Since HTML Framesets are a client side technology, this approach would
> > > > work the exact same in ASP.NET.
> > > > > > More info on frames here:
> > > > http://www.w3schools.com/html/html_frames.asp
> > > > - Jon
> > > > http://weblogs.asp.net/jgalloway
> > > >

Suppressing the URL in a asp.net app

Hi,
I've seen many Internet sites that suppress the URL or show the same URL all
the time your moving around different pages. You'll only see the real page
with it's path in the statusbar way down on the page.
How is that done in asp.net?
I have an example on this, in sweden, stockholm where I live we have a
wellknown kindergarten for older men (warehouse shop) named Clas Ohlson
http://www.clasohlson.se/
You'll also have them on a flaglink in finnish, norwegian and english
language just above the statusbar. So that you see what I mean.
Any ideas?
TIA
Kenneth PThe above link (http://www.clasohlson.se/) is using a frameset. The
address bar isn't updated since you're navigating within a frame of the
page frameset.
Since HTML Framesets are a client side technology, this approach would
work the exact same in ASP.NET.
More info on frames here:
http://www.w3schools.com/html/html_frames.asp
- Jon
http://weblogs.asp.net/jgalloway
Hi
They are using frames. Just look at the main page "View -> Sourece" and you
will see that page have some frame.
With right click on page you'll see that page has url. Click on top and also
on bottom to see that the page url is different.
Also take a look on frame stuff to undestand clearly what is happening.
There is no trick made in asp.net in that page.
Cheers.
"Kenneth P" wrote:

> Hi,
> I've seen many Internet sites that suppress the URL or show the same URL a
ll
> the time your moving around different pages. You'll only see the real page
> with it's path in the statusbar way down on the page.
> How is that done in asp.net?
> I have an example on this, in sweden, stockholm where I live we have a
> wellknown kindergarten for older men (warehouse shop) named Clas Ohlson
> http://www.clasohlson.se/
> You'll also have them on a flaglink in finnish, norwegian and english
> language just above the statusbar. So that you see what I mean.
> Any ideas?
> TIA
> Kenneth P
Kenneth P wrote:
> Hi,
> I've seen many Internet sites that suppress the URL or show the same
> URL all the time your moving around different pages. You'll only see
> the real page with it's path in the statusbar way down on the page.
> How is that done in asp.net?
> I have an example on this, in sweden, stockholm where I live we have a
> wellknown kindergarten for older men (warehouse shop) named Clas
> Ohlson
> http://www.clasohlson.se/
> You'll also have them on a flaglink in finnish, norwegian and english
> language just above the statusbar. So that you see what I mean.
> Any ideas?
> TIA
> Kenneth P
That has nothing to do with asp.net or any other server-side technology,
it is client-side html.
The trick is to use a frameset as your first page. The URL shown is the url
of that
frameset definition, the rest of the site works within that frameset.
For that site: use "View | Source" from the menu and scroll down to below th
e
<NOSCRIPT> section. (strange, a noscript section with embedded javascript...
)
Hans Kesting
Hi jongalloway,
Hmmm...
Have you seen the same technology on pages without frames?
Kenneth P
"jongalloway" wrote:

> The above link (http://www.clasohlson.se/) is using a frameset. The
> address bar isn't updated since you're navigating within a frame of the
> page frameset.
> Since HTML Framesets are a client side technology, this approach would
> work the exact same in ASP.NET.
> More info on frames here:
> http://www.w3schools.com/html/html_frames.asp
> - Jon
> http://weblogs.asp.net/jgalloway
>

"Kenneth P" wrote:
> Hi jongalloway,
> Hmmm...
> Have you seen the same technology on pages without frames?
> Kenneth P
>
> "jongalloway" wrote:
>
Sorry about that empty post above, accidentally hit the Enter key :-)
here are some interesting articles that could solve your problem:
www.15seconds.com/issue/030522.htm
www.codeproject.com/aspnet/URLRewriter.asp
I hope this helps
"Tim Bens" wrote:
>
> "Kenneth P" wrote:
>
Tim,
Thanks for the links.
Kenneth P
"Tim Bens" wrote:
> Sorry about that empty post above, accidentally hit the Enter key :-)
> here are some interesting articles that could solve your problem:
> www.15seconds.com/issue/030522.htm
> www.codeproject.com/aspnet/URLRewriter.asp
> I hope this helps
>
> "Tim Bens" wrote:
>

Tuesday, March 13, 2012

Swapping Image Url

In an aspx page I have declared an Image control:
<asp:Image id="myImage" runat="server"></asp:Image
In the code-behind I populate it's ImageURL property, like this:
myImage.ImageUrl = "some.gif";

Then, in client-side JavaScript, the user can cause the image to be
replaced, like this:
document.all("myImage").src = "other.gif";

Here's the problem: on postback, the image control's .ImageUrl property
still contains "some.gif" and not "other.gif" as I am needing.

What do I need to do to receive - during postback - the value set in the
client by the JavaScript?

Thanks!After postback, the value of ImageUrl is coming from the control's ViewState.

One solution would be to set the value of a hidden field when you set the
image's src attribute. The value of the hidden field will get posted back
correctly.

"Guadala Harry" wrote:

> In an aspx page I have declared an Image control:
> <asp:Image id="myImage" runat="server"></asp:Image>
> In the code-behind I populate it's ImageURL property, like this:
> myImage.ImageUrl = "some.gif";
> Then, in client-side JavaScript, the user can cause the image to be
> replaced, like this:
> document.all("myImage").src = "other.gif";
> Here's the problem: on postback, the image control's .ImageUrl property
> still contains "some.gif" and not "other.gif" as I am needing.
> What do I need to do to receive - during postback - the value set in the
> client by the JavaScript?
> Thanks!
>
>
Thanks - I thought about going the hidden field route - but was hoping for
some solution that wouldn't require adding another field or control that
needs synchronizing with the original Image control.

Any other ideas?

Thanks again...

-G

"Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> After postback, the value of ImageUrl is coming from the control's
ViewState.
> One solution would be to set the value of a hidden field when you set the
> image's src attribute. The value of the hidden field will get posted back
> correctly.
> "Guadala Harry" wrote:
> > In an aspx page I have declared an Image control:
> > <asp:Image id="myImage" runat="server"></asp:Image>
> > In the code-behind I populate it's ImageURL property, like this:
> > myImage.ImageUrl = "some.gif";
> > Then, in client-side JavaScript, the user can cause the image to be
> > replaced, like this:
> > document.all("myImage").src = "other.gif";
> > Here's the problem: on postback, the image control's .ImageUrl property
> > still contains "some.gif" and not "other.gif" as I am needing.
> > What do I need to do to receive - during postback - the value set in the
> > client by the JavaScript?
> > Thanks!
Can you make the code in your codebehind only execute the first time it
executes? i.e.

if (!Page.IsPostback)
myImage.ImageUrl = "some.gif";

Toby Mathews

"Guadala Harry" <GMan@.NoSpam.com> wrote in message
news:%23wqVQXQgEHA.2908@.TK2MSFTNGP10.phx.gbl...
> Thanks - I thought about going the hidden field route - but was hoping for
> some solution that wouldn't require adding another field or control that
> needs synchronizing with the original Image control.
> Any other ideas?
> Thanks again...
> -G
>
> "Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
> news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> > After postback, the value of ImageUrl is coming from the control's
> ViewState.
> > One solution would be to set the value of a hidden field when you set
the
> > image's src attribute. The value of the hidden field will get posted
back
> > correctly.
> > "Guadala Harry" wrote:
> > > In an aspx page I have declared an Image control:
> > > <asp:Image id="myImage" runat="server"></asp:Image>
> > > > In the code-behind I populate it's ImageURL property, like this:
> > > myImage.ImageUrl = "some.gif";
> > > > Then, in client-side JavaScript, the user can cause the image to be
> > > replaced, like this:
> > > document.all("myImage").src = "other.gif";
> > > > Here's the problem: on postback, the image control's .ImageUrl
property
> > > still contains "some.gif" and not "other.gif" as I am needing.
> > > > What do I need to do to receive - during postback - the value set in
the
> > > client by the JavaScript?
> > > > Thanks!
> > > >
That's not really relevant to the problem - it would be IF there was an
issue with postback processing walking on the value set in the client - but
issue is that the value set in the client code is never making it to the
server (unless I explicitly stuff the value into a hidden field - which I
don't want to do unless I really must).

Thanks anyway.

"Toby Mathews" <tobymathewsNOSPAM@.yahoo.spamfree.co.uk> wrote in message
news:cfhs1q$87n$1@.thorium.cix.co.uk...
> Can you make the code in your codebehind only execute the first time it
> executes? i.e.
> if (!Page.IsPostback)
> myImage.ImageUrl = "some.gif";
> Toby Mathews
> "Guadala Harry" <GMan@.NoSpam.com> wrote in message
> news:%23wqVQXQgEHA.2908@.TK2MSFTNGP10.phx.gbl...
> > Thanks - I thought about going the hidden field route - but was hoping
for
> > some solution that wouldn't require adding another field or control that
> > needs synchronizing with the original Image control.
> > Any other ideas?
> > Thanks again...
> > -G
> > "Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
> > news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> > > After postback, the value of ImageUrl is coming from the control's
> > ViewState.
> > > > One solution would be to set the value of a hidden field when you set
> the
> > > image's src attribute. The value of the hidden field will get posted
> back
> > > correctly.
> > > > "Guadala Harry" wrote:
> > > > > In an aspx page I have declared an Image control:
> > > > <asp:Image id="myImage" runat="server"></asp:Image>
> > > > > > In the code-behind I populate it's ImageURL property, like this:
> > > > myImage.ImageUrl = "some.gif";
> > > > > > Then, in client-side JavaScript, the user can cause the image to be
> > > > replaced, like this:
> > > > document.all("myImage").src = "other.gif";
> > > > > > Here's the problem: on postback, the image control's .ImageUrl
> property
> > > > still contains "some.gif" and not "other.gif" as I am needing.
> > > > > > What do I need to do to receive - during postback - the value set in
> the
> > > > client by the JavaScript?
> > > > > > Thanks!
> > > > > > > >
Harry,

Sorry, I didn't read your message properly first time round. I'm not sure
how else you could achieve what you want to do other than how you decribe.
Good luck,

Toby

"Guadala Harry" <GMan@.NoSpam.com> wrote in message
news:%23Tkt9DRgEHA.1048@.tk2msftngp13.phx.gbl...
> That's not really relevant to the problem - it would be IF there was an
> issue with postback processing walking on the value set in the client -
but
> issue is that the value set in the client code is never making it to the
> server (unless I explicitly stuff the value into a hidden field - which I
> don't want to do unless I really must).
> Thanks anyway.
>
> "Toby Mathews" <tobymathewsNOSPAM@.yahoo.spamfree.co.uk> wrote in message
> news:cfhs1q$87n$1@.thorium.cix.co.uk...
> > Can you make the code in your codebehind only execute the first time it
> > executes? i.e.
> > if (!Page.IsPostback)
> > myImage.ImageUrl = "some.gif";
> > Toby Mathews
> > "Guadala Harry" <GMan@.NoSpam.com> wrote in message
> > news:%23wqVQXQgEHA.2908@.TK2MSFTNGP10.phx.gbl...
> > > Thanks - I thought about going the hidden field route - but was hoping
> for
> > > some solution that wouldn't require adding another field or control
that
> > > needs synchronizing with the original Image control.
> > > > Any other ideas?
> > > > Thanks again...
> > > > -G
> > > > > > "Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
> > > news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> > > > After postback, the value of ImageUrl is coming from the control's
> > > ViewState.
> > > > > > One solution would be to set the value of a hidden field when you
set
> > the
> > > > image's src attribute. The value of the hidden field will get
posted
> > back
> > > > correctly.
> > > > > > "Guadala Harry" wrote:
> > > > > > > In an aspx page I have declared an Image control:
> > > > > <asp:Image id="myImage" runat="server"></asp:Image>
> > > > > > > > In the code-behind I populate it's ImageURL property, like this:
> > > > > myImage.ImageUrl = "some.gif";
> > > > > > > > Then, in client-side JavaScript, the user can cause the image to
be
> > > > > replaced, like this:
> > > > > document.all("myImage").src = "other.gif";
> > > > > > > > Here's the problem: on postback, the image control's .ImageUrl
> > property
> > > > > still contains "some.gif" and not "other.gif" as I am needing.
> > > > > > > > What do I need to do to receive - during postback - the value set
in
> > the
> > > > > client by the JavaScript?
> > > > > > > > Thanks!
> > > > > > > > > > > > > >

Swapping Image Url

In an aspx page I have declared an Image control:
<asp:Image id="myImage" runat="server"></asp:Image>
In the code-behind I populate it's ImageURL property, like this:
myImage.ImageUrl = "some.gif";
Then, in client-side JavaScript, the user can cause the image to be
replaced, like this:
document.all("myImage").src = "other.gif";
Here's the problem: on postback, the image control's .ImageUrl property
still contains "some.gif" and not "other.gif" as I am needing.
What do I need to do to receive - during postback - the value set in the
client by the JavaScript?
Thanks!After postback, the value of ImageUrl is coming from the control's ViewState
.
One solution would be to set the value of a hidden field when you set the
image's src attribute. The value of the hidden field will get posted back
correctly.
"Guadala Harry" wrote:

> In an aspx page I have declared an Image control:
> <asp:Image id="myImage" runat="server"></asp:Image>
> In the code-behind I populate it's ImageURL property, like this:
> myImage.ImageUrl = "some.gif";
> Then, in client-side JavaScript, the user can cause the image to be
> replaced, like this:
> document.all("myImage").src = "other.gif";
> Here's the problem: on postback, the image control's .ImageUrl property
> still contains "some.gif" and not "other.gif" as I am needing.
> What do I need to do to receive - during postback - the value set in the
> client by the JavaScript?
> Thanks!
>
>
Thanks - I thought about going the hidden field route - but was hoping for
some solution that wouldn't require adding another field or control that
needs synchronizing with the original Image control.
Any other ideas?
Thanks again...
-G
"Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> After postback, the value of ImageUrl is coming from the control's
ViewState.
> One solution would be to set the value of a hidden field when you set the
> image's src attribute. The value of the hidden field will get posted back
> correctly.
> "Guadala Harry" wrote:
>
Can you make the code in your codebehind only execute the first time it
executes? i.e.
if (!Page.IsPostback)
myImage.ImageUrl = "some.gif";
Toby Mathews
"Guadala Harry" <GMan@.NoSpam.com> wrote in message
news:%23wqVQXQgEHA.2908@.TK2MSFTNGP10.phx.gbl...
> Thanks - I thought about going the hidden field route - but was hoping for
> some solution that wouldn't require adding another field or control that
> needs synchronizing with the original Image control.
> Any other ideas?
> Thanks again...
> -G
>
> "Brad Quinn" <BradQuinn@.discussions.microsoft.com> wrote in message
> news:E07F8EE9-B35D-488C-A2A9-CB60DCA6AACD@.microsoft.com...
> ViewState.
the
back
property
the
>
That's not really relevant to the problem - it would be IF there was an
issue with postback processing walking on the value set in the client - but
issue is that the value set in the client code is never making it to the
server (unless I explicitly stuff the value into a hidden field - which I
don't want to do unless I really must).
Thanks anyway.
"Toby Mathews" <tobymathewsNOSPAM@.yahoo.spamfree.co.uk> wrote in message
news:cfhs1q$87n$1@.thorium.cix.co.uk...
> Can you make the code in your codebehind only execute the first time it
> executes? i.e.
> if (!Page.IsPostback)
> myImage.ImageUrl = "some.gif";
> Toby Mathews
> "Guadala Harry" <GMan@.NoSpam.com> wrote in message
> news:%23wqVQXQgEHA.2908@.TK2MSFTNGP10.phx.gbl...
for
> the
> back
> property
> the
>
Harry,
Sorry, I didn't read your message properly first time round. I'm not sure
how else you could achieve what you want to do other than how you decribe.
Good luck,
Toby
"Guadala Harry" <GMan@.NoSpam.com> wrote in message
news:%23Tkt9DRgEHA.1048@.tk2msftngp13.phx.gbl...
> That's not really relevant to the problem - it would be IF there was an
> issue with postback processing walking on the value set in the client -
but
> issue is that the value set in the client code is never making it to the
> server (unless I explicitly stuff the value into a hidden field - which I
> don't want to do unless I really must).
> Thanks anyway.
>
> "Toby Mathews" <tobymathewsNOSPAM@.yahoo.spamfree.co.uk> wrote in message
> news:cfhs1q$87n$1@.thorium.cix.co.uk...
> for
that
set
posted
be
in
>