|
benams wrote: but I just can't find a tutorial that well covers those issues...
May be you didn't try enough. When I search for AJAX life cycle in Google, the very first link answers all your questions.
1, 2 - A WebForms based page that uses Microsoft Ajax raises the same server life-cycle events as an ASP.NET 4 Web page and in addition raises client life-cycle events. The client events enable you to customize the UI for both postbacks and for asynchronous postbacks (partial-page updates). The client events also help you manage custom script components during the lifetime of the page in the browser.
Ref: Ajax Client Life-Cycle Events[^]
So yes and no (in case of a postback) for question 1 and 2 respectively.
3 - There is an exaple in the given link which should clear this query as well.
I suggest you to read the article in the given link. It will help you clear your doubts and build a good fundamental so that you can proceed with complex AJAX application.
Cheers!
Ankur
..Go Green..
|
|
|
|
|
Hello guys,
How can I get a string with parameters from the resource file directly in aspx?
I have a resource string like: "Enter values from {0} to {1}"
I know that from the code behind I can get the string like:
string.Format(Resources.Messages.Interval, "10", "100");
But I want to use the resource string on the aspx, like:
<asp:label id="Label1" runat="server" text="<%$ Resources:Messages, Interval %>
How can I set the resource string parameters from the aspx page??
thanks
<div class=" signature"="">Peterson
|
|
|
|
|
Why not use String.Format in your label?
<asp:Label ID="Label1" runat="server" Text='<%=String.Format(Resources.Messages.Interval, "10", "100")' />
Note the use of single quotes for Text , which should prevent confusion with the double quotes in the function.
|
|
|
|
|
hi,Frndz
I m developing my BCA LAST SEMPROJECT ON MOTOR DRIVING SCHOOL. In project at one page i have used file upload control and i m uploading there image and i want to preview image as the user select from the file browse so pls help me urgent
|
|
|
|
|
You have done the following incorrectly:
a) CAPTITAL LETTERS = SHOUTING, so don't use them.
b) Text speak, such as hi,Frndz =
c) You haven't clearly stated what you have done and what is wrong.
d) You have stated a requirement, but not what you have do to fulfill it, so we can only assume you want it done for you by us: we won't.
e) The code is only urgent for you, for me it matters less than that stain in the sink I've been meaning to sort out. Saying it is urgent is rude.
Please read the FAQs, all the do's and don'ts are there.
|
|
|
|
|
You forgot
f) Keep the subject line brief, but descriptive.
Scott
|
|
|
|
|
then , in that order!
|
|
|
|
|
Fernandez isn't here at the moment, he is buying a dictionary to work out what a BCA is.
It is nice to see that Pills help you in an urgent manner.
The requirements are nice, but strangely you omitted the part that shows us what you have attempted to do to solve the problem.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Dalek Dave wrote: you omitted the part that shows us what you have attempted to do to solve the problem.
They were in the message, but they self destructed after 10 seconds.
|
|
|
|
|
Member 7402166 wrote: ....so pls help me urgent
It's really terrible thing that you are laughing when your work is urgent.
|
|
|
|
|
sir , iam using asp.net with c#.
how to send sms from asp.net can you give me example which help me.
|
|
|
|
|
developerit wrote: how to send sms from asp.net
ASP.NET is a technology. You can't use it to send SMS. You can however use a language, such as C#. There are plenty of examples easily found here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I want to detect if a user has closed his ie browser using the [X] button on top right.
How to achieve it in ASP ?
Thanks in Advance.
|
|
|
|
|
You can't really achieve it with ASP.NET. You can however capture the onbeforeunload event with JavaScript, though it is not 100% accurate.
http://blogs.x2line.com/al/articles/756.aspx[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Hello, im trying to build a gallery using C#.
Ii've made a Listview showing photos from database as thumbnails in a "kind of a film strip", including a pager.
What i need is that when i click on a thumbnail inside the ListView, to show the large photo in a image control outside the listview. this should work using the selectedIndexChanged event, i have no idea what to do in there, i will appreciate any help since i searched a lot online and didnt find anything helpful.
thank you,
Basil
|
|
|
|
|
Hi Farraj,
As far as i know,
you can use CSS[^] to get this functionality.
There is some example and tutorial on Google[^].
if ur intention is only want to display what u selected.
u can do that easily with CSS without post back.
give all image control from list view to same CssClass name.
then from css style sheet. change the image of outside frame.
you can get a lot of jQuery[^] example for this..
Hope it works!
|
|
|
|
|
Hi,
I wanted to have link button with name from the function as its value but couldn't figure it out how to do this. right now I am having the code like this but it doesn't work.
<asp:TemplateField HeaderText = "Name" >
<ItemTemplate>
<asp:LinkButton ID="btnViewDetails" runat="server" Text="<%# GetName(DataBinder.Eval(Container.DataItem, "First").ToString(), DataBinder.Eval(Container.DataItem, "Last").ToString())%>" OnClick="BtnViewDetails_Click" />
</ItemTemplate>
</asp:TemplateField>
Error is:
The server tag is not well formed.
I need to have link button text field from some functions. Is there any way to get this? any Ideas??
suchita
modified on Tuesday, March 15, 2011 10:23 AM
|
|
|
|
|
Hi,
Try this
<asp:TemplateField HeaderText = "Name" >
<ItemTemplate>
<asp:LinkButton ID="btnViewDetails" runat="server" Text='<%# GetName(Eval("First").ToString(), Eval("Last").ToString())%>' OnClick="BtnViewDetails_Click" />
</ItemTemplate>
</asp:TemplateField>
"The server tag is not well formed." error will be solved.
|
|
|
|
|
thanks.. I already solved this...
suchita
|
|
|
|
|
Hi,
In IE 8 session is shared between ie windows even when I open a new IE instance. This is going to create big issue with my application as I want diffrent instances of IE to have diffrent credentials.
Anyone faced this issue so far?
Any idea how to fix it via ASP codes?
|
|
|
|
|
This is a known [issue]. There are benefits and headaches for the session sharing. Let us see one of the benefits. Say your users have to login in order to access your application. Now a user wants to open one of your links in separate tab. If the session is not shared then they have to login in in order to access it, Right? So, sharing the session is not bad in this scenario.
On the other hand, you may have a valid reason for not sharing session. First try a simpler method. In IE click on the File Menu and select Open With New Session. If this is going to solve your problem, then instruct your users to use that technique. If that won't work for you, there first you need to understand this is happening at the client Browser side, so your control becomes very limited. Using Session or Cookie won't help as it will be shared. How about setting a hidden field with some value. Say in the beginning you start it off with a known value, may be a guid then you save it into dictionary or map . Then you can check if it exists and you know whether this is new or already visited page.
|
|
|
|
|
Thanks for you reply Yusuf. But I'm having this problem with IE6 as well.
My client does not want session sharing
|
|
|
|
|
guys, i have made a control with a modalpopupextender and several updatepanels.
on OpenDialog method i call
document.getElementById('<%= SomeLinkButtonWithinThePopupControl.ClientID %>');
and this calls __doPostBack('<%= SomeLinkButtonWithinThePopupControl.UniqueID %>','');
but this doesn't call the server to update the panels
i have this control on several pages and it worked properly
Help people,so poeple can help you.
|
|
|
|
|
Hi,
I have one button inside the itemtemplate under grid view.
<asp:TemplateField HeaderText = "Test">
<ItemTemplate>
<asp:Button ID="btnTest" runat="server" Text="select"/>
</ItemTemplate>
</asp:TemplateField>
Now I want that button click in code behind. How do i get that ?
suchita
|
|
|
|