|
I'm guessing you static pages are in the same virtual directory as the application?
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Yes.I cudnt afford to make that mistake again but yes.
I created the link by using the properties of the button and finding the postbackURL and following finding the page I want to link to.Since they are in the same directory I cud see them.
But clicking to link I get that same error message.
kagiso
|
|
|
|
|
You're most probably having a problem with IIS. There is a this[^] diagnostics utility from Microsoft. Maybe it will give you more details about the problem.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Linking to a page doesn't case a POST request to be sent. It will send a GET request. What do you do to get to the page?
The built in web server in Visual Studio doesn't support POST requests to html files, only GET requests.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
On the properties window, there is a PostBackURL property for my button, so I selected the link to the page I want to open when the click event is passed.
There is a property called OnClientClick, do I need to tell it to do something there??
kagiso
|
|
|
|
|
The PostbackURL property is used to do cross page postbacks. You can't postback to a html page.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok, now Uve got my attention, so how do I go about doing this.I need to show the html page when the click event is carried out.
kagiso
|
|
|
|
|
Why don't you just link to it?
<a href="...">name </a>
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
If you're going to a html page, you don't need a server control at all. Just render a button and do a redirect on the client side in javascript when the button is pressed. That saves the server trip altogether.
Another solution is to handle the click event and do a response.redirect in the code behind.
The point of the property you're trying to use is that viewstate from the current page can be passed to another page. The error is telling you that it thinks you're trying to pass viewstate to a html page, which is what you can't do, an html page will not be processed on the server, so there can be no viewstate.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
So how do I got about posting back to a html page??
That is the question.
Thanx in advance.
kagiso
|
|
|
|
|
matjame wrote: So how do I got about posting back to a html page??
You don't.
An html page doesn't process the post data, so there is no reason to use a post request to go to the page.
Just use a regular, simple html link.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Nothing happens when I use linkbuttons.I still cant access the pages, so I tried using
Protected Sub imgContacts_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgContacts.Click
Server.Transfer("AlrodeMaps.aspx?") ' this moves to a new pagie
End Sub
and I get an error "cant be rendered".I think this mite work but not sure if I need any further configurations.
kagiso
|
|
|
|
|
matjame wrote: Nothing happens when I use linkbuttons.
"Nothing" actually very rarely happens. What exactly happens?
matjame wrote: I still cant access the pages
Have you tried to write the url directly in the browser, or using a ordinary html link?
matjame wrote: Server.Transfer("AlrodeMaps.aspx?")
You can only make a transfer to another aspx page, not to an html page.
matjame wrote: I get an error "cant be rendered".
Could you be more specific about the error message? What is the exact error message? Does it come from the server or the browser?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
CMS is a standard name that describes systems that can manage the content. There's no great mighty CMS out there everyone is using. You're mo0st probably using a custom solution. How should we have documentation for that? Ask your colleagues/project manager for it.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Hi i am currently displaying my crystal report in my page itself...,
But i like to show that in popup window...,
Its any possible way is there to do?,
Advance thanks,
Regards,
Magi
|
|
|
|
|
The popup window is stil a window ain't it? It's just that it's resized.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Hi all
I want to know whether the session id is unique when a group of people browsing through the same site, same page at the same time.
Can anybody help?
Please send me the code which will generate the session id so that i can use the same id number to create a folder in my application.
-- modified at 5:50 Thursday 25th October, 2007
Prakash Mishra(Banglore,India)
|
|
|
|
|
Yes Seesion Id is unique for every user....
Arun Singh
Noida.
|
|
|
|
|
Prakash_Mishra wrote: same site, same page at the same time.
Yes it is. It may duplicate when they visit next time. But same time session id will be unique all over the site.
|
|
|
|
|
To be honest, one has to wonder how you expected it to work if it was not unique ? What do you mean by code to generate ? It's generated automatically.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Prakash_Mishra wrote: I want to know whether the session id is unique when a group of people browsing through the same site, same page at the same time.
Prakash_Mishra wrote: Please send me the code which will generate the session id so that i can use the same id number to create a folder in my application.
SessionID is a unique ID generated by the server for each User accessing the site. No two user's can have Idential session ID at a time. And also each session has a life-time. Once a session expires, that ID can be reused to a new session. we don't have to explicitly write any code to generate it. We can create variable's for a particular session and store values in it. These are Session Variable's. The values stored in a session variable can be used/accessed through-out the session across the pages.
Regards - J O H N -
|
|
|
|
|
Hi all,
I have a submit button on a page inside a form, so if the button is clicked it should go to a page but also pass querystring parameters.
Now, if the user clicks the button, the url that is opened is :
www.somesite.com/somepage.asp?
but it's not passing the parameters with, for some reason it takes the "?" as the cut off.
If I take the "?" out and replace it with "&", for example :
www.somesite.com/somepage.asp&p1=123&p2=456
it goes to the following url :
www.somesite.com/somepage.asp?p1=123&p2=456?
and automatically inserts the "?" at the end.
How can I get past this?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Use method="get" property
<form id="form1" target="_blank" action="www.somesite.com/somepage.asp" method="get">
<input type="hidden" name="p1" value="123" />
<input type="hidden" name="p2" value="456" />
<input type="submit" Value="Click on button to go to page"/>
</Form>
best regard
pAthAn
please don't forget to vote on the post that helped you.
|
|
|
|
|
Works like a charm, thanks a mil
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
use the following insert method="post" in your code...
.....
Now u can access the querystring params in somepage.asp by using Request.Form
Koushik
|
|
|
|