.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

EventSetter not working correctly?

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :WPF
 
I have a resource dictionary with a bunch of styles in it, here is a portion of the dictionary: <ResourceDictionary x:Class="CustomWindowStyle.WhelenWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:CustomWindowStyle"> <Style x:Key="TestWindowStyle" TargetType="{x:Type Window}"> <EventSetter Event="LayoutUpdated" Handler="TestWindow_LayoutUpdatedEvent"/> <Setter Property="AllowsTransparency" Value="true" /> <Setter Property="WindowStyle" Value="None" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="ResizeMode" Value="CanResizeWithGrip" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Window}"> <Grid> <Border Style="{StaticResource MainBorder}" Width="Auto" Height="Auto"> <DockPanel HorizontalAlignment="Stretch" Background="Transparent" VerticalAlignment="Stretch"> <local:TitleBa


View Complete Post


More Related Resource Links

ReportViewer Print Button not working correctly with windows 7 clients

  
I need some help being pointed in the right direction to fix the following issue: - After building several reports using reportviewer and testing with windows XP clients everything seemed to be fine.  I noticed that the first time the client loaded the asp.net website and clicked the print button it asked permission to install a small file (I assume this is to allow the reportviewer to access the clients printers).   - The problem I have is on Windows 7 Clients.  They can view/export the reports with no problem, but when they click the print button it ask permission to install the small file, but a error is given during the install process and the file is not installed.   If anyone has a solution or can point me in the right direction it would be helpfull.  I am using Visual Studios 2008 on Windows XP PRO and the site is hosted on Windows Server 2003 R3   Thanks 

Incomming Email Not Working Correctly in SharePoint 2010

  
Hello everyone, We recently upgraded from SharePoint 2007 to 2010. Prior to the upgrade I had two SharePoint Document libraries setup to receive incoming emails. We had two reports scheduled in Reporting Services and each report emailed a document library once a week. After the upgrade this stopped working. The reason this stopped working was because the file names of the attachments were the same each week, however in 2007, sharepoint would append a random 4 digits to the end of the file name. Was the removed from 2010 on purpose? After discovering this didn't work, I decided to create a workflow on these lists that anytime and item is added go change the file name to include the list ID to ensure that the file names will be unique. Only to find out that items added to the list from the incomming emails do not trigger the workflow. Doing some research on this and it looks like it was turned into Mircosoft as a bug in 2007 which had a fix, but the fix is only for 2007 is doesn't say it applies to SharePoint 2010 so I don't want to install it. Anyone know if there is a fix for this in SharePoint 2010? Thanks in advance, Matt

What service is responsible for Calendar Overlay working correctly?

  
I'm having 2 issues with my SharePoint server.  User Profile Sync stuck on starting and Calendar Overlay not working. I created a calendar overlay a month ago, containing 7 other calendars and it works fine.  It currently still works if I add items to one of the 7 calendars, those items show up on the calendar with the overaly. But if I try and create a new calendar and add overlay to it - containing different calendars, nothing appears.   No calendar items from the overlay calendars that I've added. This has only started happening since my User Profile Sync stopped working - are the two related, somehow? I get no errors at all - just a blank calendar!  Frustrating!! Thanks for any help.  

Why Search Option is not working correctly in the People Search Box?

  

I have SharePoint Server 2010 Enterprise based intra.
I have added People search box.

Why I click the Search Options, it opens the fields top of the webpart below the search box.
So basically 2 webpart looks like they are top of each others.


Kenny_I

Save Changes not working correctly when SQL table has a trigger

  

Hi all,

My WCF isn't working currently when a SQL table has a trigger on it that updates a column.

My table:

(SalesID int, SalesNumber nvarchar(10), OrderType nvarchar(3), OrderDate datetime) the trigger creates a new formatted string value for SalesNumber based on the OrderType and the SalesID, e.g GRN00001

The trigger is applied when the WCF service adds a new record. But the return values for SalesNumber is still NULL. I'm not sure why it will not update. If I restart the programme it retrieves the correct data...

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();
  return dsUpdated;
}

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();

  tblSales dsNew = tblSales_FindID(dsUpdated.SaleOrderID);
  return dsNew;
}


Neither way works...

 

 

 


Multiple issues with dropdown list controls not working correctly

  

Overview
I am using WSS 3.0 and SharePoint Designer.  I have modified one of the items in my NewForm page so that I have a filtered lookup using a spdatasource. The filter works great, but my issue is that I can't seem to save the users selection back to the list itself.

Issue when using an ASP.NET dropdown list
I am able to bind the filtered spdatasource to an ASP.NET dropdown list control, however the item that is selected in the dropdown list is not being saved back to the list.  I am guessing that this is because the dropdown list itself is not tied directly to the appropriate list item, but... I can't seem to figure out how or where to do this.  I don't see anything in the data properties box in SharePoint Designer that allows me to tie the data back to the list itself.  Maybe I am just overlooking it somewhere?

Issue when using the native SharePoint Data View DropDownList with a filtered spdatasource
When I select "Data Fields..." on the dropdown control I get the Change Data Bindings dialog box.  From here I can select a data field to save the value back to (which resolves the issue noted for the asp.net control) and I can select my spdatasource, but... the display text and value fields below that never populate.  Thus, the dropdown list is empty when the user is filling ou

Second instance of Reporting Services not working correctly

  

Background:

Need to access Reporting Services from outside firewall. The IT department installed second instance of RS on a box outside the firewall and pointed it to the Report Server inside the firewall. The application that runs the reports uses Forms Authentication and appears to working correctly. It picks up the "cookie" from RS and calls the report with the cookie in the header.

The Problem:

The call to programmatically login to RS works...but when the report is requested, a page comes up and asks the user to enter the username and password for the "data source". Once a "sql server user" is entered, and the user clicks on the "View Report" button, the report comes up. Why is RS asking for credentials for the report's data source???


Save Changes not working correctly when SQL table has a trigger

  

Hi all,

My WCF isn't working currently when a SQL table has a trigger on it that updates a column.

My table:

(SalesID int, SalesNumber nvarchar(10), OrderType nvarchar(3), OrderDate datetime) the trigger creates a new formatted string value for SalesNumber based on the OrderType and the SalesID, e.g GRN00001

The trigger is applied when the WCF service adds a new record. But the return values for SalesNumber is still NULL. I'm not sure why it will not update. If I restart the programme it retrieves the correct data...

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();
  return dsUpdated;
}

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();

  tblSales dsNew = tblSales_FindID(dsUpdated.SaleOrderID);
  return dsNew;
}


Neither way works...

 

 

 


textbox in the form but text_changed not working correctly

  

Hiya,


I got a textbox in my form and I want to when a user start typing in the textbox the listbox below the textbox will select the item that starts with that string


for example, it i type I

than in myserver side code will call that SearchString method which will go through that listbox and do the rest...

protected void CountryTxt_TextChanged(object sender, EventArgs e)
    {
        string s = CountryTxt.Text;
        SearchString(s);
    }


the problem is it only stops in the textchanged after I press the enter key; it doesn't seem to work just by typing the characters in the textbox...

<asp:TextBox ID="MachineTxt"
         runat="server" Width="42px"
         ontextchanged="CountryTxt_TextChanged" AutoPostBack="True"> </asp:TextBox>

Can someone give me some indications whether I'm doing something wrong ?

Cheers


    claudi







People Search Not working correctly for Moss2007

  

Good Morning All

I am new to Sharepoint support, I am having difficulty figuring why i can find some people but not others.

It is completely random, i also checked the on central admin but not finding any clue how to confgigure it.

This question is for sharepont 2007, If I am at wrong place please send me the right URL.

Any help will be greatly appreciated

Thanks a lot


SqlDataSource WHERE Parameters - QueryString and Default value not working correctly?

  

This is really easy, but I can't seem to get this working correctly...

 

When using SqlDataSource and press on Configure Data Source, I have selected my data source.

I have selected * all records and pressed the WHERE button  (so it starts to bulld a query).

 

 

I have set the following values:

 

Column: NewOrUsed (only contains 1 of 2 values, either "New" or "Used")

Operator: =

Source: QueryString

QueryString Field: (Eval("NewOrUsed").ToString)

Default Value: New

 

 

However it doesn't seem to work, always returns no records even though I know there are a number of records matching "New"

 

 

What am I doing wrong?


My Profile - View "XXXXXXX" User Profile not working correctly

  

Hi,

Our organisation is using SharePoint 2007 SP2. 

We've recently discovered that when a user clicks on another user's name on a standard SharePoint site called "SharePoint Investment Site", they request a link such as...

http://sharepointsite.com/sites/12345/_layouts/userdisp.aspx?ID=18

Which redirects the user to a "My Profile" page with the address...

http://mysite.com/Person.aspx?accountname=microsoft\gatesb&Source=http://sharepointsite.com/sites/12345/_layouts/userdisp.aspx&Force=1&ID=18&Title="SharePoint Investment Site"

On the "My Profile" page, I can see microsoft\gatesb profile. On the top right of the screen I get the following links...

"View SharePoint Investment Site User Info" & "Add to My Colleagues".

Does anyone know why the "User Info" link has got "SharePoint Investment Site" in it? It's passed by userdisp.aspx in the "Title" parameter.

Also, the "User Info" link is to http://sharepointsite.com/sites/12345/_layouts/userdisp.aspx?Force=1&ID=18. Which is the URL for microsoft\gatesb, not "View SharePoint Investment Site User Info".

Can anyone help clear this mess up?

Thanks


Working with SharePoint document libraries

  
Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Working with DropDownList and ListBox Controls in ASP.NET

  
"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

Server side validation of Fileupload control not working

  
 

 


I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.


Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
       

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
        Else
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

Row command working on all rows not selected one?

  

Hi,

I have this code that hides a column in a gridview.  (The column houses another nested gridview).


    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
            Else
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub


The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


Thanks.


upload file not working

  

Hi,

iam using masterpage and ajax update panel, i have child page called  fileupload.aspx,i try to upload the file

but its not working , can i use updatepanel in child page , pls very urgent

looking forward for answer.




Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend