How To Make A Course Profile Page That Includes Course Syllabus
Dec 5, 2010
im trying to make a course profile page that includes course syllabus, etc. im using querystring to get course id. i can upload course files to course folder like an instructor but i can't list and download the files in that directory.
View 5 Replies
Similar Messages:
Jan 26, 2010
Is it possible to allow an administrator to write to a readonly profile property by redefining the profile property in a web.config file used for administrators pages?
I have a unique account number which must be assigned to each new user (using the default asp.net membership provider). After reading a couple of articles it seemed it would just be easier to define it as a profile property instead of creating a custom membership provider. When the user makes changes to their profile on a profile page I create, I want the value to be readonly. When an admin views the profile I actually want them to assign the value to the property in their page.
View 1 Replies
Oct 21, 2010
I have atleast 10 websites that have different css,html,javasacripts and webconfig. But the same code behind files.With this design everything is hard to maintain. So I decided to work on it and I started moving all the queries in the code beghind file to stored procedures. Since every website uses the same database.
What I have decided is to make use of themes and multiple master pages? IS this the best way to go about it?
Also lets say I have two templates. There is site A and site B. both using different templates. And have pages Home About Us and Contact.
Now would I be creating three different masterpages? for each template so 6 in total? ( since none of the templates are supposed to look the same)
or Should I just create two masterpages? if so how would I manage the html of the page so it looks different?
View 1 Replies
Jan 3, 2011
I am using profile services to store some attributes of users registered in the website. Now I am making a display profile page for a user. The problem is that the profile loads easily when I am running the site from VS 2010, but it gives the following error when I run it from IIS7 on my local machine:
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[Code]....
[code]....
View 4 Replies
Aug 6, 2010
I'm trying to update/create the user profile for a specific user that will not be the logged on user of the moment. I'm able to do this with the following code:
'Dim p As ProfileBase = ProfileBase.Create(Email, False)
View 3 Replies
Feb 4, 2010
I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code
[Code]....
But because I just have profile like that, it is updating the profile of user1 not the new user i just created
[Code]....
View 5 Replies
Jul 29, 2010
I found that i can use Response.WriteFile to include them and most of the pages work, except that the login page is not working.
View 4 Replies
Dec 8, 2010
I am trying to create a quesry that will grant me access to 3 entities that are related. Here is the SQL of what I am looking for.
[Code]....
to do this, I create the following LINQ
[Code]....
How the relationship is following
.1 to * - CLAIM_REF to RESERVE_LINE_REF
.1 to * - RESERVE_LINE_REF to FIN_TRAN_REF
There is no direct association between CLAIM_REF and FIN_TRAN_REF, they are only associated through RESERVE_LINE_REF What is the proper LINQ Query to mimic the SQL statement above?
View 1 Replies
Jul 8, 2010
Are there sources that could guide me making a profile page like facebook, friendster, etc? I tried searching it but there are no reliable resources.
View 1 Replies
May 21, 2010
I want to send an email that has a machine readable part you cut and paste into an asp.net page and you get the information. I have stored all the information in an object and then used an XMLSerizer to create some xml. It all worked fine until I added some Images as byte[] to the object. If I dump the resulting string to disk then I can recreate the object fine but after it appears in the email client and I try to cut and paste it it never works. Clearly there are non standard characters coming out that email clients don't like.
Is there some encoding I could apply to my XML that would make it display correctly in an email client? Then I could cut, paste, decode and deserilize to get my object back.
View 1 Replies
Sep 1, 2010
I have been reading up on this all day, and I can't find the answer (or more likely, don't understand the answers I have found) to my problem. I am completely new ASP.NET and trying to make a trasition from Classic ASP.
In classic ASP it was possible to 'pass' variables between include files. In ASP.NET includes are very different. I'll keep this simple:
I have 'header', 'content' and 'footer' pages. The header and footer are both 'includes' in the content page.
I want to be able to pass a variable from the header to the footer. Heres a snip of my code so far:
[Code]....
[Code]....
[Code]....
However this errors crops up in the footer when run:
Compiler Error Message: BC30451: Name 'helloworld' is not declared.
So how do I make this variable available to the pages involved??
I imagine there is more than one way of doing this for many circumstances.
View 4 Replies
Dec 5, 2010
I'm being stupid but don't know what I'm missing.I want to use asp.net profile and have a profile property.So in the webconfig for my site I've added:
<profile>
<properties>
<add name="Name"/>
</properties>
</profile>
But in the code behind a page I cannot use Profile.Visual Studio is just saying the Profile is not known in the current context.Thus I cannot do
Profile.Name = ....
or
x = Profile.GetPropertyValue(....)
View 13 Replies
Apr 14, 2010
in that i have also put a image control and upload control for uploading a book image and image uploaded is stored in a seperate folder only image name is stored in database.what i want is when user upload image he can view it on tha page without storing it on server folder directly from where image is selected and when he click on save only than image and its name is stored.problem is i can not view uploaded image without stroing it in folder.is there any way i can store image temporary to view and if user dont save data image is deleted from thereor image is directly viewed from client`s pc in the page.
View 9 Replies
Nov 12, 2010
I'm trying to use Profiles so I could get/set FirstName, LastName for users. I have installed the tables (from aspnet_regsql tool, that also installed membership), the web.config looks like this:
<profile defaultProvider="AspNetSqlProfileProvider" enabled="true">
<providers>
<!--<clear />-->
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral,
[Code]....
The problem is that I have no idea how to get/set FirstName, LastName. I'm reading from Apress book (Beginning ASP.NET 3.5 From Novice to Profesional), they say simply write: Profile.FirstName ..... but when I write Profile intelisence doesn't display, it displays ProfileManager and the like.
View 3 Replies
Mar 22, 2011
I developed a .Net 3.5 x64 web application that includes a custom HttpHandler in the config:
<add path="*.class1" verb="GET" type="ClassLibrary1.Class1Handler"/>
This works when the platform target for ClassLibrary1 is set at x86.
However, when I set this to x64 I get the following error when I run web application starts (it compiles just fine): Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Does this mean that a HttpHandler can be compiled at x86 only?That doesn't make much sense to me.Does anyone have an idea of what could be going on?Edit 1:The ClassLibrary1 project is just an empty class library project with a single HttpHandler added (which is also empty).Edit 2:I am also getting these warning messages when compiling, I am pretty sure they have something to do with this problem: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor HttpTestEdit 3:I manually edited the project file to force references to the x64 assemblies, like this:
<Reference Include="$(Windir)Microsoft.NETFramework64v2.0.50727System.dll"/>
This does supress the above warning message, but the problem isn't resolved.
View 2 Replies
Nov 19, 2010
I have a web site [URL] which had users profiles and accounts, and each user has his own user account name, I want once the user enter the url then his account user name after that to redirect him to his account page
ex. a user account name is xxx once he go to url [URL] it will automatically redirect him to [URL]
can we do such thing using HttpModule?
View 3 Replies
Mar 26, 2011
I have a profile page that sends my users, once they register to a profile page which basically allows them the edit their profile. I use
<
a
href="@Href("~/Account/Profile",
WebSecurity.CurrentUserId)">Edit
your profile</a>
But what i noticed was: When the user goes to the profile page in the url is their account ID. if i change that id for example [URL] to [URL] then i can edit the other users profiles. Im using WebSecurity.RequireAuthenticatedUser(); But im guessing i need to use RequireUser(String)?? To be honest im just lost maybe i need a ( if xxx is IsCurrentUser )?
View 4 Replies
Dec 9, 2010
I Have the following code which fires OnCreatedUser and doesn't throw any errors. Profile.Title is getting set to the correct value when inspected after the assignment.
public void CreateUserForm_CreatedUser(object sender, EventArgs e)
{
var ddlTitle = (DropDownList)CreateUserWizardStep1.ContentTemplateContainer.FindControl("Title");
[code]...
View 1 Replies
Mar 10, 2011
I am loading .aspx and .ascx files as StreamReader.
I want each file to register it's javascript and stylesheet dependencies in some declaration like a <%@ ClientDependency path="~/Scripts/jquery-1.4.1.min.js" %>.
Is there an existing convention for doing such a thing? I don't need an implementation, but I don't want to create a new syntax if there is already a way to do it.
Also, what are the guidelines for custom <%@ blocks in ASP.NET?
View 3 Replies
Nov 16, 2010
Compile and Publish Site - but i want to be able to update .HTM includes? I have a few pages that have JQUERY sliders and every onces in a while the client wants to update IMAGES, i thought it would be easy if i could access the .HTM file update code instead of doing a recompile! is this even possible? or am i doing it complety wrong?
View 2 Replies
Jan 12, 2011
I am using URL Routing to route user to his profile page, which is a child page. Now the problem is that all the images, javascripts references are distorted when i user the url to reach that page whether logged in or not logged in (both the cases). But after reaching this page when i login from this page thru my modal popup login control, all the references seem to work fine. It is to be noted that i am still in that same page which i reached after url routing. So upon logging from here the whole page works and displays fine.
How come the references are automatically adjusted when i am logging in from this page and are not referenced when i log in from other page and route here or when i am logged out?
Global.asax code:
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("UseridRoute", new Route
(
"profile/{user}",
new CustomRouteHandler("~/UserProfile.aspx")
));
}
View 2 Replies
Jan 15, 2010
When I right click on ASP.NET development server, it says http://localhost:1394/testing
as the ROOT URL. This does not go well with my code. I think the main reason is my code assumes it is in the root folder, and things start breaking when that is not the case. If I deploy this website, then it all works, but I lose my debugging capabilities. Is there a way I can make it skip the name of the folder (which is "testing" in this case)?I am using virtual URL. Things break on virtual urls, not on static ones. (But virtual url works fine when deployed, and make sure it is in the root folder, otherwise it will not work.) [URL]
View 2 Replies
Nov 11, 2010
I am trying to populate a dropdown from a stored procedure that includes parameters. The parameters are programmatically defined variables. I have been working at this for hours, and scoured the internet for a tutorial. I have come up with the following solution below. However, it does not work. Its not pulling any data, and I am not even sure that the page is making it into the GetLast5Schedules_Selecting Event. There has to be a more efficient/less time consuming way to do this!
[Code]....
[Code]....
[Code]....
View 1 Replies
Dec 9, 2010
In asp.net GridView i am using HyperLinkField column when click on the hyperLink, defalut.aspx and hyperLink are appended.
Example:
http://localhost:4416/Default.aspx //Home-Page
when clicked on hyerLink from HyperLinkField column, there is an append of localhost and HyperLink.
http://localhost:4416/www.google.co.in //on-click of link
Expected output: www.google.co.in
How to navigate to HyperLink?
View 2 Replies
Jul 17, 2010
I have Gridview1 that brings up the columns Resorts, Seasons, Seasons_ID, Resorts_ID, and User_ID
The three ID's are all foreign keys from related tables, and they are together a combined primary key of the table being accessed (they were defined that way to prevent duplicate entries for any User/Resort/Season combination).
Now the problem: I want to use the selected row from that gridview in the WHERE clause of a SQLDatasource by setting the WHERE clause up like:
WHERE (([Resort_ID] = @Resort_ID) AND ([Season_ID] = @Season_ID) AND ([User_ID] = @User_ID)) , with the parameters each coming from statements like
Gridview1.SelectedValue
When I select a row in the Gridview, I get the following error:
Operand type clash: uniqueidentifier is incompatible with int
I am pretty sure this has to do with the User_ID being in the WHERE clause.
So I have tried something like this to access the selected index:
Gridview1.DataKeys(Gridview1.SelectedIndex).Value
This does not work, as it seems to return only the first key (of three) in the DataKeyNames list.
So the question: How can I use the SelectedIndex of that gridview for such a purpose when the key contains a UserID?
View 8 Replies