Hi,
On my current project, custom http header variable need to be set while redirecting for http basic auth.
Can I instruct redirect_to for custom headers ?
Thanks.
Hi friends
I have created custom site column with type text and I included in one of content types. But it is allowing me for 255 characters only. In which way I can extend it, say 1024 characters. I did this before by mentioning somewhere in web.config file but I forgot how i did.
Can anyone please tell me how can I achieve this. Thanks in advance.
Hi,
I am querying SharePoint 2010 search using FullTextSqlQuery. The query returns results as long as i run it from the webpart. However, for some reason, i need to run the same query from a custom aspx page deployed under layouts. The query returns a wcf exception.
Has anyone tried running custom queries from pages deployed to layouts folder under 14 hive?
Thanks,
Faiz
I have an install project that launches a custom action at commit which starts the application that was just installed. During the startup of this application I have a method that checks the current user's name to perform some authentication. When launched from this custom action I am getting 'NTAUTHORITY\SYSTEM' instead of 'DOMAIN\USER'
Hello,
In my table I have a serial number field, which is represneted by string.. It has a prefix and some numbers follow. Eg: ABC1234, ABC2345 etc. How to retrieve the largest value (max equivalent of int type) from this column. In my case it would be ABC2345. I probably could retrieve all the data,, sort it and get the same, but that would be slow.
thanks in advance..
I've noticed with Xcode 3.2.2 that all the custom data formatters are no longer working. Some searching around the mailing lists and google confirms others are having the same issue.
A) Anyone else seen this
B) Got a work around or an example custom data formatter plugin that still works in 3.2.2 that I can look to for hints on how to fix the ones I have?
I have de-normalized table, something like
CODES
ID | VALUE
10 | A,B,C
11 | A,B
12 | A,B,C,D,E,F
13 | R,T,D,W,W,W,W,W,S,S
The job is to convert is where each token from VALUE will generate new record. Example:
CODES_TRANS
ID | VALUE_TRANS
10 | A
10 | B
10 | C
11 | A
11 | B
What is the best way to do it in PL/SQL without usage of custom pl/sql packages, ideally with pure SQL?
Obvious solution is to implement it via cursors. Any ideas?
I have a custom loop that excludes categories using this code:
query_posts(array('category__not_in' => array(2,6)));
Instead of specifying the categories to exclude in the code, I'd like to be able to set the option in my custom theme options menu. The code to call the option is get_option('ex_cats');. How do I call this in my query_posts statement?
I think I'm going mad - this seemed like an easy thing to do but I can't find any info on it at all.
I have created a Custom List and added 4 columns to it. Created By and Modified By are already in the list but hidden from the view.
I want to add a Date Modified column (which is a built in field) to this Custom List. How do I do this programmatically?
I have the below text field in my page:
<input class="message" id="message" name="message" type="text" size="65" />
For some reason in the latest FireFox for OS X it is about 200pixels wider than it is in the latest Chrome (mac/pc) FireFox(pc) and IE(pc)
Any suggestions on how I can fix this or why this is happening?
Hi all,
unfortunately the WPF ToolbarTray does not support binding to a collection of ToolbarViewModels (Correct me, if I'm wrong). Thus I want to create the Toolbars programmatically. So there are two tasks, which I don't know how to do:
Select the data template based on the item type.
Instantiate the data template as toolbar
Both should do the same as WPF does, when we use ItemsControl with an enumerable content and empty template.
I used reflector to anaylse what WPF does. Task 1 is done by FrameworkElement.FindTemplateResourceInternal, but this is internal, and I couldn't find any public methods to acomplish the task. Of course one could enumerate all resources and match the data template data type property, but this seems sub-optimal.
Who know's how to acomplish these tasks?
Hi,
I'm reflecting a property 'Blah' its Type is ICollection
public ICollection<string> Blah { get; set; }
private void button1_Click(object sender, RoutedEventArgs e)
{
var pi = GetType().GetProperty("Blah");
MessageBox.Show(pi.PropertyType.ToString());
}
This gives me (as you'd expect!) ICollection<string> ...
But really I want to get the collection type i.e. ICollection (rather than ICollection<string>) - does anyone know how i'd do this please?
Hi all,
In Mac, in skype when we add users to an existing chat, by clicking '+' button on top, a beak like window appears carrying a token field like control. When an user types some name in it and a match is found then a list appears carrying user icon , status icon and his/her name. Also the width of dynamic list is same as beak window.
Can any one suggest some way to create similar control?
Thanks in advance,
Miraaj
Oftentimes I want to bring up a system class in a source view, so that I can browse the properties and methods exposed by the class in a source view. Below is the screenshot of what I mean:
Usually I do this by selecting the class name and pressing F12 (or right clickGo To Definition). However, if I haven't got it anywhere ready, i have type it up and then do Go To Definition. Most of the time I have to delete what I typed later on.
Is there a way to bring up this view without having to type the class name? The VS2010 Navigate To dialog doesn't support this.
byte[] a = HashEncript("a");
public byte[] HashEncript(string Password)
{
SHA512Managed sha = new SHA512Managed();
byte[] hash = sha.ComputeHash(UnicodeEncoding.Unicode.GetBytes(Password));
return hash;
}
i want to save byte[] a this value on my database .My database field is varbinary(64).i use msSQL2008 .how to save ,want to know the insert query with C# code.
I tried making a custom configuration class that went on like this:
WatcherServiceInfoSection<TWatcherServiceDetailElement>
where TWatcherServiceDetailElement is a ConfigurationElement inside it.
Now when I call the type in the ConfigSections area of AppConfig I get the error:
An error occurred creating the configuration section handler for WatcherServiceInfo:
Could not load type 'Library.Common.Utilities.ConfigurationHandler.WatcherServiceInfoSection<ASNDPService.Configuration.WatcherServiceDetailElement>' from assembly
Is what I'm doing possible? Can I have generic types in the type attribute for a custom section element?
EDIT
Additionally, how about ConfigurationElementCollection objects? Like in the above example, how could I do a
[ConfigurationProperty("WatcherServiceDetails", IsRequired = true,
IsDefaultCollection = true)]
[ConfigurationCollection(typeof(TWatcherServiceDetailElement), AddItemName = "WatcherServiceDetail")]
public WatcherServiceDetailCollection<TWatcherServiceDetailElement> WatcherServiceDetails
I'm aware that type parameters aren't allowed for attributes and that's what I want to know how to do.
Hello All!
I have a query with grouping on one of the fields in Crystal Reports. My question is - is there a way to pass that value into a subreport?
I.e. if there are three values in that field, there will be three groups in report. I want a subreport in every group to have that value as its parameter.
Is that possible to accomplish with CR 2008?
Hi,
We've got our navigation setup so that subsites show in the global navigation but we have a requirement to also put custom links to external sites which is straight forward. The tricky part is that some of the custom links need security trimming which you don't get when you add your own links to the navigation.
Just wondering if anyone has got some ideas on how to work around this?
Thanks
Dan
Using ASP.NET and the DataGrid, how do I bind a HyperLinkColumn to more than one field?
Dim detail As New HyperLinkColumn
With detail
.Text = "View Details"
.HeaderText = ""
.NavigateUrl = "\TeamDetail.aspx?Account={0}&Broker={1}"
.DataNavigateUrlField = "AccountKey, BrokerNumberKey"
End With
I was hoping for an data-binding event on HyperLinkColumn but no such luck.
Hi,
In my table I have a date column which the date is displayed in the format "2009-11-18 10:55:28.370"
How can just get the date value of this field in a select statement. e.g.
select id from risks, where creation_date = getdate()
I'm working with a WCF restful/http method that returns a stream of image data. I want to make sure that the content type is marked as "image/png". The method is defined as:
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
public class TileImageService
{
[WebGet(UriTemplate = "{id}")]
public Stream GetTileImage(string id)
{
Bitmap bmp = new Bitmap(173, 173);
Graphics g = Graphics.FromImage(bmp);
g.Clear(Color.Blue);
g.DrawString(DateTime.Now.ToLongTimeString(), new Font("Chiller", 20), Brushes.White, new PointF(10, 10));
g.Flush();
MemoryStream ms = new MemoryStream();
bmp.Save(ms, ImageFormat.Png);
ms.Seek(0, SeekOrigin.Begin);
return ms;
}
}
In Firefox it looks like the content type is marked as application/octet stream. Is there a way to change the content type?
I'm trying to learn Silverlight here, creating a custom control template, however VS2010 refuses to recognize the ControlTemplate type, even though I have referenced the System.Windows assembly (which is by default when basing the project on the standard Silverlight Application template). I'm trying to recreate this seen on another SO stack.
As the title suggests, I'm tyring to pass a variable data type to a template class. Something like this:
frmExample = New LookupForm(Of Models.MyClass) 'Works fine
Dim SelectedType As Type = InstanceOfMyClass.GetType() 'Works fine
repoGeneric = New Repositories.Repository(Of SelectedType) 'Ba-bow!
repoGeneric = New Repositories.Repository(Of InstanceOfMyClass.GetType()) 'Ba-bow!
I'm assuming it's something to do with the template being processed at compile time but even if I'm off the mark there, it wouldn't solve my problem anyway. I can't find any relevant information on using Reflection to instance template classes either.
(How) can I create an instance of a dynamically typed repository at runtime?