|
|
Use Ajax. Place one Label(which displays the Question) and one Timer control in UpdatePanel. Set the Interval of the Timer control to 10 seconds. Inside the Timer onTick event write the code for displaying the next question.
|
|
|
|
|
I want to design an international website in two languages(english and persian)but I don't know what setting should I do and what code should I add to my project.(I use C# in asp.net 2).please help me.
|
|
|
|
|
you def need help in more ways then 1...
|
|
|
|
|
I want to design an international website in two languages(english and persian)but I don't know what setting should I do and what code should I add to my project.(I use C# in asp.net 2).please help me.
|
|
|
|
|
You've posted this question four times now, twice in a row, and now twice with a meaningless header. I recommend you read the link in my sig, it's obvious you don't understand the answers you have been given.
There is no magical 'persian' setting, you need to write the code to handle two different languages, and to factor out all strings so they can be changed as you change languages.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
|
|
Gosh - do you really think that ?
He can solve his problem just by pulling all strings in the site from resources and having two lots of resource files.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Anybody can help me, How can I get password from cookie while giving the user name.. (remember Password)
pls send me the code also..
thank you
Naushad
|
|
|
|
|
snsm wrote: How can I get password from cookie
Password from cookie ? Keeping passwords in cookie is not a good idea.
|
|
|
|
|
can you help me?? How can I do it pls...
|
|
|
|
|
Well, if you are using login control which comes with ASP.NET 2.0, it supports this automatically. To implement this manually, you may follow the pseudo code below
1 - Keep users unique identification along with a checksum value in the cookie. (It would be better if you can encrypt it)
2 - When page loads, check session existence-if session doesn't exist, read value from cookie, decrypt it and query database for getting that user details. Create session with the user details.
Hope it helps.
|
|
|
|
|
Depends - the built in control does not log you in without asking you for a password, it just remembers the values to autocomplete when you start typing.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Christian Graus wrote: it just remembers the values to autocomplete when you start typing.
Ohh, I was thinking in the other way. Thanks for correcting it.
|
|
|
|
|
which part are you stuck on ?
1 - how to use cookies ( try google )
2 - why it's a terrible idea to store a password in a cookie ( just stop and think for a moment )
3 - how else to impliment what you want without a huge security hole ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I created a web Application.
that web application has one Defaul.aspx Page. I added one Button on the
default.aspx page.
<asp:button id="Button2" runat="server" onclientclick="CallMethod();" text="Click">
debugger;
function CallMethod()
{
alert("Hai");
}
I can't debugg my javascript.while running the web applicaion I got the
Popup error message like below.
---------------------------
Microsoft Development Environment
---------------------------
An exception of type 'Runtime Error' was not handled.
Would you like to debug the application?
---------------------------
Yes No
---------------------------
When i click no browser works fine. stil can't debugg the JavaScript.
I checked the same code in my fried machine.i can debugg the javascript.
if i click the Yes option Microsoft Development Environment is opened. and it points out the debugger word as an error in javascript.
Please help me.
|
|
|
|
|
In online Payment
When PayPal then sends confirmation back to my server with a single word, "VERIFIED" or "INVALID
Then in case of varified it must return the txn_id (which is transactionId
To which i want to save in my database
But i dont get any value in txn_id
Plz help me Out here
Raghvendra
|
|
|
|
|
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="20">
</sessionState>
What this statement means?
|
|
|
|
|
|
In online Payment
When PayPal then sends confirmation back to my server with a single word, "VERIFIED" or "INVALID
Then in case of varified it must return the txn_id (which is transactionId
To which i want to save in my database
But i dont get any value in txn_id
Plz help me Out here
Raghvendra
|
|
|
|
|
Hey, guys.
Ever get the feeling you're overlooking something terribly, terribly obvious?
Here's the scenario. I've written quite a few controls that spit out various lists, grids, etc. for a given site. One of the things I need to do is provide copy and paste scripts that will allow other web sites to display this formatted data on their pages. Naturally, I'd like to just wrap this stuff somehow and then stick that wrapper inside the script that they can copy, i.e. I don't want to reinvent the wheel I'm already rolling.
As I look over Render(), RenderControl(), et al, it seems like there should be some clever little trick that will let me do this, but for some reason (perhaps I should try sleeping on occasion), it's just not jumping out at me. I'm using the .cs / .ascx model, i.e. I'm not manually spitting out all the html in the control itself but rather just doing the normal markup / codebehind stuff. Don't know if that makes a difference or not.
Anyway, if anyone would be so kind as to point me in the right direction, I'll be happy to post a few icons just for form. I know it's gotta be something blatantly obvious I'm missing here.
Thanks!
|
|
|
|
|
Christopher Duncan wrote: One of the things I need to do is provide copy and paste scripts that will allow other web sites to display this formatted data on their pages.
Well your post is 12 hours old now with no replies so I will say this. I'm not at all sure I understand what you are saying but the only translation I can get from that is you think you can use javascript to obtain HTML fragments from site 'B' to display on site 'A'. I'm pretty sure that violates a primary security tenet known as cross site scripting and therefore you can't do it.
led mike
|
|
|
|
|
Hey, Mike.
Thanks for taking the time to reply. Obviously I didn't phrase the question very well, in part because I don't know what this common technique is called. Here's an example of what I'm trying to accomplish:
http://www.google.com/services/adsense_tour/page3.html[^]
In this example, the script with the horsepower is show_ads.js, and of course the result is a list of Google ads displaying on your page. However, I have also seen this technique used (and darned if I can find an example at the moment) with the url in the script pointing not to a javascript file but rather to a regular page, e.g. src=http://www.somedomain.com/DisplayStuff.aspx
The end result I'm looking for is the same as Google, to display a list of stuff. And I have controls written that do just that. Therefore, what I'm looking to do is put those controls on an aspx page in such a manner that the output is redirected to the user's page where they've pasted the script in, ala the example above.
Apologies for being so clumsy in my description, I'm sure I'm making this harder than it needs to be.
|
|
|
|
|
Christopher Duncan wrote: I don't know what this common technique is called.
Well many things that are very similar like WebService for one. The bottom line is you have to expose the feature from the server side using one of several techniques. However this technique is normally used to publish content not behavior or layout which is more of a software component. It is not clear from your posts which category your product falls under.
led mike
|
|
|
|