Web Forms :: Programmatically Implement A Facebook Style Page Access?

Apr 21, 2010

I have an asp.net app that allows users to create personal pages which can be publicly accessed thru a "directory" page. The content of the pages is stored in sql server, so a given user's page is dynamically created thru the code that executes when the relevant link on the directory page is clicked.

I would like to take this a step further by allowing access to a given user's page directly thru the browser's address bar, something like www.thegreatestsite.com/jim (pretty much like You Tube, Facebook, etc.).

I could achieve this by manually creating a folder under the root, called "jim" and putting a default.aspx page in it which would have code in it's load event that would dynamically create jim's page.

However, I would like this "additional feature" to be created automatically, as part of the sign up process of the user.

View 2 Replies


Similar Messages:

Web Forms :: Programmatically Access A Div In A Master Page Style Sheet?

Jun 19, 2010

I would like to programmatically access a div in a style sheet for my master page and change its height value depending on the content page loaded.

Can this be done using Javascript in the Master page or in the code behind for the respective page? What I would like is something such as this if possible

When this content page loads, change the height value of this div in the css file

I don't want to use separate Master pages as this seems to defeat the whole purpose of the Master page

View 6 Replies

Social Networking :: How To Access Facebook Page At Dialog Of Facebook Send Button

Aug 18, 2012

I see that only name,group,email address we can access at facebook send button. How can i send to my facebook page wall (where i am admin) by clicking facebook send button. It's by default don't show it.

View 1 Replies

AJAX :: Facebook Wall Style Partial Page Rendering?

Jan 31, 2011

I have to create facebook style wall in my project. So far I assume that I will get X(the number that needs to be shown be default) number of wall posts from database, bind them to some control like Repeater and add update panel in each row in repeater so that only the portion of page only related to that post is updated once any new comment is added in that post.

Now, since I am new to AJAX so cant figure out how to display the "older post" link functionality there. As we have link at the bottom of facebook wall which once clicked appends the certain number of older posts at the end of the wall.

Similarly, once a new post is added by someone, it gets added at the top of the wall, how can I acheive that so tha only the limited portion at the top of the wall gets refersed and updated instead of whole page post back.

View 2 Replies

How To Implement Facebook Like Button On Website For Each Photo On Page

Aug 19, 2010

I have a page that have 5 to 10 photos of a person, If some user comes into this page he should see facebook "Like" button next to each photo on that page.

I have installed Javascript SDk on my site, I can use XFBML also. Just post me some sample code if you have any?

View 1 Replies

Forms Data Controls :: Generate A Facebook Style Look To A Web App?

May 7, 2010

Anyone have a clue as to how to generate a facebook style look to a web app. I mean the way they have comments indented following a persons post?

View 5 Replies

Forms Data Controls :: Facebook Style Wall Using ASP Repeater?

Apr 28, 2010

i have managed to develop a status wall some what similar to facebook, using Repeater Controls- Parent Repeater is bound to the status and the child repeater is bound to the comments inside that status. I am strugling to implement the following solution- hiding and displaying a btnDeleteComments - depending of the owner of the comment- i.e. only owner of the wall and those who leave the comment can only delete that comment.

Status X
Comment A - left by member John
Comment B - Left by Member Doe
Comment C - Left by Member Harry

The owner of the wall can delete all comments, and only John can delete comment A, Doe can delete comment B and so on Here is what i have tried so far

1. fill a data set with two tables and relate them (table one = status, Table 2 = comments of that status)
2. data bind the repeater to this data set
3. here is the HTML of the child repeater

<asp:Repeater ID="rptComment" runat="server"
datasource='<%#((DataRowView)Container.DataItem).Row.GetChildRows("myrelation")%>'
OnItemCommand="rptCommentonCommand">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<asp:Table
ID="Tblcomments"
runat="server"
Width="70%"
BackColor="#f5f5f5">
<asp:TableRow>
<asp:TableCell>
<asp:Image ID="ImgComPic"
ImageUrl='<%# DataBinder.Eval(Container.DataItem, "["comPicThumbPath"]")%>'
runat="server" />
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="TxtDisplayComment"
ReadOnly="true" TextMode="MultiLine"
BackColor="#f5f5f5"
Wrap="true"
BorderStyle="None"
Rows ="3"
BorderWidth="0px" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "["Comment"]")%>'
CssClass="WrappedTextBox"
Font-Bold="true"
Font-Size="smaller"
ForeColor="Gray"
Font-Names="Verdana"
MaxLength="250">
</asp:TextBox>
<asp:Label
ID="LblCommentDate"
runat="server"
Font-Names="Verdana"
Font-Size="X-Small"
ForeColor="LightGray"
Text='<%# DataBinder.Eval(Container.DataItem, "["CreateDate"]")%>'>
</asp:Label>
</asp:TableCell>
<asp:TableCell HorizontalAlign="Right">
<asp:Button ID="BtnDeleteCom" runat="server"
CommandName=' <%# DataBinder.Eval(Container.DataItem, "["CommentID"]")%>'
Text="Delete" Width="60px" CommandArgument="DeleteCom" CssClass="buttonDelCom"
Visible=' <%# DataBinder.Eval(Container.DataItem, "["ViewersComment"]")%>' />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
</ItemTemplate>
</asp:Repeater>

The higlighted bit is causing the cast invalid error- i thought this would do the trick, by deafult all the delete buttons next to each comment is hidden for members other then the owner of the wall- and only if they are the one who left the comment will teh delete button be visible-

<%# DataBinder.Eval(Container.DataItem, "["ViewersComment"]")%>'

The SQL which retreives the comments for a specific status, also retrieves a column2 ViewersComment which is either 'true' of 'false', indicating wether that comment was left by this person viewing the status wall-

View 3 Replies

Web Forms :: Apply Style 'bold' Programmatically?

Aug 14, 2010

i want the first item in the dropdownlist to be red and bold (VB.net).Red works,but not bold. An suggestion is welcome.

z1 = New ListItem("choose an item", 0)
z1.Attributes.Add("style", "font-bold:true;background-color:red")

also tried: z1.Attributes.Add("style", "font-weight:bold;background-color:red")
DropDownList1.Items.Add(z1)

View 1 Replies

Web Forms :: Programmatically Access A Themed Page's Background Color Or Other CSS Property?

Jun 18, 2010

This was originally posted, in error, to another forum. Not sure how that happened. Anyways, here goes... I have a web app that uses javascript functions to make rounded corners. One of the functions requires two colors as parameters. I cannot change this function definition. My web app is in asp.net 4.0 and uses master pages and themes. To facilitate programmatic access, I moved all javascript declaration into the code behind file of the master page. It gets generated in the load event: I declare it there as a big
string (using StringBuilder) and then put it into the page with Page.

ClientScript.RegisterClientScriptBlock(... Now that I have introduced themes into my application, I have discovered a serious problem. These themes each utilize their own CSS and skin files to paint the various elements of the app's web pages in different colors (of course). But remember, as parameters, one of my javascript functions requires two colors. And now that I have themes I can no longer manually code these colors into the javascript declaration... Now I have to discover a way to extract the background color and one other color from the current theme's CSS file. Then I can feed that into the javascript declarations in the master page's PageLoad event in the master page's code behind file. This would allow the javascript function to be called on the page load and to use the current theme's colors as parameters.

View 2 Replies

Access Facebook UserId In Facebook Canvas Before OAuth Authentification?

Sep 1, 2010

In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC)

But i want to store the access token in a database along with the facebook user id that i can save different access tokens for different facebook users accessing my application.

So when i query the facebook user id and if it doen't return any access token, i request permissions and get the access token for that user.

How do i access the Facebook UserID for the user accessing my canvas application before doing any authentification?

View 2 Replies

Web Forms :: Can Implement Thumbnail Like Facebook

Aug 25, 2010

how i can implement thumbnail like facebook?

chose a part of image and show it in profile?

View 3 Replies

Forms Data Controls :: Programmatically Changing Control's Style Sheet?

Dec 13, 2010

For reasons, I have an <a> tag in my master sheet rather than an ASP link. I want to access this html control from the server when a post back happens and change its style sheet. I have tried many a thing but as yet am still unsuccessful.

in short this is what i can't do but want to...

page.form.controls.item(0).sytle = "bob"

..but can't.

View 2 Replies

How To Create Photo Albums Like Facebook Style

Jan 7, 2010

I want to implement and allow users to create their own photo albums on my website.Now i was proposing that i have 2 tables:-Quote:
tbl_albums{album_id, user_id, album_name, info, date_added}
tbl_album_images{image_id, album_id, user_id, caption, date_added}
So one table would contain information about the album and the other would be the images inside the album.firstly does this seem like a good approach?If so, i want to know what would be the best way to allow users to do this?

View 6 Replies

Create Facebook Style News Feed With JQuery?

Jan 27, 2011

I am developing a web application by using asp.net 3.5 and sql server 2008R2. I have to create a page as like as facebook News Feed (wall post). I need post Status and reply comments. I know it will be done by jQuery but I am not expart of Query. Anyone help me with sample code or demo project?

View 1 Replies

Social Networking :: Is Like Box Of Facebook Page Automatically Send Change To Facebook Page Wall

Aug 20, 2012

I have website with facebook like box for facebook page (eg, abc) . Now if any new post in their at website it will automatically post at wall or not.

View 1 Replies

Programmatically Change Style (padding) Of A Column In GridView

Feb 26, 2010

I need to change padding for one column in ASP.NET GridView, while all other CSS atributes defined in external CSS file should be left untouched. How can I do it? Update: Below is my code that solved the problem:

protected void gvwMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[0].Attributes.Add("style", "padding:0");
}

View 1 Replies

Way To Implement The PRG Design Style In A Small Site

Feb 20, 2010

I'm trying to figure out a logical and quick way to implement the "PRG" design style in a small site I'm doing, and I'm finding an issue I can't think of a good way to solve.I have a form. It has 2 fields (first and last name). When the user submits the form, I check to make sure that they have data in them before I save it to the database. If they do not, then I show them a nice little error message and leave what little they have entered still in the form.However, in order to correctly implement PRG, as I understand it

View 1 Replies

Implement The Table-style Layout With Javascript Solution?

Nov 25, 2010

We got a requirement to implment following structure of table (It's a sample; data source is dynamic). Notice that there are intermediate Total (sum) values for the month. If we have the data source (Date and Amount) besides Total, which is calculated out, generate this kind of table-style layout dynamitcally?

Date Amount
==========================
1 Nov 300
22 Nov 500
30 Nov 200
Total 1000
5 Dec 100
28 Dec 200
Total 300

View 5 Replies

Javascript - How To Programmatically Upload Pictures To Facebook

Dec 13, 2010

Ok, so here was my first question: How do I allow visitors on my site to share my photos on their facebook news feed?

After implementing it I realized what I really want is to upload the image as a photo to their photo album.

How would I got about getting an image on my site, to upload to their photo album, when they click on a facebook icon next to the image?

View 2 Replies

Social Networking :: Programmatically How To Create A Facebook App

May 7, 2015

I want while login to facebook from my site then an application will be create  in facebook and App ID and App Secret code will be returned to me .

I am using VS2013 (.Net frame work 4.5) with C#

View 1 Replies

Implement Threaded Conversations Like Facebook Wall?

Jun 9, 2010

I'm just wondering what's the best way to implement a threaded conversation like the Facebook Wall where the comments are displayed under each post, and older comments are collapsed and expandable. My instinct is to use a nested datalist, but I think that might take a toll on performance.

View 2 Replies

How To Implement Invite Users Functionality At Facebook (iFrame/.Net)

Mar 7, 2010

I want to implement the famous Invite Friends button at my application. Because it's an iFrame I can use FB.Connect methods or XFBML. Can anyone suggest a way to do it in either of these techniques?

View 1 Replies

AJAX :: Implement Custom Like Button Like Facebook Using UpdatePanel

Feb 25, 2016

I want to comments and this comments users will like but with in update panel. I have problem click buton like number rising in database. But in page don't rise. Update Panel below. 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:LinkButton ID="lnkbegen" data-toggle="tooltip" data-placement="bottom" title="Beğendim" runat="server" OnClick="lnkbegen_Click">
<i class="fa fa-futbol-o"></i>

[Code] .....

View 1 Replies

Programmatically Get Data On Group's Facebook Wall Without Having To Popup Login Screen?

Sep 16, 2010

i have a group page. i am creating a website for the group and they want to be able to see the recent facebook updates (what you see on the group's facebook wall) on their website. is this possible without having to have a facebook popup login and just programatically pass in my login information?

View 1 Replies

Web Forms :: Treeview Style Doesn't Apply In The Page If That Page Is Using Mater Page

Jun 10, 2010

I've encountered a problem when I put a treeview in a page which is using master page. The treeview style doesn't apply.For example, I set the nodes with different colors in different levels. But the treeview nodes are still displayed in the default color(bule).

The treeview code is :

[Code]....

If I use these code in a page which doesn't use a master page. The nodes are shown in colors.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved