|
Have you even tried to play around with the controls I shared for you? What did you try which did not work ?
|
|
|
|
|
Hello everybody.
Can we get user session ID with SilverLight 2 ?
Is it possible at all ?
Thank you.
|
|
|
|
|
I don't know what "user session ID" you're referring to,
but I'll answer yes and yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I don't know what "user session ID" you're referring to,
Well, I know a session ID from PHP that we could get it with session_id() function.
How many session ids do we have in SL2 ?
|
|
|
|
|
Mohammad Dayyan wrote: How many session ids do we have in SL2 ?
None.
Session IDs are a server side thing - Silverlight is a client technology.
You can use ASP.NET sessions through ASP.NET/WCF services...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark .
Mark Salsbery wrote: You can use ASP.NET sessions through ASP.NET/WCF services...
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Can we get a something in SL2?
Is there an unique thing in Client side that I could get it with SL2 ?
Would appreciate for helping.
|
|
|
|
|
Mohammad Dayyan wrote: I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Silverlight runs on the client so it's already "unique".
There's no concept of "visitor" on the client side.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You can inherit the session context in your WCF Services.
Just use:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyService
But remember you will be responsible as well to keep alive that session (maybe service ping every X minutes).
HTH
Braulio
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|
|
I have CSV numeric data in a text file, The first row is the column names, the rest is the data.
x,y,z
1.1, 2.1, 0.3
3.2, 4.1, 0.5
0.3, 4.2, 1.1
I want to read this into my application and display it in a list view. I presume I could use C# to open the file and read/parse each line, then add a row to the list view, but I'm wondering if their are WPF (or .Net) tools that can make this job easier.
I'm creating the text file by hand, so if a better format makes it easier, I'm open to ideas there too.
Thanks,
Mitch
|
|
|
|
|
This is probably overkill for simple CSV, but I found the following project by Matt Perdeck helpful:
LINQ to CSV library[^]
Even if you don't want to use the LINQ parts of the code you can get some tips for CSV parsing from it.
|
|
|
|
|
Hi - can someone help me with this seemingly easy problem? I'm missing something... I'm trying to reference an array from a user control-code behind. The array is defined in main codebehind Page.cs & populated in Page.cs constructor.
Any tips appreciated -- thank you
public partial class Page : UserControl // Page.cs with a string array called dcNames[]
{ public string[] dcNames;
...........
// Page.xaml includes a reference to the user control named: GlobalInfoGridControl.xaml
// User control GlobalInfoGridControl.xaml.cs
public partial class GlobalInfoGridControl : UserControl
{
.......
private void OnSliderValueChanged(object sender, RoutedEventArgs e)
{
Page p = this.Parent as Page;
foreach (string DC in p.dcNames) // method needs to read dcNames[] from Page.cs
modified on Friday, April 3, 2009 5:38 PM
|
|
|
|
|
I'm looking for a way to programmatically clear all text boxes and combo boxes on my WPF window at the same time. Is there a method for handling this?
|
|
|
|
|
I don't know of anything inherent. How about looping for all controls and if it is a textbox\combobox then reset its value? (might have to do it recursively if the controls are contained within an hierarchy.
modified on Saturday, April 4, 2009 7:00 AM
|
|
|
|
|
So far, I've been able to find a workaround for any missing functionality in Silverlight, until now. Anyone have any idea how I can get all of the values of an enumeration? And please don't suggest that I iterate from 0 to X and use the IsDefined method - that's simply not a practical solution.
Thanks in advance!
Terry
|
|
|
|
|
|
Ah, of course. Thank you so much.
|
|
|
|
|
Hi friends
I am extreme bigner of silverlight so,
plz help me how run silverlight program
and what i need to install software
Thanks and Regards
Azad Yadav
|
|
|
|
|
You will need .NET Framework (2.0 and on) to install MEB. 
|
|
|
|
|
Are you talking develop or run? If it's develop (and assuming Silverlight 2), you'll need Visual Studio 2008, .NET 3.5 and the Silverlight SDK. If it's run, you just need to install the Silverlight control in your browser.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
Hehe, Silverlight is a buzzword... first you have to understand what is Silverlight, a quick and dirty definitions (please Ms guys don't read this)... it's like flash but with .net, that is a plugin for IE / FireFox...
You can download Silverlight plugin from the silverlight official site.
To Develop, you will need Visual Studio 2008 + .net fx 3.5 SP1 + SL tools for VS 2008 (you can just go to the silverlight.net getStarted option).
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|
|
Hi Azad, u need to have .Net framework 3.5 and u'l need to install silverlight tools from the official microsoft website which are free.
u'l also need to install silverlight plugin again from microsoft's site....
Use the following link.........
http://silverlight.net
Alok
|
|
|
|
|
WPF Noob question:
Can WPF applications can have their appearance change at runtime? I understand, through styles, that one can change the appearance of controls and UI elements, but I was envisoning something more along the lines of having two applications: one "editor" application and a "game" application, both running essentially the same code but having a totally different UI layout (the latter having fewer buttons, simpler controls, menu items, etc). The layout of the "game" UI could be designed by an artist, generally someone who doesn't have access to the underlying code.
How do I go about doing something like that? I'd just need a starting point.
Thanks!
|
|
|
|
|
The first thing I'd suggest here would be that this is a perfect candidate for applying an MVVM pattern to an application. The second thing I'd suggest is that you might want to look into Prism[^] the Composite WPF/Silverlight P and P from Microsoft.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I'll check that out, Thanks!
|
|
|
|