| | |
<a href> dynamically in ASP.NET
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
If you have the path + name of the file . maybe try the following.
add the path and name to a datatable.
From there you need to get the selected index of the grid row.
Then you get the datarow and the clumns of the row [file path] [file name] and assign it to the item you need ... then on click , response.redirect .
add the path and name to a datatable.
From there you need to get the selected index of the grid row.
Then you get the datarow and the clumns of the row [file path] [file name] and assign it to the item you need ... then on click , response.redirect .
Delphi & C# programmer deluxe...
•
•
Join Date: Jun 2009
Posts: 433
Reputation:
Solved Threads: 82
Declare an <a> object in the HTML markup as below. See the runat="server" property. So that you can set/get the properties of <a> object from the C# code behind class file.
You can assign href in the C# class file as below
ASP.NET Syntax (Toggle Plain Text)
<a id="anchDownloadFile" runat="server">Download</a>
You can assign href in the C# class file as below
ASP.NET Syntax (Toggle Plain Text)
anchDownloadFile.HRef = "http://localhost/yoursitename/fileName";
Last edited by Ramesh S; Sep 1st, 2009 at 8:20 am.
![]() |
Similar Threads
- Looking for Sr. ASP .NET Developers (Software Development Job Offers)
- ASP.NET/SQL Developer/Programmer (Web Development Job Offers)
- ASP.Net perm full time programmer wanted (Web Development Job Offers)
- Front-End Developer with ASP.net needed!!! (Web Development Job Offers)
- Experience ASP.net with C# developer needed!! (Web Development Job Offers)
- Adding HTML controls dynamically in asp.net page (ASP.NET)
- ASP.Net / C# Web Developer (Web Development Job Offers)
Other Threads in the ASP.NET Forum
- Previous Thread: Web Service
- Next Thread: Urgent Answer Needed
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects opera order problem ratings redirect registration relationaldatabases reportemail rotatepage search security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql ssl tracking treeview validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xml xsl





