|
|
|
hi guys,
How to invoke Asynchronous web service from asp.net web application. through delegate we can achieve the Asynchronous call.
can u give some example or any URL?
Thanks & Regards
velu
|
|
|
|
|
|
Thanks Deepak. i ll gothrough and come back.
d.sengottuvelu
|
|
|
|
|
i have an image control in item template of a datalist and file upload control in edit item template. if i upload a picture, for first time, the image control show the new image. but from onwards if i upload a new picture, even though its uploaded to server and the path is shown with new image name, it shows the old picture untill i refresh the page. what would be the solution for this problem. If i disable cache will it work, if yes how to disable cache. The whole thing is in an .ascx (user control) page.
minah
|
|
|
|
|
fthavha wrote: Disable cache
There is nothing like disabling cache. With so many cache tiers at IIS, Proxy, Upstream servers and Web browser level, you can not expect a perfect disabling of cache though. You can of course direct the element to expire from cache or not to be cached by a suitable (pragma) or other directive.
|
|
|
|
|
so please tell me what should i do to show the new images
|
|
|
|
|
|
|
I have a page which adds a record to the database when I Click the submit button and it stays in the same page showing all values from the database in a datalist. My problem is that if I refresh the page, the last event fired , that is btnSubmit_Click is fired again and yet another a record is added to database. What will be the solution. Thanks in advance
minah
|
|
|
|
|
|
If i debug, i can see it going to submit_click on refresh of the page (ie, the last event fired. if it was another event which was fired before refresh, then that event will be fired on refresh)
|
|
|
|
|
If i press F5 the event which was fired is fired again.
|
|
|
|
|
I have a form with submit button as an asp image button. My problem is that if i click the button n times the event is fired n times. so how to disable button during the post back. I tried onclientclick="this.enable =false; return true", but didnt work. Is there any other solutions
minah
|
|
|
|
|
You can actually knock off the submission ability on postback. ImageButtons don't support that Enable right?
|
|
|
|
|
i didnt get what you mean by submission ability. I tried this.disabled=disabled also
|
|
|
|
|
Hi! in GridView, in a certain cell, there is a child control. it may be a LinkButton or A Label or a Button web control. i represent rffernce of this child control in DataBound event as:
Object O = e.Row.Cel[0].Control[0];
now i want to know type of the web control object O have.
how can i do this?
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
You can use the is operator to check for types:
if (O is LinkButton) ...
You can use the as operator to get a reference only for specific types:
LinkButton b = o as LinkButton;<br />
if (b != null) ...
---
single minded; short sighted; long gone;
|
|
|
|
|
Wouldn't a NULL check and then calling GetType() tell you?
|
|
|
|
|
I am using ReportViewer control in Update panel, when run the application i can't use some commands on report viewer tool bar like Print and export.
why it is so ?? is ther any solution available ???
And also tell me is there way to override these commands.
Thanks in Advance
|
|
|
|
|
hi, i need to create a application where user will select a indian languages from drop down, and after that all content of page should be displayed in selected language and he will enter the data in selected language. Please provide help.
ASDFASDF
|
|
|
|
|
earlier i was using
sqldataadapter = new SqlDataAdapter(cmd);
sqldataadapter.fill(dataset)
to get data from database, and use to bind it to datagrid. but as i do not use this datagrids for editing. i want to use datareader instead of dataset.
The number of columns will not be fixed so i can not create datatable with fixed number of columns and fill it by iterating through datareader.
i do not want to use ' sqldataadapter.fill(datatable); ' either.
every suggestion welcome ..thanks in advance.
pallavi
|
|
|
|
|
Pallavi,
Firstly you have to provide structure to the datatable i.e. column names and datatypes....
Once you have the structure set you can loop through your datareader and add one row at a time to your DataTable.
You can provide structure to your datatable even after you have data in your datareader!
Gautham
|
|
|
|
|
thank u gautam .
but i have three different querries in switch case . and i am going to bind to datgrid according to selected criteria.
so, according to u may i hv to make ready different datatables with the different structures? isnt it there any easy way as--
datatable= (datatable)datareader ; (kidding. but i want it as flexivble as dataset).
thank u.
pallavi
|
|
|
|