Questions tagged [rendercontrol]
35 questions
1
vote
1 answer
Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server
Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server.
When I export the Gridview to Excel, I get an error like this. Can you help me?
My code example is as follows.
Dim SqlQuery As String = "SELECT * FROM…

turgay kesgin
- 13
- 1
- 4
1
vote
1 answer
Render Control to Html Produces a different string
I am trying to render a hyperlink to html. ( etc)
When the page loads it works fine. (and lots 10 links) on the update panel it hits the same function and tries to get another 10 links.
I set the navigationURL to something…

Steve
- 2,971
- 7
- 38
- 63
1
vote
1 answer
System.Web.UI.Control.RenderControl fails when called from background thread
I have a requirement to render a control in a background thread and send the output in mail.
So I have this piece of code running in a background thread:
System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(sendmail), new…

pradhanbv
- 11
- 2
0
votes
1 answer
navigator.mediaDevices.getUserMedia - Reverse camera list order / show only rear cameras in HTML5 QR JS Code Scanner
I'm using the following QR Code scanner for a PHP application to scan QR codes
Link to HTML5 JS QR Code Scanner
The JS file in question for which I have a local copy of referenced in my HTML file in my case
However when selecting cameras on both…

Henry Aspden
- 1,863
- 3
- 23
- 45
0
votes
0 answers
render ContentPlaceHolder without MasterPage
I wanna render a aspx content without the MasterPage and return that as string for ajax requests. When i call RenderControll on the LoadEvent of the root level MasterPage, then i got the full html of the page.
My first aproach with a http module has…

Aleksandar Herbrich
- 11
- 4
0
votes
1 answer
Empty input shown as brackets when using RenderControl ASP.NET VB HTML
As a pseudo follow up from my previous question.
My current code looks similar to the following:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MyPage.aspx.vb" Inherits="Project.MyPage" EnableEventValidation="false"…

brettwbyron
- 95
- 12
0
votes
0 answers
How to send Chart Control in email using C# ASP.Net
I have written the below code to send the Gridview and Chart Image in email body message (not as an attachment) using C# ASP.Net.
StringBuilder sb = new StringBuilder();
string MailSturcture;
using (System.IO.StringWriter sw = new…

Arun
- 728
- 4
- 16
- 30
0
votes
0 answers
Parallel.ForEach RenderControl of radiobuttonlist fails
I have a parallel loop generating HTML using the Parallel.ForEach statement. Somewhere in the execution i render the Html of controls using the RenderControl function. All controls render well (Textboxes, dropdownlists, checkboxes etc.) but a…

Peter de Bruijn
- 792
- 6
- 22
0
votes
0 answers
When collapse tree panel window in Internet Explorer 11 dont work
When collapse a tree panel in Internet Explorer the other panel does not shown correct and in other browser work fine. when the tree panel is hidden This causes the entire window to look wrong and can only be fixed by refreshing the page or expand…

developernewbie
- 3
- 5
0
votes
1 answer
Open DataTable in Excel VB
Ok, this is an interesting issue. I have been tasked with modifying an existing VB project. Currently the user selected from a series of dropdowns to select a sql query and then run that query. So the user selects and environment dropdown, the…

Jeremy
- 147
- 1
- 1
- 14
0
votes
1 answer
Print asp.net page as PDF
I would like to print a page as PDF. But the thing is that before printing, I want to expand all the controls (GridView, Treeview...).
I found somes solutions using Page.RenderControl (or Control.RenderControl) but i have some error saying "A page…

BonOeil
- 158
- 2
- 13
0
votes
1 answer
Asp.net RenderControl method not rendering autopostback for dropdownlist
i am bit confused as to why asp.net does not render a dropdownlist with the autopostback property set to true when using the RenderControl method.
eg
Dim sw As New IO.StringWriter
Dim tw As New HtmlTextWriter(sw)
Dim table As New Table
…

Tanya
- 1
- 1
0
votes
1 answer
Export Data from ASP.NET web page to Excel in multiple sheets
I am working on a web application which consists of some reports. These report is generated on a location wise data
The report should have a feature to be extracted to an excel file. For which I use render control.
private void ExprotToExcel()
…

Ankit Suhail
- 2,045
- 21
- 32
0
votes
2 answers
Rendering web controls as plain text into a string
Is there any way to render the text as it is displayed on the browser instead of the underlying html. I am trying to emulate the javascript's .innerText() functionality on the server side code.
For instance for the following code is it possible to…

Aamir
- 791
- 3
- 15
- 28
0
votes
1 answer
activiz 64 bits control
I've installed Activiz 5.8.0 on my project (I installed both 32 and 64 bits versions through the Nuget package manager).
I can import to the toolbox only the 32 bits RenderWindowControl component of Kitware.VTK.dll, when I try the 64 bits version it…

Matimont
- 739
- 3
- 14
- 33