Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:714840
More Search Options
RSS Available
Matching Posts
File download code and hiding button
Hi protected void Button2_Click(object sender, EventArgs e) { Button1.Visible = false; System.IO.FileInfo file = new System.IO.FileInfo("d:/abc.pdf"); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); HttpContext.Current.Response.AddHeader("Content-Length", file.Length.ToString()); HttpContext.Current.Response.ContentType = "application/pdf"; HttpContext.Current
Posted to
Web Forms
(Forum)
by
abhijeet_dighe
on 10/26/2009
Re: File download code and hiding button
Hi I dont have page_load event. If I comment following lines: System.IO.FileInfo file = new System.IO.FileInfo("d:/abc.pdf"); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); HttpContext.Current.Response.AddHeader("Content-Length", file.Length.ToString()); HttpContext.Current.Response.ContentType = "application/pdf"; HttpContext.Current.Response.WriteFile(file
Posted to
Web Forms
(Forum)
by
abhijeet_dighe
on 10/26/2009
Re: File download code and hiding button
Hi Is there any other way for this?
Posted to
Web Forms
(Forum)
by
abhijeet_dighe
on 10/26/2009
Re: File download code and hiding button
Hi I tried this: ClientScript.RegisterStartupScript(this.GetType(), "key1", "<script language='javascript'>document.getElementById('Button1').style.visibility = 'hidden';</script>"); System.IO.FileInfo file = new System.IO.FileInfo("d:/abhijeet/abc.pdf"); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); HttpContext.Current.Response
Posted to
Web Forms
(Forum)
by
abhijeet_dighe
on 10/26/2009
Re: File download code and hiding button
I tried this, but still not working. I also tried: ClientScript.RegisterStartupScript(this.GetType(), "key1", "<script language='javascript'>document.getElementById(' Button2 ').style.visibility = 'hidden';</script>"); Instead of: Button2.Visible= false ; But this is also not working.
Posted to
Web Forms
(Forum)
by
abhijeet_dighe
on 10/26/2009
Re: How to retrieve data from a specific Row in GridView?
Hi Set command = "Select" for the button. Then onselected index changed event of gridview you can access selected row protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Response.Write(GridView1.SelectedRow.Cells[0].Text); }
Posted to
Data Presentation Controls
(Forum)
by
abhijeet_dighe
on 9/21/2009
Re: Problems With open new window
Hi You need to assign window.open to variable like this: var mywin = window.open('' + self.location, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
Posted to
Client Side Web Development
(Forum)
by
abhijeet_dighe
on 9/21/2009
Re: Payment Gateway
Hi Paypal, Authorize.Net are widely used Payment Gateways. You need account on them for processing transaction. For development purpose you can use sandbox account. For paypal sandbox: https://developer.paypal.com/ To implement it on your site you will need to study their API, so that you can call these API's and pass transaction details to the gateway, when user places order. http://developer.authorize.net/api/
Posted to
Free For All
(Forum)
by
abhijeet_dighe
on 9/20/2009
Re: Full text index
Hi I dont want to use automatic change tracking ( Update Index in Background ) . I want scheduled change tracking . I dont find any steps for implementing this using wizard or t-sql in sql server 2000 . Can any one tell me the t-sql for change tracking and updating the index in sql server 2000 . which I can put in job agent.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
abhijeet_dighe
on 9/19/2009
Re: Linking to the 'edit' or 'insert' template for a DetailsView directly from another page.
protected void Page_Load(object sender, EventArgs e) { DetailsView1.ChangeMode(DetailsViewMode.Edit); }
Posted to
Data Presentation Controls
(Forum)
by
abhijeet_dighe
on 9/19/2009
Page 1 of 27 (263 items) 1
2
3
4
5
Next >
...
Last ยป
ASP.NET:
Resizing images from the server using WPF/WIC instead of GDI+
Silverlight:
Deploying your Silverlight and WCF RIA Services application
Channel 9:
Juan Chen and Nikhil Swamy: FINE, a Compiler for End-to-End Security Verification
Channel 10:
Get the Outlook Hotmail Connector Beta
Channel 10:
MSN to Launch New Lifestyle Site from Wonderwall Creator
Channel 10:
Behind the Windows 7 Startup Animation
Channel 9:
Reactive Extensions API in depth: CombineLatest
Channel 9:
C9 Lectures: Dr. Graham Hutton - Functional Programming Fundamentals Chapter 11 of 13
WindowsClient:
New WPF Showcase: Scrum Sprint Monitor
WindowsClient:
WPF/XAML helping VS2010 Extensibility
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online