|
Can we access one control Id registered in one aspx in to another ascx control,,
Started by peter on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, can you imagine a textbox control that needs some element with a nameYour question is not very clear, but I guess you are trying to access a page's control from inside a .ascx control, am I right?
If....
By itself.
|
|
Hi,
I want to have a user control which will add some checkboxes in a asp.NET panel dynamically.
Simply I was believing I can do that easily in control's OnPreInit method. But the thing is I have learn that I cannot use and override OnPreInit method on...
Started by burak ozdogan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Whats the problem in that?
if your trying to use the values I would suggest the best place will be to add the checkboxes during the OnInit phase of the control page load with a normal custom control....
You can also do it in Page_Load event.
|
|
I have a signup form posting to my customers_controller, but now they want the signup form to take payment information too. I have a payment_controller, After saving the new user I'd like to forward the payment post data to the action in the payment_controller...
Started by Jack B Nimble on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That, you can either link the two models (allowing you to make a $this->Customer->Payment->process_charge(..) call), or you can define the $uses attribute in the Customers controller of the actual http request (access ....
|
Ask your Facebook Friends
|
I'm working on a controller that is a part of a very flat hierarchy of pages, and it looks like one section of the site could have over a dozen action methods, not including their corresponding post actions. Is there a good way to break this controller...
Started by blinton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, if your controller is getting up to ....
If your controller class is getting out of control on a dozen actions, you might want to rethink how much logic should be in there and how much can be refactored out into services.
|
|
I have seen a few examples of how to do this with winforms but have been unable to get it to work in wpf as a wpf TabItem does not have a definition for Controls. Here is the code that I'm using right now, which does not work.
TabItem ti = rep1Tab; var...
Started by highone on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Foreach() in conjunction with VisualTreeHelper.GetChildrenCount()
A TabItem usually contains a container control of a particular control....
You can try looping through the children of that container control.
Such as the default Grid.
|
|
I found something about this issue for ASP, but it didn't help me much ...
What I'd like to do is the following: I want to create a user control that has a collection as property and buttons to navigate through this collection. I want to be able to bind...
Started by MAD9 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You might still want....
); } set { SetValue(MyContentProperty, value); } } }
And the user control's XAML - UserControl1.xaml;/UserControl>
And finally, the xaml to use our wonderful new control:
<Window x:Class="InCtrl.Window1, not XAML.
|
|
I am looking for some recommendations on good places to find libraries of controls/templates/styles for WPF. I know about the usual places like Infragistics, but it seems to me that there should be some kind of community effort by now to share nice, clean...
Started by Geoffrey Chetwood on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://www.codeplex.com/
http://www.codeplex.com/site/search?projectSearchText=wpf%20control
Silverlight and WPF Dashboards and gauges
Simple (but great....
Something like this? http://www.wpfstyles.com/
Check out Reuxables although it comes at a cost .
|
|
I'm writing a Rails plugin, and need to be able to dynamically determine which model a controller is associated with. For example, if I have a PeopleController, I need a clean way to determine that the controller handles Person models.
I've had a look...
Started by nfm on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
# In a controller instance.
And controller names, you can do the following to get the model name/class.
|
|
Inside my user control I have a collection call Solutions
public List<string> Solutions { get; set; }
I want to bind that property to a combobox in xaml of that same user control?
I tried
<ComboBox HorizontalAlignment="Left" Margin="21,0,0,41...
Started by firefly on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
</ControlTemplate> </UserControl.Template> </UserControl>
Then, you can.
/> ...
Instead of
<UserControl x:Class ...
Move the XAML of your control into the Template property, i.e.
|
|
Is there any easy way to distinguish between an ASP.NET MVC controller action being hit "directly" due to a client web browser request, and being hit by virtue of a Controller.RedirectToAction call or a RedirectToRoute result?
Started by Rob Levine on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Kindness,
Dan
You may have the option of adding....
Otherwise it would be the URL that corresponds to the action method visited "directly" .
Request.ServerVariables["http_referrer"] would be empty if is the action is hit from a redirect to action, I think .
|