View Complete Post
I have a sql server table with the following data:
PrimaryKey ForeignKey DataType Value 1 1 Actor abc2 1 Movie efg3 1 Movie hij4 2 Actor mno5 &
I have a major issue with a project I am working on.
First off, I need to have shared storage for the site, so once an administrator adds a web part and configures it properly, it'll show to the end users as well.
Seconly, I need to have a navigation that displays the pages the site contains.
I've tried to search help using Google, but I can't seem to be able to figure out the
magic words to find anything useful.
Here's the onet.xml if someone is able to tell what I am doing wrong:
<?xml version="1.0" encoding="utf-8"?>
<Project Title="test3" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
<Configuration ID="0" Name="test3">
<!-- Navigation Feature -->
<Property Key="IncludeSubSites" Value="true" />
<Property Key="IncludePages" Value="true" />
Hi,I have grid view control that includes a dropdown control in a template field.I wish to execute some code when the value is changed in the dropdown list. Can't figure out how to capture this event though?Any suggestions?
I am new to gridview.
I want to make a gridview. Its row when selected should direct me to a specific .aspx page.Each row should direct to a different page.
Should I use querystrings for this? Please suggest.
I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.
I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.
using EF3.5sp1 for a project, and I've been working around many of its
problems... as such, my entity partial classes have a lot of logic in
them for change-tracking and whatnot. Obviously, I'd like to factor
this logic out into a common base class,
but of course all my objects must derive from EntityObject. Is it
possible to tell them to derive from some class of my own invention
(which would actually likely derive from EntityObject themselves)?
I'd rather avoid editing the EDMX file unless the changes will be
safe on entity-model-update, since I'm still making changes to the
database schema in this early state of my project.
Also, is there any good workaround for the fact that the change isn't tracked when you change EntityReference.EntityKey?
I know what Singleton Pattern means and Abstract class means.
What I wanted to know was how would this apply to real world.
Could anyone give me any good example or simple explanation.
Say I have a simple website, why would I use any of the above if any.
Why would it simplify my architechture.
Thanks in advace.
I created an application and implemented IHTTPHandler for all incoming request ending with ".aspx" extension.
Under "ProcessRequest" module, I am creating an instance of HttpContext (with URL attributes different from my application's URL i.e. if I am working on localhost then speciying Yahoo.com as its URL) and assigning it to "context" which comes as method argument.
After redirection, an error is generated. Also, the custom HTTPContext is not passed to the requested page (default.aspx, in my case.)
Code is as follows.
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest
Dim requestedUrl As String
Dim targetUrl As String
Dim urlLength As Integer
'Save settings which will be used while redirecting to appropriate page
requestedUrl = context.Request.RawUrl
If requestedUrl.IndexOf("?") >= 0 Then
targetUrl = requestedUrl.Substring(0, requestedUrl.IndexOf("?"))
targetUrl = requestedUrl
If targetUrl = Nothing Or targetUrl.Length = 0 Then
targetUrl = requestedUrl
I hope this is the right place to ask this question.
I'm trying to make a control class library. I want to have a GenericHandler as a WebResource so I could call it from the web project that will use that control.
I need this handler will get parameters from the query string and return JSON data acourding to what it get in the QS.
I know how to create JS and images WebResources, so I tried the same on a generic handler I added to the class library project but all it does is return the source of the handler file and not the result.
Is what I'm trying to do possible? If so, what should I do?