|
if you attach a link in facebook or LinkedIn then it will automatically determine the title of the page and it will also let you choose from some of the images? how to this in ASP.NET?
|
|
|
|
|
What you're looking for is HttpWebRequest and HttpWebResponse. These can be used to talk to websites using HTTP and download their content just the same way your browser does.
Here's an article right here on CodeProject[^]. Also some MSDN reference material here [^]and here[^].
Basically you will take the URL, send a HTTP GET request, the server will return the HTML of the webpage. You will need some string processing (generally called "HTML scraping" if you want to Google) to get the content you're after. Then any image locations you find in your HTML scraping, you will need to get their URLs and send HTTP GET requests for each to download the image data.
Make sense? So, keywords for Google:
HttpWebRequest
HttpWebResponse
HTML Scraping
Typical n-tiered architecture:
DB <-> Junk(0) <-> ... <-> Junk(n-1) <-> Pretty
|
|
|
|
|
Hi,
1. I want to display a seperator between each horizontal menu item. how can i do this.
2. can i able to give different background colors for each menu item. if possible how can i do that..
Thanks,
|
|
|
|
|
|
|
Can we assign same domain name to multiple websites on same web server?
|
|
|
|
|
I am not sure what you are trying to achieve.
Even if you do so, say some how, which website you want to return when user will navigate to that website?
I could think of the following scenario you could do:
1. You can create different sub domains and assign each sub domains to each website.
2. You can also write your own ISAPI extension to redirect to different websites based on your need/logic on the same web server.
3. Easiest of all, assign domain to a default website, create a custom http handler, server.transfer to other site based on the your business logic.
Hope this will help.
|
|
|
|
|
dear experts ,
i am using a calendar control on web form now problem i am facing is
how to restrict user to select a date otherwise it should show error like required field validator
any one guide me how to achieve this?
Http://www.gen-sys.com
Government Dyal Singh College Lahore.
|
|
|
|
|
You may have to use a CustomValidator rather than a RequiredFieldValidator.
|
|
|
|
|
Hello,
I have placed a website online and now I would like to be able to place search words so that google can find that site...
How can I add search words for this website in google please?
Thanks
|
|
|
|
|
This is taking the wrong approach to the problem. It's a common assumption that having search words will drive people towards your site in Google, but that's a misconception. What you need to do is investigate Search Engine Optimisation (SEO), which targets things like having quality inbound links and extremely well laid out pages with well written text.
|
|
|
|
|
|
The best way to get Google interested, is having links to your site on many other sites, already known to Google; it also may not be the easy way... Putting your website's URL in the relevant field of your CP profile is a small step in that direction.
Then there is http://www.google.com/addurl.html[^], however I always have had my doubts about it.
A lot has been said and written about SEO, and only some of it has been valid at some point in time; Google keeps improving its system to keep lousy material out, and give meaningful rankings to valuable material.
Warning: there has been a time where the (X)HTML of your page had to be exact for Google to scan you; if you claimed XHTML and made a mistake, your page got ignored for sure. this[^] is a good validator.
And whatever you try, be prepared to wait a typical 2 to 4 weeks before any result will show.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
i want to know what's the best way to have a forum on my website similar to forums.asp.net?
|
|
|
|
|
Sir;
Check this[^] up.
Help people,so poeple can help you.
|
|
|
|
|
guys;
i use this code to reset a group of radiobuttons. but it gives me 'radiobuttons is null or not an object' (the code below)
Dim resetmycontrols As String = _
"var radiobuttons = document.getElementsByName('MyGroup');" & _
"var checkboxes = document.getElementsByName('MyGroupChk');" & _
"var i = 0;" & _
"for(i = 0; i <= radiobuttons.length; i++) radiobuttons[i].checkd= false;" & _
"for(i = 0; i <= checkboxes.length; i++) checkboxes[i].checkd= false;"
ScriptManager.RegisterClientScriptBlock(Me, Me.[GetType](), "resetmycontrols", resetmycontrols, True)
what should i do?
Help people,so poeple can help you.
|
|
|
|
|
Ali Al Omairi(Abu AlHassan) wrote: but it gives me 'radiobuttons is null or not an object'
In which line? Also Include the HTML code in your question.
|
|
|
|
|
thatraja wrote: In which line?
Actually, this code will be rendered as a single line.
but the exception is thrown exactly on radiobuttons.length in the first for loop.
About the HTMl, I have 2 tables the first contains in each row a radio button with the name 'MyGroup' e.i.
<table>
<tr>
<td>
<input type="radio" name="MyGroup" />
</td>
</tr>
<table>
the other contains in each row a checkbox with the name 'MyGroupChk' e.i.
<table>
<tr>
<td>
<input type="checkbox " name="MyGroupChk" />
</td>
</tr>
<table>
Help people,so poeple can help you.
|
|
|
|
|
Ali Al Omairi(Abu AlHassan) wrote: Actually, this code will be rendered as a single line.
but the exception is thrown exactly on radiobuttons.length in the first for loop
Well, I know it will render as a single line, But I asked the same.
OK, is your page using master page?
|
|
|
|
|
Yes, but there is no 'runat="srever" on the radio buttons nor the checkboxes.
Help people,so poeple can help you.
|
|
|
|
|
Hi, maybe u shud post the html where the 'MyGroup' and 'MyGroupChk' are.
Make sure that indeed those two elements have an attribute called name="MyGroup" for instance, otherwise if it's an id="MyGroup" then correct your code like so:
var radiobuttons = document.getElementsById('MyGroup');
var radiobuttons = document.getElementsById('MyGroupChk');
and again in your loop you may want to correct this:
radiobuttons[i].checkd=false;
to:
radiobuttons[i].checked=false;
In case you are using master pages, make sure that your controls still maintain the same name/id when viewed on client side (right-click -> View Source)
Good luck.
|
|
|
|
|
Sir;
thank you for correcting my ".checkd "
In the same I am going to make you a favor and correct your document.getElementsByID('SomeId') to document.getElementById('SomeId') (without s).
Actually, we use document.getElementById('SomeId') to get an element with an id of 'SomeId'.
And also document.getElementsByName('SomeName') to get an array of elements sharing the same neme of 'SomeName' such as radio buttons or checkboxes in the same group.
regards;
Help people,so poeple can help you.
|
|
|
|
|
Hi,
I want to ask what's the best way to determine the image dimentioin when I want to preview on my webpage? is it by doing that programmatically or it's better to add a fielkd in the database photo_dimention and set the dimentioon according to the value in that field?
Thanks
|
|
|
|
|
Dude, you couldn't create only one thread with one question and there to write all what you need, instead of creating one thread for each question?!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
I prefer one thread per question. Has a few advantages. For one, when people come back later to find answers to similar questions, they aren't deluged with irrelevant information... they get a single question and its corresponding answer. Also easier to tell when the question has been answered and doesn't force a single person to answer all of the questions when they may only know the answer to one.
|
|
|
|