|
yes..My problem is i want to open a pdf file in a browser but the filename of the pdf contains "#". Are there any alternative ways in opening it on browser?
|
|
|
|
|
Why does the filename present a problem ? Where is the pdf coming from ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You need to encode the URL in that case. Because # is an anchor symbol in the URL I guess.
Apurva Kaushal
|
|
|
|
|
Is a # allowed in a filename ? You view all PDFs the same, by passing them to the browser with the right content type so the browser knows how to open the data.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yeah that is the problem.It will be easy if i just passed the filename however on my case the filename of the pdf contains #. Are there any alternative ways so i can view the pdf in browsers?
|
|
|
|
|
rj_21_2003 wrote: How do I view pdf files in asp.net having a character # in its filename for example myfile#.pdf?
Try to encode the URL. When browser gets myfile#.pdf , it will look for a anchor tag with the name specified (in page links).
|
|
|
|
|
Exactly the same which I mentioned at the same time....
Apurva Kaushal
|
|
|
|
|
|
Thanks Apurva Kaushal and Navaneeth. URL encoding works.. Thank you very much
|
|
|
|
|
scroll bar moves up as the image changes in the addrotator.what should be done in order to keep that stationary.The images are filled dynamically in XML page.
|
|
|
|
|
This is because when the image changes, the page postback and your browser window is refreshed.
so to avoid that you should use the AJAX Update Panel Control. and set the trigger of Update Panel. and after that your scroll bar will be not affected by image changes in addrotator.
you can find the video tutorial on ajax.asp.net website.
|
|
|
|
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:AdRotator ID="AdRotator1" runat="server" Target="_self" Height="258px"
Width="150px" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
<asp:Timer ID="Timer1" Interval="10000" runat="server">
</asp:Timer>
this is what the code i have used.but even am fcing the same problem.
Thanks
|
|
|
|
|
Now it seems like your web browser is not running the java scripts.
are you using firefox ? or check that IE has enabled javascripts. or try disabling the antivirus program.
because that code just working fine for me.
Or try to copy the code into some another test project and run.
|
|
|
|
|
Hi,
Thank you,for the suggestion.will try out what you have said.
Regards
|
|
|
|
|
Hi I have a problem in my datagrid. There are several word file are present in a specific table.
And this word files have their id in the table. My requirement is that in a datagrid I have to show those file as a link button in a datagrid cell.
mean when i will click at that link it will automatically open that attached document file.
Any one can provide the exact code for it should be appreciated.
Arun Sahoo
|
|
|
|
|
|
Hey man!,I know I m posting it for second time. Bcz i didn't get the answer for it.
U got it.
Arun Sahoo
|
|
|
|
|
Then you should have discussed it in the same thread inspite of creating a new.
Apurva Kaushal
|
|
|
|
|
|
Implement it in Item template column
<a Target="_blank" href='filepath' ></a>
Parwej Ahamad
|
|
|
|
|
Thnxs for answering it.
But can u give some more idea about it. Mean let i have a dataset which containt those file. So now tell me how can attach it to datagrid cell as a link?
Arun Sahoo
|
|
|
|
|
What he was mentioning is to create a template column and put the hyperlink control in it. Now you can assign whatever you want to that control.
Apurva Kaushal
|
|
|
|
|
In my application, i have a 2 dropdowns , textbox and checkbox. On select of checkbox,
I should enter enter value from first dropdown and second dropdown and also a value can be entered in the
textbox.
The checkbox is for default value, if it is checked, I should enter a value to textbox.
Everything works fine now. But when i enter these values and click save, it takes value from first and second dropdowns
and saves to database. I need the textbox value to be entered into grid and say the value in grid should display as follows
Example :
if i select customername from first dropdown
and customeraccountname from second dropdown
then check default checkbox, enter value in textbox as 24
the grid value saved should be displayed as
Column 1 Column2
-------- --------
Customername 24[Default]
The second column value is displaying as Customeraccountname only....
Any help would be thankful...
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
sajan ss wrote: ASP.NET,C#.NET Programmer
Hmm.....
sajan ss wrote: Customername 24[Default]
I'm not sure I understand. You say it's saving fine, so what bit do you need to add ? The word default by the number ? What is it you're having trouble with exactly ? You've defined your need OK, but then you've said 'everything works fine now'. So, what's the issue ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I need the second column value to be displayed in the way I said.
It showing as
CustomerName and CustomerAccountName now....
I want it to be in
CustomerName and 24[Default]
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|