|
hi to all
can any one tell me how can i login into yahoo by using asp.net???
can i login into any website using asp.net website by giving credentials like User id and password???
waiting for reply..........
actually i want to login other websites also by using my credentials using asp.net code please can any one help me????
This is haneef.............................................................
|
|
|
|
|
It depends on the site. You obviously can't use ASP.NET to log into another website, because ASP.NET is going to be your own website, your website cannot log into another one. You could use C# and a web browser control, tho.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can't do that directly by sending requests to the website. If yahoo allows some web services to get authenticated on their servers, you can use that.
|
|
|
|
|
hi.im working in asp.net & c#.i want to display all the events in the aspx page 2days before its starting date.can anyone help me giving the idea how to proceed with this issue for which il b highly obliged.
thank you
sudipta
|
|
|
|
|
roysudipta wrote: .i want to display all the events in the aspx page 2days before its starting date
What events ? Why you want to display events. You need to rephrase your question as it's not making any sense.
|
|
|
|
|
Hi every one.
I have a problem, I have called a javascript function on the change event of dropdown list. When I use empty alert('') msg that function is called, if alert is not used then it does't fire the function.
Thanks in advance.
|
|
|
|
|
Some of your lines inside that method may be throwing error. Run your page in firefox, and look at the error console Or install firebug and debug the error.
|
|
|
|
|
Here is my code. What error there can be.
function loadd()
{
var firefox=document.getElementById&&!document.all;
if (firefox)
{
var dat = "<table><tr><td>"
dat += "State*</td><td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>"
dat += "<td><select id='drpState'></select></td>"
dat +="</tr><table>"
document.getElementById("dvdrp").innerHTML=null;
document.getElementById("dvdrp").innerHTML += dat;
}
else
{
var dat = "<table><tr><td>"
dat += "State*</td><td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td><td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>"
dat += "<td><select id='drpState'></select></td>"
dat +="</tr><table>"
var parentElement = document.getElementById('dvdrp');
var wrappingDiv = document.createElement('div');
document.getElementById("dvdrp").innerHTML="";
wrappingDiv.innerHTML=dat;
wrappingDiv.innerHTML+="&nbsp;"
parentElement.appendChild(wrappingDiv);
}
}
|
|
|
|
|
coolmindd wrote: Here is my code. What error there can be.
Your code is messed up with HTML tags. Try my suggestion to find it out.
|
|
|
|
|
Hi,
i have uploaded my sit to web server goddady.com
i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a message like
"That assembly does not allow partially trusted callers"
This is my web.config file Please help me on this issue?
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<connectionStrings/>
<system.web>
<compilation debug="false">
<assemblies>
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<authentication mode="Windows"/>
<pages styleSheetTheme="Smoke">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<customErrors mode="Off" defaultRedirect="Error.aspx">
</customErrors>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<identity impersonate="true" />
</system.web>
<system.web.extensions>
<scripting>
<webServices>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>
|
|
|
|
|
Hi,
I have a requirement in which I want to hide list(viewstate) which save previous values entered in textbox and list get popup while entering text in textbox.
I mean I want ot clear viewstate values of textbox.
is there any way to remove viewstate of control.
Thanks in advance,
Nagraj
|
|
|
|
|
Isn't it enableViewstate="false" ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I have set textbox enableViewstate="false" but it won't work.
Is there any link or article I can refer for same.
|
|
|
|
|
Hi, i have a few doubts.. can any one clarify this?
1. Can a webpage contains two different languages...i.e suppose one method is in c# and another method in vb.net?
2. Can a website contains 2 different languages..i.e Suppose one page is in aspx.cs and another one is aspx.vb etc..?
please clarify this and give reasons?
G. Satish
|
|
|
|
|
1 - no
2 - yes
The reason is, the compiler builds your app code, and turns it into a dll. It then builds an instance of your page when it's rendering it, and it can do that, and load a dll that was built in a different .NET language, and as only one page at a time is compiled, different pages can be in a different language without it making any difference.
I've used to this migrate a site from VB.NET to C# a bit at a time in the past. But, the app_code classes I needed to convert all in one go, b/c they cannot be mixed.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Satish - Developer wrote: Can a webpage contains two different languages...i.e suppose one method is in c# and another method in vb.net?
I think no you can't have like these but why you want to use 2 languages
i think you are just posting your doubts before posting one suggestion just google it
Satish - Developer wrote: Can a website contains 2 different languages
Yes your website can contain as many languages that supports CTS.
Just you must have there dll then you can use them.
Note : - All languages(supported by CTS) creates assembly of same IL.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello Friends,
I'm using DataList for displaying records. I've,for example, 22 records
and using paging for 5(5 records per page) but last page holds only 2 records that's why these two records are being displayed in the middle of the page but i want to display these two records at the top..... plz follow this link and click on >>and visit the last page for understanding more i want to say
Click Here
modified on Monday, February 25, 2008 12:48 AM
|
|
|
|
|
Just change the style to align the grid on the top instead of the center.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It is already at the top.......plz visit the link i've given
|
|
|
|
|
Your page is a disaster. You have styles defined willy nilly inside table elements. You have a /TD with no opening TD. All your HTML is in capitals. And the section you refer to, is an inner table and the td that contains it, absolutely does not contain any tags to force the alignment of the inner table in any direction. So, set the style of the td so that it's contents are aligned to the top, like I said in the first place, and it should be fine.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I developed a project in asp.net with vb.net.
Now i want to apply AJAX concept for 2 pages how can i do this?
|
|
|
|
|
Well, the obvious way is to write the code.
Do you have a specific use for AJAX, or did you just read about it in a trade journal and decide to use it ?
There are two ways to do this.
1 - download and install the ASP.NET AJAX library, and use controls from it. This is easy, but it won't teach you anything about AJAX
2 - buy a book and learn how to write AJAX code, and then write the code as needed. This is slower, but you have more control and will actually learn about AJAX along the way
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi friend!!
please can you guide me how to use AJAX controls in my existing application. i have installed AJAX Library.
|
|
|
|
|
I recommend reading the tutorials that came with it. It's way too broad a topic for me to cover in a forum reply, there are entire books written on that library
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi using ajax i did autofill the text in my textbox,
But same time when auto fill the text in that textbox that selected text value also i like to get...,
Means suppose in that textbox(autofill) i select one student name,
His "ID" also i want to get,
In dropdown we will use text field "name" and value field "ID"...,
Like that i want to display name in that textbox and consider person and his id want to be hidden area,
How to do that?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|