|
Hi friends
How can I reload an image in my webpage with ajax?
thanks
|
|
|
|
|
Well, if you just want to reload the same image, you don't really need AJAX, just a timer. If you want to change the image, get a new path back and assign it to your IMG tag.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want reload an image with a same pass, but image is changed. But I don't want reload all of my page. Do I need ajax?
|
|
|
|
|
hi
i want to get the posted url...
I have one page Which i called from many pages. on cancel button or on Save button i want to go back page from which i have called ..
example:
if i m on Default Page and go to Login..then After Login it should be go back to Default..
means i want code to get Posted Url which i got from system variables or function not userDefined code
Jintal Patel
|
|
|
|
|
Hi Jintal,
You can try this..
Request.UrlReferrer.AbsolutePath
VIJ
|
|
|
|
|
hi
thanks..i got the solution
Jintal Patel
|
|
|
|
|
You should check the value that you get from the referrer key. Some browsers/routers/antivirus-softare removes the referrer value from the html header, so you should handle the case when the referrer is empty.
---
single minded; short sighted; long gone;
|
|
|
|
|
Here experience counts
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Well said Guffa. Got my 5.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I want to convert the string into german currency format eg.
in US 21,666.56 in German 21.666,56
in US 177.66 in German 177,66
please revert me with a good solution.
vijay
vijay
|
|
|
|
|
Create a CultureInfo object for german, then use that when you convert the value to a string.
When converting a number to a string, a CultureInfo or NumberFormat object is always used. If you don't specify any, the default culture is used.
---
single minded; short sighted; long gone;
|
|
|
|
|
THANKS FOR REPLY,
I DID IT BUT I NEED IT TO BE SORTED ON THESE FIELD BUT AFTER CONVERTING I AM NOT GETTING THIS AS ...
123.32
321.12
1123.43
GETS SORTED AS
123.32
1123.43
321.12
VIJAY
|
|
|
|
|
Please don't write in all upper case. It's tiresome to read.
You have to sort the numerical values. If you convert them to strings and then sort them, they will be sorted as text, not by value.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a web user contol(contains a dropdown-list) in the form.The dropdownlist get populated after the axecution of form load.i have to pick the value of dropdownlist before the dropdown-list loading gets completed.
I think , i should write the code on form events.But i don't know , on which event , i should write the code.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Instead you can do one thing create a property in your user control such as selectedValue or index like here you should write code for dropdown selectes value/index
Call this property from your page in page Load event
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
but the control function calls itself after the fom load event gets completed.i have properties there in the web control.i am repeating the question----the web user control loads after the execution of form load.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: but the control function calls itself after the fom load event gets completed.i have properties there in the web control
here what you want to say i am not getting
yes first form page load will occure then usre control page load will occered
Here i am explaing in deatil now
create a property in the user conterl
lets
public sting SelectedValue
set{this.dropDownlistId.Selectedvalue=value;}
get {this.dropDownlistId.SelectedValue;}
now as you said you want to show selected option as the page gets loaded now
call this property from page load or when you want to show changed dropdown value
this.UserControlId.SelectedValue="GiveValueofDropdown item"
you can use index also instead of value
Again if you areconfused the please read this article that will explain all events
http://www.codeproject.com/useritems/lifecycle.asp[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
on page load it is giving the index = -1.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
When are you setting the selected index of your user control dropdown list ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Do you mean that you want to pick a value from the Dropdownlist on the fly(when it gets loaded - On DataBind). If yes then you can't. Dropdownlist doesn't have such an event that supports this requirement.
Regards - J O N -
|
|
|
|
|
ok let me repeat the problem.i have a dropdownlist in the web-user-control.
the webusercontrol lies in the form.After the execution finished, the dropdownlist gets populated.Now my question is how can i detect the selected value of the dropdownlist at the form load(I have selcetd value and selected index propeties in the web user control)
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
try this code in the form load...
CType(UserControlID.FindControl("DropDownListID"), DropDownList).SelectedValue
Regards - J O N -
|
|
|
|
|
how can i make aspx page just like a word pad so that user can write some text,edit the text,change the font ,font size
|
|
|
|
|
you need to write a component in .NET which will work similar to a simple word processor.
Regards - J O N -
|
|
|
|
|