Questions tagged [loadcontrol]

42 questions
0
votes
1 answer

LoadControl - from string variable

If e.g. I keep control markup in DB instead of ascx file. How can I load control from string constant? (of course if I don't want to save copy to disk)
creo
  • 49
  • 6
0
votes
3 answers

Getting data from child controls loaded programmatically

I've created 2 controls to manipulate a data object: 1 for viewing and another for editing. On one page I load the "view" UserControl and pass data to it this way: ViewControl control =…
Farinha
  • 17,636
  • 21
  • 64
  • 80
0
votes
1 answer

using LoadControl with object initializer to create properties

In the past I've used UserControls to create email templates which I can fill properties on and then use LoadControl and then RenderControl to get the html for which to use for the body text of my email. This was within asp.net webforms. I'm in the…
lloydphillips
  • 2,775
  • 2
  • 33
  • 58
0
votes
1 answer

write to file from Loadrunner controller

I'm using Loadrunner controller 11.51, I have an issue when trying to open file to write the output results using "fopen" function, the file is unable to open. please note that the code is work when I'm running it on a VUGen(11.51). it seems that…
Manaysah
  • 375
  • 5
  • 15
  • 29
0
votes
1 answer

How do I calculate for the following #Vus,AVG transaction time,iteration for multiple script in loadrunner?

You need to setup a scenario around the following parameters: List item You have a maximum of 1000 vus You have 10 scripts, each with an init, one action (with multiple steps) and an end. The minimum total transaction time (init+action+end) for…
0
votes
1 answer

Render control programmatically (using LoadControl) while adhering the page lifecycle

I'm trying to use LoadControl to get a custom control in code for programmatic rendering purposes. However I notice that the OnInit method of my custom control is not being called. Am I missing an essential step here? //Loading the control Page h =…
ReFocus
  • 1,511
  • 1
  • 18
  • 24
0
votes
4 answers

Create Instance Aspx Page of Ascx Control In a Back End Class without Loading FilePath

Question: Is it possible in back end code (not in the code behind but in an actual back end class) to load and render a page or control defined in a .aspx or .ascx without having to use Load(path) and instead just create an instance of the…
Glenn
  • 1,234
  • 2
  • 19
  • 33
0
votes
1 answer

Is it required to call ResolveUrl() before LoadControl()?

Is it required to call TemplateControl.ResolveUrl() before passing it to TemplateControl.LoadControl()? Which way is preferred? LoadControl(ResolveUrl("~/MyControl.ascx")); LoadControl("~/MyControl.ascx"); LoadControl("MyControl.ascx"); or maybe…
abatishchev
  • 98,240
  • 88
  • 296
  • 433
0
votes
1 answer

get and set parameters from LoadControl(string path) in c#

I want to add usercontrols to my page based on a XML: The usercontrol looks like this…
espvar
  • 1,045
  • 5
  • 16
  • 28
0
votes
1 answer

ASP.NET LoadControl Use of keyword 'base' is not valid in this context

I want a web service to load an .ascx control, load some values in it and then return the HTML content of this control. I have something like that: [WebMethod(EnableSession = true)] public void GetHTML() { UserControl loader = new…
user128873
  • 83
  • 5
0
votes
1 answer

asp .net events in dynamically loaded controls ( Telerik )

I've a question about dynamically loaded controls and events in these controls ( button click in my case :) Here is what i got one RadPanelBar a Button and hidden input:
shkipper
  • 1,403
  • 3
  • 21
  • 35
-1
votes
1 answer

what is the difference loading Web user control loading on page?

i try to load some user control on my Default.aspx page selecting dropdown control. i searched some data from net i 've learn 2 methods there is first one…
loki
  • 2,926
  • 8
  • 62
  • 115
1 2
3