User Profile

Collapse

Profile Sidebar

Collapse
Sl1ver
Sl1ver
Last Activity: Aug 14 '16, 11:53 AM
Joined: Mar 18 '09
Location: Cape Town, South Africa
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sl1ver
    started a topic Trying to send custom emails with Postal.NET

    Trying to send custom emails with Postal.NET

    I am trying to send multiple emails using my own email class but I get an error where it says "element contains the same key!"

    So I take it the view for my email gets added everytime but it already exists.I just don't know how to check if it exists or how to readd it.

    Code:
    var viewsPath = Path.GetFullPath(HostingEnvironment.MapPath(@"~/Views/Emails"));
                var engines = new ViewEngineCollection();
    ...
    See more | Go to post

  • Dropdownlist onchanged - Trouble persisting ViewModel

    I'm creating a register page and I have 3 dropdowns.

    Now the first dropdown must load first go to load the countries. Based on that I load the provinces and then based on that I load the cities in that province.

    The trouble I'm having is that on the first change it keeps my selected value but on the second onchange it seems as everything is lost.

    I load the reigster view by just loading countries so long....
    See more | Go to post

  • Sl1ver
    started a topic Bind usercontrol to xaml

    Bind usercontrol to xaml

    I have my own user control (it is a tool inside my xaml) which I add to the main xaml like

    Code:
    <views:StatisticsView x:Name="StatsView" Grid.Row="1" />
    Now once you click the tool it sets its own view model to bind to the view but how must I bind the actual user control on the main xaml

    (Think of the tool as totally separate with own viewmodel etc)
    See more | Go to post

  • Sl1ver
    replied to Binding after data context is changed
    in XAML
    I would put the data into a string. The way im doing it here means that the TextData is updated everytime something changes from either end(front or back).




    Code:
     private string textData;
            public string TextData
            {
                get { return textData; }
                set
                {
                    textData= value;
                    OnNotifyPropertyChanged("TextData");
    ...
    See more | Go to post

    Leave a comment:


  • Sl1ver
    started a topic Adding Pie series to Chart
    in XAML

    Adding Pie series to Chart

    I have a chart in xaml and binding data to it at the back, what im currently finding is that it adds the data to the legend but doesn't actually produce a pie chart

    xaml
    Code:
    <!--Begin Custom Tab Item-->
                            <sdk:TabItem  Name="CustomTabItem" Cursor="Hand" Visibility="Visible">
                                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    ...
    See more | Go to post

  • Sl1ver
    replied to Getting CRAZY with ComboBox SelectedItem!
    in XAML
    Didn't read thoroughly but did you try two way binding? e.g Binding Path=this, Mode=TwoWay...?
    See more | Go to post

    Leave a comment:


  • Sl1ver
    started a topic Getting combobox selected item
    in XAML

    Getting combobox selected item

    I have a combobox, but I can only get a type of ComboxItem back so I never get the actual value (Tried "SelectedIt em" as well)

    How do I get the selected value in string format to do the switch with?

    XAML
    Code:
     <ComboBox 
                x:Name="cmbAllotment" 
                Grid.Row="1"  
                Margin="5,0,5,0"
                Grid.Column="0"
    ...
    See more | Go to post

  • Sl1ver
    started a topic iFrame not scrolling

    iFrame not scrolling

    I have a page on dotnetnuke system

    and then i have a asp.net control

    On the the donnetnuke page I place the control which is pretty much just an iframe but have tried everything for the iframe to adjust to the source it loads but nothing works

    tries scrolling="yes" , styles="overflo w: auto"
    See more | Go to post

  • Sl1ver
    started a topic Remove Items from list....Brain teaser

    Remove Items from list....Brain teaser

    Hi guys

    I've got the following list

    Code:
    List<string> modelList = new List<string>() { "A", "B", "B", "A", "B", "A", "B" };
    How will you make the list to only show the B's.

    Rules.
    No Linq
    No new list variable or no use of array

    So basically take the list as is, remove...
    See more | Go to post

  • Sl1ver
    replied to Get current datetime on nullable sql field
    I figured out the problem. I was using
    Code:
    DataFunctions.CastDateTime(record["usrLastLoginStampDate"]);
    instead of nullabledatetim e like
    Code:
    DataFunctions.CastNullableDateTime(record["usrLastLoginStampDate"]);
    See more | Go to post

    Leave a comment:


  • I see what you need but cant give you solid advice. What id think you'd need to do though is try and get the id of the current selection and work with that.

    is this in asp, what would you like to achieve with the link button? if you want to just take it to n page where you need the specific property i would recommend that you fill the url redirection of the button with the specific property that you retrieved from the database.
    See more | Go to post

    Leave a comment:


  • Sl1ver
    started a topic Get current datetime on nullable sql field

    Get current datetime on nullable sql field

    I retrieve a null value from a nullable sql datacolumn but when I pull it into a property it automatically gets the current datetime.

    How will I go about making sure that this value returns a null and not the currentdatetime .
    See more | Go to post

  • Go into Web.Config, read an article on how to add a new key to appsettings

    Then all you do is bool myBool = ConfigurationMa nager.AppSettin gs["your key name"].ToString();

    or else store it in a session variable, that way you will always be able to use it.
    See more | Go to post

    Leave a comment:


  • What exactly do you want to do, do you want to be on the page, click something and go back to default with the value?
    See more | Go to post

    Leave a comment:


  • Sl1ver
    started a topic Need information on Live update

    Need information on Live update

    Hi guyz

    I have been surfing the web for a while know and im not exactly too sure what to search for as i dont have much jquery, ajax experiance.

    I need help, finger in the right direction or a known tutorial or something

    Here is what i want to do

    - I want to have an html table that will be created dynamically by the C# .net code (already have this)
    - I want to have two buttons, one to update...
    See more | Go to post

  • Sl1ver
    started a topic Need help with errors
    in PHP

    Need help with errors

    I read some stuff on google but nothing that really could help me here is the problem

    Notice: Undefined index: id in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\dem o.php on line 18

    Code:
    line18: if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe'])
    {
    	// If you are logged in, but you don't have the tzRemember cookie (browser restart)
    	// and you have not
    ...
    See more | Go to post

  • for what platform is this?
    See more | Go to post

    Leave a comment:


  • Android: Reading xml from .NET webservice

    Hi

    I found a perfect example of using a web service

    http://wowjava.wordpre ss.com/2011/01/16/login-application-for-android/

    Really good tutorial.

    I have implemented this and it works perfect the only problem is that once I get a response back the string reads the whole XML response created by the webservice.

    Code:
    try
    				{
    					response = CustomHttpClient.executeHttpPost("http://jonathan.dev.pushplay.co.za/ppws.asmx/signIn",
    ...
    See more | Go to post

  • Sl1ver
    started a topic Mobile Site size problem

    Mobile Site size problem

    Hi guyz

    I have kinda found the answer to a question i asked myself. (How to have a website "adapt" to the different screen sizes)

    I used the following

    Code:
    <meta name="viewport" content="width=device-with, user-scalable=yes">
    This makes my mobile site appear correct on either blackberry(smal l screen) and galaxy s2(big screen) but when a user...
    See more | Go to post

  • Sl1ver
    replied to How to make pagination more efficient
    I have found a solution to this problem and speeds up the paging supper fast

    Code:
    PROCEDURE [dbo].[spMobileSearch]  
    (
    	@pg INT,
    	@pgSize INT,
    	@text varchar(250)
    )
    AS BEGIN
    
    WITH Search AS
    (select distinct ROW_NUMBER() OVER (Order by T.intTitleId) AS RowID, T.intTitleId, from tites.....)
    
    SELECT rowid, intTitleId, vcTitleName, intYear, vcCertificate, vcImageName, vcTitleDescription,
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...