|
Jassim Rahma wrote: Also reporting to be saved in a database so Ican show each usur share report for his pages only.
Let Facebook keep its own data. If your user is authorized to share data with your site, you will be able to get the user's likes, shares, wall posts, etc, from Facebook. You don't need to store that stuff yourself.
Please, do yourself a favor and learn the Facebook API!
FACEBOOK API HOME PAGE[^]
I think if you start looking through that, you'll realize Facebook is somewhat system-agnostic. That is, it doesn't know or care that you're using ASP.Net. Everything you do will be in Javascript mostly.
Here's a link to the "Graph API" which is what you'll mostly use.
Graph API Getting Started Tutorial[^]
|
|
|
|
|
Nice one. Looks good... will have to look deep and try out to see how it works. Thanks for sharing.
|
|
|
|
|
How to convert my asp project into exe file.
can i makke my asp website into .exe file?
help me.
Thanks in advance.
Regards
Karthick.RR
|
|
|
|
|
|
thank u....
Can we deploy project into in .exe file ?
|
|
|
|
|
Hi,
I have a post or forum website in ASP.NET and MySQL backend. I want to know what's the best option to save the post's creation time as different people from different countries will access it and it's no proper to show all the EST or GMT time.
what's your suggestion?
Technology News @ www.JassimRahma.com
|
|
|
|
|
I would save it as a UTC in database. Later convert into Local time in my application based on the people using it.
|
|
|
|
|
Just wanted to add that when a user submits a post you should from javascript take current time, convert it to UTC and pass it to the server. And for another user reading this post you receive UTC time from DB, pass it to the client and in javascript convert it to local time. Because client creating a post, web app host, DB server and another client reading the post may all be in different time zones
|
|
|
|
|
var d = new Date();
var localZone = d.getTimezoneOffset()/60;
|
|
|
|
|
<script>
function ss() {
$("#date").text( Date());
}
</script>
use span and give an id ,name is date.
id="date"
<input id="Button1" type="button" value="button" onclick="ss()" />
|
|
|
|
|
Dears,
I got a trouble, I trying to deploy web page to receive data posted by client by "GET" method.
I have one variable name "myvar".
I want to add value to that variable when user input it in same session id.
The result shoulb be like this"
myvar ="value1,value2,value3,..." value is depend on client inputted.
Anyone any idea or that?
Thanks,
Socheat
|
|
|
|
|
Your question is not clear. How is user adding values? Only way to have multiple values in a variable is string concatenation. If you want to keep adding on, just do something like myvar = myvar + ',' + newvalue;
|
|
|
|
|
HI,
Let me same in exmple.
I hage 2 pages, page1.aspx and page2.aspx
1. user1. page1.aspx send request to page2.aspx with method "GET" --> page2.aspx?search=hello
2. user1 again. input next value then redirect to page page2.aspx with same method --> page2.aspx?search=world
What I want to see result in page2.aspx is show all value that user inputted. saerch=hello,world
Anyway to store value like that?
Regards
Socheat
|
|
|
|
|
Have you tried using a temporary cookies to store each search term submitted to page2? The methods Asp.net uses to store state (viewstate, hidden fields, etc) are generally designed to work with POST requests so I don't think there is any client-side feature that will work.
You could also manage a string of submitted requests in javascript but the advantage of the cookie is that all the processing can be done on page2.aspx and return the cookie to the user after each request.
modified 2-Apr-13 21:08pm.
|
|
|
|
|
HI,
thank for your reply, i have used all but it seem not success
1. Cookie, will have problem if borwser disabled cookie.
I will try find another way
Thanks
Socheat
|
|
|
|
|
True, cookies will not work if the user has them turned off.
I think you might need to just come up with a custom solution for this.
|
|
|
|
|
hi friends,
i was worked with validation controls, i was used Required field validator and compare validator for confirm password field .i was used display dynamic for compare validator and dispaly static for required field validator..
i got error message dynamically... actually , my doubt was,
can we specify the property display dynamic in any one of the validation ah?
no need to specify display dynamic to all validator control?
|
|
|
|
|
leosang wrote: i got error message dynamically..
Please share more about the error.
leosang wrote: can we specify the property display dynamic in any one of the validation ah?
no ne<layer>ed to specify display dynamic to all validator control?
Elaborate. Rephrase.
Based on what can be deciphered, following entry should help: Interesting behaviour with RequredFieldValidator with Display="Dynamic"[^]
|
|
|
|
|
HI,
Sorry make it not clear.
What I want is. I have 2 pages, 1 for request and 2 for result
Page1 = textbox user can input any text and will redirect to page2 = page2.aspx?input=textbox
then user again, he back from browser then input next text in textbox = page2.aspx?input=newtext
So, what I need in result in page2.aspx is input = "textbox,newtext"
Note: value is depend on how many time user inputted
Thanks,
Socheat
|
|
|
|
|
i want to add video/audio on my asp.net site dynamically taking link from my access database,
please help m out , i tried <object><embed /> tags but not working, or may be i was doing something wrong, plz help m
|
|
|
|
|
|
Hello,
I recently found a popup calendar control here: http://www.ezineasp.net/post/ASP-Net-PopUp-Calendar-Control.aspx[^] that works great! But the trouble I am running into is that, if I try to apply some validation; e.g. date rangevalidator, to it, nothing happens. I figured out that after the value was being set in the text field that the 'OnTextChanged' event is never being fired, probably because focus is not be given to the textbox. To get the validation to work I had to actually click into the field and press enter, this triggered the desired validation to take place. What I want to happen is for this automatically trigger the validation of course. I set the following fieds CausesValidation="true" AutoPostBack="true" but have had no success. Does anyone have any clues as to what I should do?
|
|
|
|
|
You don't seem to understand how asp.net controls works in general, I don't recommend using every control in the ASP.Net object library because most of them are useless.
I use the Jquery Calandar instead, and use 2 of them for a date range.
Member 9952350 wrote: I figured out that after the value was being set in the text field that the 'OnTextChanged' event is never being fired
onChange is a JavaScript event that fires in the DOM, but the text literally has to change in order to fire, and will fire when you place the value in it, and when the date changes, so most people don't use that event. You trust the value is correct, and use onBlur to double check it after the change is made. If it's wrong, you send them back to the calendar.
http://stackoverflow.com/questions/2856513/trigger-onchange-event-manually[^]
Member 9952350 wrote: CausesValidation="true" AutoPostBack="true"
I believe this just applies to buttons, or the input element type button or an image button. When you set CauseValidation = true, the server will add a line of javascript that will fire the validator control when that button is clicked with a mouse.
I've never used it in a textbox control, but there seems to be support for it. The need to postback a page to check the value of a textbox is stupid. You only want to post a page back once.
The rule of thumb is to validate before submission. You can do it all at once, or on every blur event in the DOM.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.causesvalidation.aspx[^]
[Final Thoughts]
I think the asp.net validators are a joke, and are provided for some demonic reason that I can't figure out. They are unreliable, and I got many phone call complaints about them. So I dumped them and went straight to the DOM for validation. I'm upset because I wasted years using them for no practical purpose or reason, only having to rewrite them all over again.
|
|
|
|
|
Thank you for the insight and yes you sound very angry lol. But I appreciate the perspective, as to, feel like alot the ASP controls not very useful. Anytime you get ready to do any little that is not excatly standard functionality, you basically seem to have to rewrite the entire control/tool to get the job done.
|
|
|
|
|
It comes with experience, as you get better with the UI, you'll find industry standards more useful. But it wasn't me that complained, it was customer feedback and failed checkouts.
But asp.net does rock with in code behind, you can do almost anything with it.
[edit]
It's just my opinion of asp.net controls in general, in which customer complaints were high.
modified 11-Jun-13 15:19pm.
|
|
|
|