|
Thanks for your reply, but I am doing that. In my original message, I replaced the assignment portion of the code with "..." to save space and to not take away from the real issue, which is that the control does not maintain state across postbacks when the datasource has been changed.
I put a ticket into Microsoft, and they confirmed my findings. The problem is that they created the controls and put them out to open source, so they will not fix the problem.
|
|
|
|
|
I have an asp image control. And I have done the image zooming dynamically using javascript.
It worked perfecltly. But for very high resolution images image will flicker while zooming(in IE only in all other broswers there is no image flicker).
Locally there is a slight flickering only but after publishing my aapln there is high image flickering(IE).
How to avoid these image flicking in IE?
Pls help
Thanks in advance
|
|
|
|
|
Hi People,
I have a problem with AJAX enabled Listbox. The thing is, my listbox is generated dynamically at runtime. After selecting few items in it, if I do anything which cause partial postback (like clicking a button), the listbox index is reset to 0.
This is obvious because on each partial postback, the listbox is regenarating again.
I have done the coding for reseting the selected fields but it is not scrolling to the selected items automatically. User then has to scroll down manually to see if anything is selected.
Is there anyway I can scroll up/down into javascript for Listboxes. ScrollTo property only works for "window" element not "select".....
Thanks for any help.
Regards,
Anand Desai
|
|
|
|
|
AnandDesai19 wrote: ScrollTo property only works for "window" element not "select".....
It works with div's and grid too. I have done that in my project. Try setting the scroll's in the Ajax End request handler using javascript. It should work.
|
|
|
|
|
Hi,
I am using ajax for my existing VS 2005 Web application.
I have applied all the necessary modification to Web.config.
My application is working fine when we opening the page.
We are also providing Back and Forward links to user ( similar to browser Back and Forward for history) .
When user visits 2nd page, we are saving the generated HTML of first page into a java script variable .like below.
var html = document.frames[“MyFrame”].document.documentElement.outerHTML;
when user clicks on Back link we displaying the page from stored java script variable. Like below
var doc = document.frames[“MyFrame”].document.open();
doc.write(html);
Here we are getting error saying “Microsoft JScript runtime error: 'Sys' is undefined”.
Sys.WebForms.PageRequestManager._initialize('ctl00', document.getElementById('Form1'));
Thanks,
Salmon
|
|
|
|
|
salmonraju wrote: we are saving the generated HTML of first page into a java script variable
I'm sorry but this is horrendously stupid idea. This falls under the just because you can doesn't me you should rule.
Just navigate back to the page in question and let the rendering engine do what it is meant to. There are plenty of examples of using the back an forward buttons with Ajax
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Create AJAX enabled website to resolve this issue.
|
|
|
|
|
hi
i am using following code to export gridview to excel..but the generated excel file does not contain rows and columns as normal excel file ...
can any on e suggest a solution for that
here is my code
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
String savefile = heading;
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + savefile + ".xls");
HttpContext.Current.Response.Charset = "";
gv.RenderControl(htw);
HttpContext.Current.Response.Write(sw.ToString());
HttpContext.Current.Response.End();
|
|
|
|
|
use the below code in you ExporttoExcel function
using conn as new SqlConnection(Constring)
conn.open()
da=new sqlDataAdapter(query,conn)
da.fill(ds)
End Using
Dim Gridview1 as New Gridview
Gridview1.datasource=ds
Gridview1.databind()
Response.clear()
Response.Buffer=true
Response.AddHeader("content-disposition","attachment;filename=testfile.xls")
Response.charset=""
Response.ContentType="application/vdn.ms-excel"
Dim sw as new StringWriter()
Dim hw as new HtmlTextWriter(sw)
For i as integer=0 To Gridview1.Rows.Count-1
Gridview1.Row(i).Attribute.Add("class","textmode")
Next
Gridview1.RenderControl(hw)
dim style as String="<style> .textmode(mso-number-format:\@;}</style>"
Response.write(style)
Response.output.write(sw.ToString())
Response.Flush()
Response.End()
Imtiaz A.K
|
|
|
|
|
thanks for reply
i am new in asp.net and unaware in vb.net
pls give me code in asp.net.
Thnaks a lot
|
|
|
|
|
It is in Asp.Net only...
When u write code in ASP.net, it means you have to choose the language you prefer to code either vb.net or C# etc..
the code which i have send is used in asp.net application only...
and if u are using the C# as code behind then.. convert this piece of code into c# as we have many online converters...
paste the code they will give converted format in C#...
Regards
Imtiaz
Imtiaz A.K
|
|
|
|
|
thanx
it works as it is I previously return code for this........
|
|
|
|
|
Have you tried earlier solutions?
|
|
|
|
|
|
<A NAME="Anyname"></A>Your Text
<A HREF="#Anyname">Click Here</A>
The above page link works fine on Firefox and doesn't work on IE.
On IE something like this works -
<A NAME="Anyname">Your Text</A>
<A HREF="#Anyname">Click Here</A>
but i don't want "Your Text" to appear as same font as link i.e. A tag and that is the reason i want to use
<A NAME="Anyname"></A>Your Text
Any ideas??
Andyyy
|
|
|
|
|
|
|
AndyInUK wrote:
<A NAME="Anyname"></A>Your Text
<A HREF="#Anyname">Click Here</A>
I have been using the above method only in my applications. It works perfectly in Internet Explorer as well as Firefox. Please check well whether you are missing something.
And also what version of IE are you using?
|
|
|
|
|
AndyInUK wrote: i don't want "Your Text" to appear as same font as link
Then use CSS, as in Cascading Style Sheets, to set the style.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi
i have given a small functionality of sliverlight based in my website but when the website launched in client system , client system not showing sliver light functionaliy because of sliver light is not installed. i need to know whether user can view the functionality with out installing sliver light.
|
|
|
|
|
Hi,
This is not possible.
Regards,
Jamil
|
|
|
|
|
This is officially a stupid question.
How can someone possibly view Silverlight content without having Silverlight installed?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Not a stupid question, but a reasonably stupid response. I suggest a closer reading of the question before commenting on it.
They want to test for Silverlight being installed, and therefore probably show some alternative content if it is not.
How many times have we all done a similar test for JavaScript enabled? Admittedly, usually to show a message telling the user to enable it.
|
|
|
|
|
Hi
thanks you understood my question, but i am sorry all if i didnt raised it in a manner.
|
|
|
|
|
Your welcome.
It had to be detection of silverlight installed because otherwise the question made no sense. But then we get a lot of questions here that don't make much sense.
Glad I could help.
|
|
|
|