|
Hi,
I use a xmldatasource to display news from another site on mine. But in the description there is an image that i dont know how to retrieve? I get a "empty" image icon.
Can anyone help out? I use, XPath="rss/channel/item" and the image is under description i think..
thanks in advance
Thommie
|
|
|
|
|
I found one useful link[^] for the same.
It contains example to retrieve image from RSS feed.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
couldn´t get it to work with XPath like i retrieve alla the rest information, any ideas?
|
|
|
|
|
How to append a new line to a richtextbox in c#.net
|
|
|
|
|
what happen to your old friend new line character '\n'
|
|
|
|
|
RichTextBox.Text = "1st line<br/> 2nd line";
makhaai
modified on Saturday, July 24, 2010 3:44 AM
|
|
|
|
|
Shouldn't it be <br /> instead of </br>?
|
|
|
|
|
Sandeep Mewara, its a mistake. I will Update that.
|
|
|
|
|
Looks like you didnt like me pointing it.
Chill, just told you so that you can rectify it.
|
|
|
|
|
I am not. I like doing something [posting,asking..] here, other than any other Programming forums. because if I do anything wrong others [like u] will correct me. anyway thank you Sandeep Mewara.
Raju.M
|
|
|
|
|
RichTextBox.Text += "text to append";
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
You can also try following line for newline in richtextbox.
richTextBox1.Text = "Some text " + Environment.NewLine + "Again some text.";
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
To All,
How to use RenderControl() method with Ajax Controls?
Thanks and Regards..
|
|
|
|
|
RenderControl[^]
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Hi
I want to open a audio file on linkbutton click event...i boud the file name on linkbutton when we press on the button i actally want to play that sound file.my linkbutton is in datagrid.and audio file is xyz.osf formate..
Please help me
|
|
|
|
|
Try little googling[^], you will find your answer.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi To All,
Can any body help me how to print a web page using ASP.NET?
Thanks and Regards...
|
|
|
|
|
|
Thanks a lot...It helps...!!!!
|
|
|
|
|
My Pleasure.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hello there
I have been spending almost half-a-day to get this problem solved, but could not even find a single article that would help me. I wonder whether nobody else has faced this problem.
Okay, my webpage involves creating excel files. My download button has code like this
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=clientcopy.xlsx");
HttpContext.Current.Response.TransmitFile(Server.MapPath("App_data/" + Viewstate["FileName"]));
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.Close();
HttpContext.Current.Response.End();
Alright. this works fine. The problem is, After downloading I want to make Viewstate["FileName"] to be null. But whatever I do, during the next post back after the filetransmit, the Viewstate["FileName"] still retains the old value and refuses to get updated to null. I tried writing the Viewstate["FileName"] = null; at every possible place in the above code - at the begining, in the middle and at the end after response.end(). BUT no way
Can someone help on how to modify the viewstate after a file transmit???
Note:
=====
My webpage has an update panel. Button "GO" displays a report in the update panel based on some selections outside the updatepanel. Button "ADD" keeps on adding the displayed reports to an excelfile until Button "download" is clicked and excelfile is downloaded. "GO" and "ADD" triggers partial postback and "download" triggers fullpostback.
thanks
Kit
|
|
|
|
|
You may want to read this msdn[^] article about view states.
You may have to override the SaveViewState() method on the page and set the value to null. Don't forget to call the base.SaveViewState() through!
|
|
|
|
|
Try this
HttpContext.Current.Response.TransmitFile(Server.MapPath("App_data/" + Viewstate["FileName"]));
Viewstate["FileName"] = "";
HttpContext.Current.Response.Flush();
|
|
|
|
|
ViewState is the state of the "View", or in other words the state of the page displayed in the browser. Since the transmission of the file doesn't change that view it wouldn't change the ViewState. If you want something that can be changed with the file transmission you need to use a data location that can be affected by it. I suggest setting a cookie.
|
|
|
|
|
Thanks for the replies, guys.
@Yusuf: The link seems to be really good and informative. will go thro it. thanks. As a quick try, I tried overriding the SaveViewstate function. But that didnt help.
@Prosanta: It didnt work either. As I mentioned earlier I had placed the code at every possible location
@Gray: I think i will try storing it in the session. What say?
Cheers
Kit
|
|
|
|