|
Hi,
I am trying to post a message to twitter from my ASP.NET Application.so downlaoded the Twitterizer.Framework.dll and try the below code. but i am getting error message like
"{Twitterizer.Framework.TwitterizerException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 128.242.240.116:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)"
Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);
string TwitterMsg = message.Text;
if (message.Text.Length > 120)
{
TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com";
}
else
{
TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com";
}
twitter.Status.Update(TwitterMsg);
lblTwitMsg.InnerText = "Your have shout successfully on http://twitter.com/" + TwitterUserName;
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
Hi,
I don't know the twitter framework, but it seems that the twitter host is not reachable. A quick ping and telnet test showed me, that I can connect to this host. Did you checked that you can reach the host (ping and telnet at port 80)? Maybe your firewall does not allow the connection?
Regards
Sebastian
|
|
|
|
|
This process is no longer. Twitter changed their process to OAuth process. and I am looking for a sample code. Can anybody please send me the code of twitter OAuth process.
|
|
|
|
|
i have one survey page (survey.aspx), on submit it inserts records in DB and redirect to (thanks.aspx). when again i used to execute same page its again insert data to DB and redirect to thanks.aspx page. but perticularly on IE(Internet explorer), second time & onwards its not inserting data and redirect to same page, i.e survey.aspx.
i tried with page.forms[0].reset(); but its not working plz help.
thanks in advance.
|
|
|
|
|
1. are you using GET method?
2. use VS debugger and check the flow. Tell us whats causing it if you are unable to resolve it.
|
|
|
|
|
i'm using like dis,
function clear_form() {
document.forms[0].reset();
}
<form id="form1" runat="server" method="post" target="_self" onsubmit="this.clear_form();return true">
if you know any other way plz guide.
|
|
|
|
|
punit belani wrote: target="_self" onsubmit="this.clear_form();return true"
It says, clear the form on submit and reload the page! Where are you doing a DB update? Redirection to other page?
further, target attributes generally work with action attribute. Why have you used target here?
|
|
|
|
|
actually im trying wid this, according to searching guide. the exact scenario is as i mentioned in question. so what can i do, if i want on submit first insert data and then reset the form and then redirect to thanks page?
|
|
|
|
|
punit belani wrote: i want on submit first insert data and then reset the form and then redirect to thanks page
1. submit first. Use a Submit button
2. on button click event handler, insert the data in database
3. you don't need to clear the form! As you are already going to a Thank you page. Just redirect it the thanks page.
4. Whenever a new person does a survey, the page will load afresh and the controls will auto reset.
Just in case (which you shouldnt!), you have a flow where you have to reset the controls manually for such kind of survey functionality - then do it on server side for that particular scenario. Clear the controls values of that panel.
|
|
|
|
|
|
Hi everyone. I download the Ajax Control toolkit for .Net 3.5 and embedded in VS 2008. then I drag a control on the form. after running webform the error came up in browser.
Server Error in '/' Application.
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.]
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +7680766
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583
System.Resources.ResourceManager.GetString(String name, CultureInfo culture) +74
AjaxControlToolkit.Properties.Resources.get_E_NoScriptManager() in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\Properties\Resources.Designer.cs:68
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control) in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:331
AjaxControlToolkit.ComboBox.OnLoad(EventArgs e) in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\ComboBox\ComboBox.cs:523
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
|
|
|
|
|
have you added ajax control toolkit dll in bin folder?
|
|
|
|
|
What is the thread culture you are using? Error says that it's a culture specific issue and resource files related to the culture you are trying is missing. Get the resource files of AjaxControlToolkit for the locale you are using.
|
|
|
|
|
|
|
Add
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
tage on your page or If you are using Master page then just use the above tag on master page.
|
|
|
|
|
You might need to add the toolscript manager to your code.
Thatsanun.N
|
|
|
|
|
Hi
I am developing a web application and I am having to use CSS2.1, which I have discovered does not provide a simple way to rotate text. Therefore, I am asking anyone if they know of another way to rotate text through 90 degrees?
|
|
|
|
|
|
My initial thought was OMG they have upgraded The Captain!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi all,
I am new to rss feeds, please help.
I am facing problem to consume rss feeds, I found several articles on How to consume RSS feeds, they helped me to some extened but I didn't get info for what exactly i am looking.
My problem is:
I tried to consume feeds from these two URLs
http://www.sowetan.co.za/rss/Sowetan_TopStories.xml
http://rss.news.yahoo.com/rss/mostviewed
I've used this code to get the feeds info
XmlTextReader readerSport = new XmlTextReader("http://www.sowetan.co.za/rss/Sowetan_TopStories.xml"); //http://rss.news.yahoo.com/rss/mostviewed
DataSet dsSport = new DataSet();
dsSport.Clear();
dsSport.ReadXml(readerSport);
for both the feed dataset have same 8 tables but with diffrent names, and if i write the xml using the folloing code
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("http://www.sowetan.co.za/rss/Sowetan_TopStories.xml");
//xmlDoc.Load("http://rss.news.yahoo.com/rss/mostviewed");
xmlDoc.Save(Server.MapPath("~/sowetan.xml"));
after observing the genrated xml, both the xml have diffrent structure.
My Questions are:
1. What information required to display the feed content?
2. if we have diffrent structures for the genrated xml how can we write a single transform method?
3. Is all the 8 tables data required for displayingrss content, In most article i found they've used only for table 3
4. I want to open the feed content on my webpage, how it can be done.
Please any one help me on the above quesions.
|
|
|
|
|
when i m accessing database from my Default.aspx page exception raises i:e
Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'.
any idea how to solve this?
|
|
|
|
|
Don't use integrated security and specify a username and password in your connection string.
|
|
|
|
|
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
hv i to use this
string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
|
|
|
|
|
hotthoughtguy wrote: string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
Something like that. I think it is user id instead of username, and of course no quotes around the values. For a good reference see http://www.connectionstrings.com/[^]
|
|
|
|