|
Hi Friends,
How are you? i have one doubt in yahoo mail website will have advertisement toolbar in which lots of advertisements will have and change for a second kindly tell me how to do like that?
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
U hav to use AdRotator control for tat. First u need to store the list of images as binary in the database. Then u need to convert it from binary to image and make it available in ur adrotator control. U can use the impressions property of the control for an ad to be available in seconds
The most difficult phase of life is not when no one understands you ; It is when you don’t understand yourself.
|
|
|
|
|
Hi Raam,
Thanks for reply,i have one doubt how to store list of images as binary in databases and how to retreive and display in adrotator control.
Take Care
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Use BLOB fields in your table to keep binary information.
|
|
|
|
|
Hi,
Can anybody tell me any server control which can be alternative to iframe, for that we are give src from codebehind
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
There is no alternative for IFrame in ASP.NET.
|
|
|
|
|
thnx
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
pekhaleyogesh wrote: for that we are give src from codebehind
No control.
pekhaleyogesh wrote: for that we are give src from codebehind
But you can do it using Inline Coding with a help of a public variable
<iframe src="<%=MY_URL %>">
</iframe>
Where MY_URL is a public variable which is set from the CodeBehind.
|
|
|
|
|
thnx for that, can u have any information abt how we can develop tabstrip in asp.net?
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
pekhaleyogesh wrote: how we can develop tabstrip in asp.net?
Do you want to develop it as a Control try this[^]
I have implemented this type of Tab view using ImageButtons and MultiView control. If you use Microsoft AJAX, then it would be perfect. This would be specific for a particular page.
|
|
|
|
|
Hi here is the code in my page
Dim attachment As String = "attachment; filename=Contacts.pdf"
Response.AddHeader("content-disposition", attachment)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/pdf"
when i try to open it, it opens Acrobat Reader but the Acrobat Reader gives me an error in the form of a message box with this message "Acrobat could not open 'PressRelease[1].pdf' because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded)."
|
|
|
|
|
sandhya14 wrote: Dim attachment As String = "attachment; filename=Contacts.pdf"
Response.AddHeader("content-disposition", attachment)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/pdf"
Hi,
instead of aboce code try it. ITs in C# so change according you requirement.
Response.ClearHeaders();<br />
Response.ClearContent();<br />
Response.ContentType="application/octet-stream";<br />
Response.AddHeader("content-disposition","attachment; filename=" + saveFilename);<br />
Response.WriteFile(savePath);<br />
Response.End();<br />
And tell if it helps you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
still it is giving the same error.....here is my full code.....
Response.ClearContent()
Response.ClearHeaders()
Response.Clear()
Response.Buffer = True
Dim attachment As String = "attachment;inline; filename=Contacts.pdf"
Response.AddHeader("content-disposition", attachment)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
' Response.ContentType = "Application/pdf"
Response.ContentType = "application/octet-stream"
Response.Charset = ""
Dim sw As New IO.StringWriter()
Dim htw As New HtmlTextWriter(sw)
GridSelected.RenderControl(htw)
Response.Write(sw)
lblmsg.Text = ""
Response.End()
Response.Close()
am trying to export the data as pdf......
|
|
|
|
|
sandhya14 wrote: am trying to export the data as pdf......
Is this possible with the above code?? I think she is trying the Export to Excel methodology.
sandhya14 wrote: Response.ClearContent()
Response.ClearHeaders()
Response.Clear()
Response.Buffer = True
Dim attachment As String = "attachment;inline; filename=Contacts.pdf"
Response.AddHeader("content-disposition", attachment)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
' Response.ContentType = "Application/pdf"
Response.ContentType = "application/octet-stream"
Response.Charset = ""
Dim sw As New IO.StringWriter()
Dim htw As New HtmlTextWriter(sw)
GridSelected.RenderControl(htw)
Response.Write(sw)
lblmsg.Text = ""
Response.End()
Response.Close()
Hey Sandhya, there many third party tools out in the market, try them to export to PDF. The above method will not help you.
|
|
|
|
|
Hey,
u read this link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sandhya14 wrote: Dim attachment As String = "attachment; filename=Contacts.pdf"
Are you specifying a full filepath there? It doesn't look like that. It not going to automatically know where in the filesystem it is. Supply a full valid filepath to that pdf.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
am trying to export ,,,means to store the data somewhere inside the sysytem....
while click on the export button it will give the download window,whether to save or open the file...
if i say save,it will save the data with the file name(Contacts.pdf)in the selected path...den how
can i give the full path before storing the data?
|
|
|
|
|
MailMessage mm = new MailMessage();
mm.To = txt_Email.Value.Trim();
mm.Priority = MailPriority.High;
mm.From = "mycompname@mydomain.com";
mm.Subject = "Hi "+ txt_FirstName.Value.Trim() +" , Thank you for registering.";
mm.BodyFormat = MailFormat.Html;
mm.Body = sbMail.ToString();
But this is not working for yahoo.com,co.uk, and Rediffmail.com.rediff.com.
the mail is bouncing back and in yahoo goin in bulk /Spam Folder.
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
Which is your SMTP server ? Is it "localhost" ? Try authenticating your SMTP server before you send. Check this[^]
|
|
|
|
|
There is no code...
its not working....
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
ViReNdrA KuMaR KoHli wrote: mm.From = "mycompname@mydomain.com";
Please tell me you are actually replacing that line with a valid SMTP server.
If it's bouncing back it's because you don't have access to the SMTP server. If is's public mail that's probavly because it doesn't support it. As for the yahoo, if it's going in the spam folder... well than it is working.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hello Genious..
I have some requirement like if i open pop up window then it must not blocked by pop blocker in any browser and it must be open regardless of Browser settings..
I am not much sure but some java scripts can be used for this stuff...
Any Idea...?
|
|
|
|
|
Pop up controllers works on the client side and ASP.NET on server side. So it can't be done. I don't think that JS can block pop up blockers since it will be a security violation.
|
|
|
|
|
rain raj wrote: Hello Genious..
Flattery will get you everywhere.
There is no blanket way to avoid popup blockers, many of them are configurable as to the users needs. However, in general you should only open a new window in response to a user event (such as clicking a button/link). You should avoid opening a new window automatically (such as in the page's onload).
|
|
|
|
|
Hi all,
In our application we are generating an excel file with 5000 + records which are fetched from DB, and its taking some time to generate and screen looks Idle (~ taking 15 to 20 minutes). and finally displaying "Connection timed Out error".
Now Client requires the process of generating excel to be done in background..So as soon as the "Generate Excel" button is clicked user should be redirected to the Home page and the download process for Excel should work in Background.
How to do this in Background???
Note:- In our Application we are using the StateServer to maintain Session
Can any body help to acheive this.
thanks in advance,
Eswar.
|
|
|
|