|
What do u mean by embedding? Do u mean creating a PDF file on any user control event. Like Print button, when hit should create a PDF control.
Let me know if i understand you correctly
|
|
|
|
|
Just use <iframe src="yourPDFfilenamewithPath.pdf" width="500" height="500" /> and the web browser will automatically load the pdf in the iframe.
or you can create a user control[^]
|
|
|
|
|
ya that did the trick!! thanks so much for the help!!
|
|
|
|
|
How do u send attachments by mail in VB.NET.
Do we need to save them temporarily and then delete afterwards?
|
|
|
|
|
hi FEMDEV!! to send attachments try this!!
string AddAtt = "C:/MyFile.txt";
MailMessage message = new System.Net.Mail.MailMessage();
message.Body = strBody;
message.Subject = strSubject;
message.From = new MailAddress(strFrom, Txt_NameOf.Text);
message.To.Add(new MailAddress(strTo, Txt_NameTo.Text));
message.Attachments.Add(new System.Net.Mail.Attachment(AddAtt)); what do you mean with save them temporarily and then delete?? save where? and why save and then delete?? ... good luck!
|
|
|
|
|
Hi
I have a web page that regularly refreshes on post back, and all of this works fine.
However, a user has made some suggestions to enhance the page, which I need some help with:
1) There are 3 asp.panels on the page, which are scrollable vertically. When the page refreshes, the scroll position returns to the top. The enhancement is to maintain the position of where ever the scrollbar is on postback. How do I keep the scrollbar position on post back?
2) Within each of the panels are dynamically added web controls. These web controls contain gridviews, which are themselves contained inside div tags. These div tags can be hiddened and made visible by an image button. This hidden and visible state is actioned by some javascript on the page. Again, the user has asked how it is possible to maintain the state of these div tags on post back, i.e. those that are closed and those that are visible. Currently, the state is on postback for all the div tags to be visible. How do I maintain the state of the visibility of a div tag during postback?
Thanks
|
|
|
|
|
You need to enable smart navigation and maintain scroll position on your page such that after complete postback it maintains the scroll.
If its a AJAX requst then you need to handle it in Ajax BeginRequest handler and EndRequest handler, where you track the scroll position before partial update and restore it after partial update is complete.
In order to maintain the states of Div tags, you have to maintain 'hidden' field. Update the hidden field and store the values such that you can track which div tag needs to be visible. Restore the state of div tag during postback based on the hideen value field.
|
|
|
|
|
Hi
Thanks for your reply, but do you have any examples I could follow on the scroll bar and div tags?
Thanks
|
|
|
|
|
I am cinderlla.i want hotel management system project in .net
Please help me.
|
|
|
|
|
I would be glad to help. Contact me and we can discuss rates. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
A rate of 15 mins per class (working) would be fine. 
|
|
|
|
|
Thanks for the reply. Send ur email id please .It will be easy to discuss
|
|
|
|
|
Click the email link I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I too am up for it, if you find Mark's work rates too high! 
|
|
|
|
|
|
Hi, i have published website.
At the time of running the site it through an error as follows,
Invalid at the top level of the document. Error processing resource 'http://localhost/CompiledSite/SamplePage.aspx'. Line ...
This is a marker file generated by the precompilation tool, and should not be deleted!
^
Error: Invalid at the top level of the document
why it comes when i run my website at debug mode it runs well but after publishing it, it throughs an error.
|
|
|
|
|
Check the web.config file to make sure it hasn't been corrupted. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
no yaar the web config is ok my website run well in debugger
|
|
|
|
|
But you said the problem is when you publish it right? That is not the same as debug. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hmmm
but i checked web.config file there no any problem then why this error comes
actualy project get published successfully but when i run,it shows this error.
|
|
|
|
|
|
Hi,
I have a textarea. This textarea is getting some records from the database. The data also contains some hyperlinks and it should be clickable, say for example i am having a text as below.
To download the content, click here.
Now click here is a hyperlink redirecting to another site when clicked.
now this this link is not appearing as a hyper link in my textarea.
Instead of that it is appearing as a plain text in my text area without the actual hyperlink.
How it is possible to get click here text to appear as hyprerlink in my textarea.
Regards,Pranav Dave
|
|
|
|
|
Hi,
Use NavigateUrl property for the Hyperlink control.
regards,
kannak.....kannak
|
|
|
|
|
As in a large textbox where you're entering text?
Probably not with a simple textarea then. Could you elaborate a bit more please.
|
|
|
|
|
Try first saving the contents in HTML in the database. so whenever the information is retrieved it will automatically display the content and embed it automatically with HTML tags.
|
|
|
|