|
If you are redirecting to another page then Ajax isn't going help you.
Gregory.Gadow wrote: I cannot hard-code the link
What link? You mean to your manage favorites page?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
What I need is a link that posts back to the page so that I can perform server-side operations. My understanding is that AJAX was designed for such operations.
And yes, I mean the link to the manage favorites page. You will note in the code I provided that the text is appended to a StringBuilder object. After the link to ManageFavorites.aspx is added, it goes through the list of user bookmarks and adds those. The function then returns either the built string, or an empty string if the user is one of the back office staff.
|
|
|
|
|
ASP.NET is built around postback operations. Ajax is an out of band call that does not use postback.
I don't understand the problem, you are not explaining it clearly. You can't hard code the link for a LinkButton but that is what you are doing for an anchor tag. You should do some research on databinding and databound controls such as Repeater or DataList rather than using such brute force methods and constructing a string.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The code I posted is part of a function, which returns Result.ToStrong . In other words, the anchor is not hard coded, it is being injected into the page at render time as a text stream, along with the user's bookmarks. This works fine with regular HTML, but trying to append <asp:LinkButton ...> would result in that literal text being added, not a control with all its associated functionality.
|
|
|
|
|
Gregory.Gadow wrote: trying to append <asp:linkbutton ...=""> would result in that literal text being added,
Yes, of course it would
Ever heard mention of databinding? You know, like I said in my last response.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hello to everyone
i have purchsed a domain name from www.whiz.in and i want to link it with my blog at blogspot.com.
please guide me step by step as i am very new to such things. thanks for your help, highly obliged.
take care
|
|
|
|
|
You could request the domain provider to modify the DNS settings to forward to your blogs address.
|
|
|
|
|
i called them but they said u can read our manual on site but it went off my head. plzz help
|
|
|
|
|
Well, if the provider has it on their site, go read the manual....
We don't know who your provider is, we don't know your passwords, we don't know your blogs address.
If you go through life expecting everything done for you, you wont get very far will you.
Extra fries with that?
|
|
|
|
|
then let me try myself, if i found any difficulty i'll send u screenshot.
firstly tell me that all settings are done in domain provider's control panel or we do need something from our blog except its address ?
|
|
|
|
|
Everything is done from your domain providers control panel.
All you need to do is look for something relating to DNS
There will be an option for Forwarding and all you need to do is put your full address for your blog in there.
Here is the instruction page on your providers website;
http://domain.whiz.in/kb/servlet/KBServlet/faq1494.html[^]
|
|
|
|
|
thanks a lot for ur help sir but the link u give is showing error "page cannot be found".
|
|
|
|
|
i just clicked the link from my message and it opened up the page fine......
It was easy to find from your provider website though, sure you'll manage.
The next message i want to see is, "Woo Hoo, I've done it, thanks......"
|
|
|
|
|
woo hooo i have done it sir...... if u need any kinda help i m ready
thanks again
|
|
|
|
|
can i have ur email id so that i can send u the screenshot ??
|
|
|
|
|
if i give u all my passwords will u b able 2 do that 4 me ?
|
|
|
|
|
Hang on a minute, let me translate from text-speak to english..........
[translator output]
If I give you all my passwords would you be able to do that for me please?
No, why don't you have a go yourself, sheesh, if your messing about with blogs and domains and visiting codeproject, you must have some IT interest, where is your willingness to learn?
What is to say that you give me your password and I redirect your domain to some dodgy porn website and then change the passwords to lock you out from your account and then start using your domain to send millions of spam messages and host malware?
A bit too trusting are you not?
If your provider has any sort of decent site/support, then it should be laid out in an easy to follow FAQ.
Who is your provider? what is their web address?
|
|
|
|
|
Oh, please send me all your passwords, and I will do it, but only, if you also send me all your credit card information.
No really, why would you trust a complete stranger on this?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Don't post across forums.
You posted this in Q&A and were answered there.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
I have a simple test web application with a single Default.aspx page with 2 buttons having the following handlers:
What surprises me is I expected to get the same session ID between successive clicks of either buttons but I get different session ID's each time. I expected this to be different clicking from 2 different iexplorer instances and more so between an iexplorer and chrome / firefox.
Also, from this experiment, it is obvious that HttpContext.Current.Cache is shared among clients as I get the values inserted from prior requests from different browsers.
protected void _btnAdd_Click(object sender, EventArgs e)
{
int cacheCount = HttpContext.Current.Cache.Count;
Random rnd = new Random();
HttpContext.Current.Cache[cacheCount.ToString()] = TextBox1.Text;
int intLessThanCacheCount = rnd.Next(cacheCount);
_lblCacheIndex.Text = intLessThanCacheCount.ToString();
_lblCacheValue.Text = (string) HttpContext.Current.Cache[intLessThanCacheCount.ToString()];
lblSessionId.Text = HttpContext.Current.Session.SessionID;
ViewState["Value"] = TextBox1.Text;
}
protected void _btnGet_Click(object sender, EventArgs e)
{
int cacheItems = HttpContext.Current.Cache.Count;
Random rnd = new Random();
int intLessThanCacheCount = rnd.Next(cacheItems);
_lblCacheIndex.Text = intLessThanCacheCount.ToString();
_lblCacheValue.Text = (string)HttpContext.Current.Cache[intLessThanCacheCount.ToString()];
lblSessionId.Text = HttpContext.Current.Session.SessionID;
lblSessionValue.Text = ViewState["Value"].ToString();
}
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Session ID will be different for different browsers, why did you expect to see the same?
Session is recognized by user's cookies.
HttpContext.Current.Cache is shared across application domain (MSDN[^]). If your IIS is configured to run as web farm (it can use not one process to serve requests) - cache object will be different for each process. In any other case it is the same.
Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.
|
|
|
|
|
No I didn't expect the Session ID to be the same for different browser programs. In fact I only expected the Session ID to be the same on the same browser instance (not even for the same browser program but different instances) between each postback but it's not. I half-expected the Session ID to be the same though in the same browser instance from different tabs.
----------------------------------------------------------
Lorem ipsum dolor sit amet.
modified on Monday, June 21, 2010 1:06 AM
|
|
|
|
|
If you're not actually storing anything in session, the server won't bother persisting it. So you'll get a different sessionid each time.
|
|
|
|
|
Hello everyone!
I'm implementing a javascript function that must show a modal dialog with Yes-No-Cancel buttons and return the selected value.
I have found a workaround for IE, Firefox, Chrome and Safari (using window.showModalDialog ).
Does anyone know any solution for Opera? It doesn't support showModalDialog
Or, as a variant, maybe there's any implementation of noop for Opera? (non CPU-intensive loop)
The problem is that I can't show a modal dialog in such way:
show(success: function() { ... });
My function is called from external javascript component, and this component is expecting the result in synchronous way.
Thanks in advance.
Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.
modified on Friday, June 18, 2010 4:02 PM
|
|
|
|
|
showModalDialog is not part of any web standard. I would look into the way that the AJAXControlToolkit ModalPopupExtender does it by showing a div with a high z-index that covers the page and captures any events that would normally go to the items behind it.
And noop usually means "no op" i.e. no operation performed/do nothing and has nothing to do with loops.
|
|
|
|