|
Hi,
Does anybody know if VS2008 has an internal web browser, for launching Silverlight apps ? I believed have seen screenshots with that...
WolveFred
|
|
|
|
|
This one?
View/Other Windows/Web Browser (Ctrl-Alt-R)
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
No. I dont think VS 2008 has an internal web browser. not even in VS2010..
|
|
|
|
|
That's not true : there is one.
* Right click a page (.aspx, or on a folder)
* Select Browse With...
* Choose your browser : internal
* Click Set as Default
* Click Browse
|
|
|
|
|
Working through this... just completed part 3.
Accessing the ASP.NET Authentication, Profile and Role Service in Silverlight[^]
I can't get the images to appear in Firefox but I can in IE and Google Chrome - despite the fact that the latter is not "officially" supported. ???
Any ideas for things to tweak in Firefox?
Update: It now works as of this morning - no code changes. Must have been a caching issue.
Kevin
modified on Sunday, February 8, 2009 1:17 PM
|
|
|
|
|
It should work in Firefox as well.
Are you using that sample or did you change something in that sample?
|
|
|
|
|
It works now (tried again this morning) so must have been a caching problem.
Kevin
|
|
|
|
|
okay. Great!
|
|
|
|
|
Can any one tell me, if I need to populate the items of a Panel dynamically using Binding, how can I do so?
A panel has got a Children property, unlike other collection control ListView, Listbox that offers a property named ItemsSource or stuffs like that. How can i make this thing work for a panel.
To clarify the question- How to bind the items displayed inside a FishEyePanel ..or is it possible at all?
usually, What I can do is
<stackpanel>
however, I want to generate the number of button using Binding...is it possible?
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|
|
What I would do here is put a ListView inside your panel, and then generate the buttons inside ListView Items.
|
|
|
|
|
hmm nope,
I got my problems solutions ..
<ItemsControl ItemsSource="{Binding ConfiguredViews}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<panels:FishEyePanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
here is what I was thinking.
Thanks for bothering :P
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|
|
Hi,
i need to create a software (about restaurant,hotel,etc..etc..),
an important request i received from my manager is to create a Forms Authentication with many different Login and Passwords where each user will get a different privilege to restrict the access.
An example:
- Login = guest ...can only access to the software without delete,add or edit the data.
- Login = adminstrator ... can do everything .
- Login = employee 01 ... can access to the software but can delete,add and edit just some (specific) data.
- Login = employee 02 .... can access to the software but can delete,add and edit just some (specific) data.
..... and so on ...
This software will be used in 5 different department in my office so each department will have different privilege/permission to access in the software.
Now i have not a clear idea to develop this feature ,never i made it as my knowledge are poor.
I will use SqlServer 2005 for the database ,Linq toSql and Wpf(interface) of course so i thought to create a table with SqlServer as follow:
CREATE TABLE [dbo].[TblLogin] (
[Name] [varchar] (30) ,
[username] [varchar] (20),
[password] [varchar] (20) ,
[Email] [varchar] (50) ,
[Roles] [varchar] (50)
)
GO
but after i get stuck i don't know how go ahead
If you have any idea/suggestion let me know it will be so useful for me,i'm available to learn ...i have a lot of thing to learn .
Have a good job.
Nice Regards,
Bye
|
|
|
|
|
Well, you could always use the MembershipProvider and RolesProvider classes. To use these, you need to add the relevant tables into SQL Server (added by the command aspnet_regsql[^]). Then, you need to add a System.Web entry into your config file, and add the MembershipProvider and RoleProvider sections in here. That's it - you now have access to a role mechanism. It's up to you to provide the login screen and admin screens, but that should be fairly trivial.
|
|
|
|
|
Hi Pete
for my poor knowledge never i used a System.Web in past time so i have some question to understand better what i need to do but before to post my question do you have some link to show me so i can ask not foolish question.
Thanks my friend
Have a nice job.
Bye
|
|
|
|
|
Here's a sample of what would go in your config file:
<system.web>
<membership defaultProvider="AspNetSqlProvider" />
<roleManager enabled="true" defaultProvider="AspNetSqlProvider" />
</system.web>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="
data source=(local);Integrated Security=SSPI;
Initial Catalog=aspnetdb" />
</connectionStrings>
|
|
|
|
|
Hi Pete,
sorry if i ask you many question but when i don't understand i can not go ahead....
I tried your advice it is right , now i have the aspnetdb.mdf in my WPF project.
Sincerily i have not experience about Roles and MembershipProvider so i ask you if you have some link where learn some step to go ahead ...
Thanks a lot .
Have a nice wake up.
Bye
|
|
|
|
|
If you can wait a couple of days, I'm writing a RoleManager in WPF application that I will be posting up (possibly as an article - or possibly on my blog), which will provide a fairly complete implementation that demonstrates how to use Roles and the Membership API, especially with regards to the MVVM pattern. Trust me - all becomes clear when you see the code.
If you can't wait that long, you can get some ideas from here[^] and here[^] (note you need to add a reference to System.Web to your application to get this to work).
|
|
|
|
|
Hi Pete,
Pete wrote:
If you can wait a couple of days, I'm writing a RoleManager in WPF application that I will be posting up (possibly as an article - or possibly on my blog), which will provide a fairly complete implementation that demonstrates how to use Roles and the Membership API, especially with regards to the MVVM pattern. Trust me - all becomes clear when you see the code.
..It's a fantastic news ,after i will read better about the links above meantime i will wait your article with a big hug .
Thank a lot
Have a nice job.
Bye
|
|
|
|
|
Just to let you know I haven't forgotten about this code. I'm still working on it, and it's coming on quite nicely. Hopefully you can learn a lot from the implementation - it's all done using MVVM, and it should help to clarify a lot of those issues for you as well as show you how to use the Membership and Roles API.
|
|
|
|
|
Hi Pete,
i'm happy for your care and support and i'm waiting with trust your next project.
Sure i will learn a lot... i need to learn and study a lot
However i wish you a nice work and thanks a lot for your precious support .
Nice regards,
Bye
|
|
|
|
|
Hey everyone,
I am doing my first WPF User control. I am trying to get my hyperlink to open a new IE browser when I press a on my "link label".
my code sampel;
<DataTemplate x:Key="resultLayout" DataType="WPFSearchResult">
<StackPanel Orientation="Vertical">
<TextBlock Foreground="Blue">
<Hyperlink Name="hl" RequestNavigate="HandleRequestNavigate" FontSize="14" NavigateUri="http://www.microsoft.com">
<TextBlock Text="{Binding Path=Header}"/>
</Hyperlink>
</TextBlock>
</StackPanel>
</DataTemplate>
When I press on the HyperLink nothing happen.
This is a sampel of my code behid class;
namespace WpfShowResultsControl
{
public partial class GetSearchResultUserControl : UserControl
{
public GetSearchResultUserControl()
{
InitializeComponent();
}
void HandleRequestNavigate(object sender, RoutedEventArgs e)
{
string navigateUri = hl.NavigateUri.ToString();
Process.Start(new ProcessStartInfo(navigateUri));
e.Handled = true;
}
}
}
I have tried many eksampels on diffrent forums and I cannot get it works. I have also tried like this <Hyperlink x:Name="hl".....>
In my code behind class, I cannot use hl, it looks like it does not exist. What can I do to get hl useable? Could any one please advice me what I am missin in my code. Many thanks in advance!
|
|
|
|
|
hi
you can try this:
make an click event on you textblok.
and in you click event call:
System.Diagnostics.Process.Start("http://www.google.de");
|
|
|
|
|
From [^]
"Hyperlink is "navigation service" aware, which means it can work properly as you expect in navigation application(using NavigationWindow, Frame which can provide navigation service).
In standalone non-navigation application, you can hook up to its Click event, and implement the navigation logic there."
So, in your case you will need to use click handler as suggested ^^
|
|
|
|
|
I hope you found this useful :
private void Windows_Loaded(object sender, RoutedEventArgs e)
{
AddHandler(Hyperlink.ClickEvent, (RoutedEventHandler)Hyperlink_Click);
}
private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
if (e.OriginalSource is Hyperlink)
{
Process.Start((e.OriginalSource as Hyperlink).NavigateUri.AbsoluteUri);
e.Handled = true;
}
}
|
|
|
|
|
Hi Guys,
Any one has idea on how to host a workflow designer inside a ASP.NEt page.
Thanks in advance for your suggestions
Sree
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|