I need my app to be the default action for opening a particular file type. How do I control this? Also, how can my app access the file being opened?
Thanks.
Hello friends,
I want to display and update user profile using FormView control. But I dont know exactly how to do this.
I am using custom providers for Roles, Membership and Profile. Everything is working fine.
Can anybody provide solution?
Thanks for sharing your valuable time.
Hi,
I need to use volume buttons to control a variable parameter in my application.
I use Activity.onKeyDown to get notified when the button is pressed but the media volume is also increased.
Android is doing something like below when I press the volume key:
1. increase media / ringtone volume
2. pass the event to my application
Is there a way to avoid increasing the system volume and use volume key only for my application ?
Thanks
I have a dialog with few controls. There is a TextBox named txtControl and two Buttons Accept and Cancel. I want that once the focus is in txtControl, the focus should not go away, until I click on Accept or Cancel button.
If I try to click on any other control without clicking on Accept or Cancel button, then focus should remains in txtControl. Also I don't want to disable or gay out other controls.
I need to test if my 304 responses are working, but my development environment is pretty hard set on force no-cache.
Is there an easy way to modify the max-age value of the cache-control header before it goes out?
I'm perhaps a bit optimistic in hoping chrome (or an extension, or FF) has a console command letting me alter the if-modified-since header then send the request. Maybe paste something into a telnet connection?
I'm having an issue with the treeview control from the silverlight 4 toolkit. I can't get it to view to display my data correctly, the toplevel items are shown but the childnodes are nowhere to be seen.
More info:
I have a wcf service that delivers a list of Categories with nested subcategories to my viewmodel (I made sure to explicitly include my subcategory data). My viewmodel has an observable list property (wich is named Categories) with this data from my WCF service.
My ViewModel: _http://pastebin.com/0TpMW3mR
My XAML: http://pastebin.com/QCwVeyYu
Hello everyone,
I'm trying to create a simple textblock control and I'm trying to insert a property from my ViewModel in the middle of the string.
E.G. "Hello, My name is XX, bla, bla."
(XX is a property from my ViewModel)
<TextBlock Text="Hello, My name is {Binding SelectedUser.Name}, bla, bla." />
Is that possible?
Regards,
Adrian
I want an Expander that only expands/collapse it's content when the user clicks on the header icon. (Instead of the whole header being clickable.)
Do I have to redefine the control Template to do this? How would it look like?
Where can I find the standard templates/styles for controls?
Thanks for your time.
Can anyone recommend some start to finish project tutorials that really emphasize good design principles and best practices. I am looking for things that demonstrate and emphasize any or all of these:
Domain Driven Design
Unit Testing
Inversion of Control
Separation of Concerns
Use of interfaces
Object Relational Mapping
Preferably ASP.NET MVC
I am currently watching the Autumn of Agile series, which demonstrates many of these principles. I would like to find more of these tutorials/demos.
How do you color a rectangle in C# that has been declared in XAML in WPF?
There is a rectangle control in XAML. In my C# code there are times in which it would be nice to fill the background color. How does one do this?
Hello All!
Could someone please explain what the difference is between using the ISupportInitialize interface methods (BeginInit/EndInit) and using SuspendLayout/ResumeLayout?
Is ISupportInitialize ONLY used during construction/"initial" initialization... or can it be used later when you want to add new child controls to an existing parent control?
Any particular differences?
I greatly appreciate your help!
Thank you,
Pato
Hi,
I am writting a usercontrol. I want to draw the user control when the resize is done. I am not able to find any event equivalent to "ResizeEnd" of windows form.
Is there any equivalent event for user controls?
I downloaded these zip files from the link http://netbeans.org/downloads/zip.html with the hope that this way I will have a fine grained control over the installation process.
But I stand clueles. I can't tell how to install Netbeans from these, there is no installation guide for this.
Any ideas how to install Netbeans this way.
What is the default for ClientIdMode on
a) Page
b) Control
c) UserControl
From what I have read it is Predictable, Inherit, Inherit. I expected the default on the Page to be AutoId. Wouldn't Predictable break things?
The problem is in being able to catch the instance of the player to control it i.e. Stop it, Play it etc. The code by default creates multiple instances of the same player and overlaps the songs. I am being unable to reference the player specifically.
Do you have an idea as to how we can do so?
Thanks,
Arun
I dont think this is possible but maybe someone knows a way to achieve this. I want to attach an event to an html element to listen to attribute change. So say for instance that I want something to happen when a visibility of a div changes. The reason is that I have no control over the javascript that is switching the visibility, hence the need for an event.
Thanks
I'm trying to create a simple button that deletes a row from the database. I would like to set the ID of the control to something like delete_MATERIALID_button however, when I do this:
<asp:Button ID='delete_<%# Eval("MatID") %>_button' runat="server" Text="Delete" />
I get an error that the name can't be generated like that.
I know that there must be a simple solution, I just can't figure it out.
I have a tab on my page, when i click on this tab, i need to show a pdf file on page(browser).
For this i am writing function on control like this
public ActionResult PricedPdf(string projID,string fileName)
{
byte[] bArr = new byte[] { };
bArr =getdata();
return File(bArr, System.Net.Mime.MediaTypeNames.Application.Pdf, fileName+".pdf");
}
Now my problem is when i render this, page only show some unreadable data not pdf.
I'm wondering how to prevent Session fixation in ASP.NET
My approach would to this would normally be to generate and issue a new session id whenever someone logs in. But is this level of control possible in ASP.NET land?
Guys,
I want to customize the look of a TextBlock. (I want a rounded rectangle border around it).
But I'd like to be able to set it's template via the app.xaml
But I see that TextBlock doesn't have a Template property. I'd use Label (which does have a Template property) but I guess silverlight doesn't support a Label control.
So what can I use to do this? Thanks in advance.
We use Captcha control in a registration form that we make full client validation for all fields in JavaScript ( JQuery ) beside server validation ..
I tried a lot of ways but all will write the Captcha value in JavaScript that can be accessed by anyone :(
I search if is there any way that allow me validate Captcha value in client side using JQuery in secure way or it can't be done ?
For small-to-large teams developing software together, what tools are used to form a comprehensive team development framework?
Specifically, I'm looking for a comprehensive list of all the individual functions involved (e.g. source control, bug management, testing tools, project management), not specific product recommendations. I'm also not restricting the list to a particular methodology (e.g. Scrum).
Is there any book or links that I can read some tutorial about the WPF ribbon control. I need to get some basics . Also can any one recommend good book in WPF or a starter kit.
Thanks.
Hello.
I have added a simple .gif file into Resources folder in my project.
Now i have created a user control with pictureBox.
How can i add the .gif to pictureBox.Image = new Bitmap (path).
What is the path in this case?
thanx !
Hi,
I have an ajax calendar control that I specified the date format to be yyyy-MM-dd. Is it possible to have the comparevalidator validate that type of date sepcifically and have it fail for everything else? right now it seems to only take dd-MM-yyyy.
Thanks.