|
how do i can check 1 account of gmail?(i have user and pass).
or
Login gmail from my site and get return value successfull or fail.
|
|
|
|
|
The first place to start would be to read the documentation. GMail API[^]
Failure is not an option; it's the default selection.
|
|
|
|
|
My requirement is:
www.example.com/soltee should point to www.example.com/restaurants.aspx?name=soltee
like facebook/john will redirect to john's page
i followed this Link[^]
problem here is
www.example.com/restaurants/soltee works fine coz url with /restaurants/*** will redirect to restaurant.aspx
but if i remove restaurants form maping url in global.asax every url starting with www.example.com/ will first redirect to restaurants.aspx once.
please help me
|
|
|
|
|
in stored procedures how to connect database?
please send me examples.
|
|
|
|
|
You don't connect to a database from a stored procedure. You connect to a database to execute a stored procedure.
Pick up a book on ADO.NET and read it.
Failure is not an option; it's the default selection.
|
|
|
|
|
instead of a query you need to call a stored procedure.
|
|
|
|
|
Hi,
I'm trying to creat a timer that count down and when it reaches 00:00 to alert with a popup and disable the form.
Here is the client side code:
<asp:UpdatePanel runat="server" ID="updPanel">
<ContentTemplate>
<div class="visibleDiv">
<asp:Label ID="lblTimer" runat="server" Font-Bold="true" Font-Size="14"></asp:Label>
</div>
<asp:Timer ID="Timer1" runat="server" Enabled="true" Interval="500" OnTick="Timer1_Tick">
</asp:Timer>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
I'm disabling the timer at the Timer_Tick event,
checking when the minutes and seconds are 0.
My problem is that i can't disable the form or the submit button.
Can someone please assist me?
|
|
|
|
|
Are you getting any type of error messages or is the button just not being disabled?
Can we also see the code when you are disabling the button.
|
|
|
|
|
Joshua Omundson wrote: Are you getting any type of error messages or is the button just not being
disabled?
Nop, i don't get any error, the button is just not being disable.
Joshua Omundson wrote: Can we also see the code when you are disabling the button
I'm doing it at the page load event in side some if condition. Also tried puting it inside the time tick event.
When i debuged it i saw that the if statment return true.
|
|
|
|
|
You have to use javascript for countdown timers. Try to google javascript countdown timers,
I don't have sample code that is easy to paste right now at the moment.
|
|
|
|
|
jkirkerx wrote: You have to use javascript for countdown timers.
I can't because i'm getting all kinds of parameters from server side and then activating the timer.
|
|
|
|
|
Hi,
i am new to .net technology and presently working on project. So there is requirement that i have to delete grid row on button click that also placed in grid.
so i don't know how to do that!!
Thanx for help!!!
Chandan Aryan
|
|
|
|
|
|
hi boss if u get the answer plz send me that...
|
|
|
|
|
use grid view_row_deleting event
Fix your problem..
|
|
|
|
|
|
Add Command Buttons in grid.
On RowDeleting event trap the id or any thing by which you can execute delete query. execute query and again bind grid.
|
|
|
|
|
I've been struggling with the same problem for a few days now without getting anywhere. In my aspx page I try to call a PageMethod from a javascript and then inserting the result of that call into a div.
MyPage.aspx
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" EnablePageMethods="true">
<Scripts>
<asp:ScriptReference Path="~/javascript/myscript.js" />
</Scripts>
</ajaxToolkit:ToolkitScriptManager>
...
...
<a href="javascript:myFunction();">Click to run script</a>
...
...
<div id='theDiv'></div>
MyPage.aspx.cs
[System.Web.Services.WebMethod]
public static string ReturnTheString()
{
return "This is the string returned";
}
And finally my javascript function where everything goes wrong myscript.js
function myFunction()
{
PageMethods.ReturnTheString(OnSucceeded, OnFailed);
}
function OnSucceeded(result)
{
var myDiv = document.getElementById('theDiv');
myDiv.innerHTML = result;
}
function OnFailed(error)
{
alert(error.get_message());
}
The problem is that I don't get the expexted "This is the string returned" as result in my OnSucceeded js function. And when I debug my website and set up a breakpoint in ReturnTheString() the code never runs.. My result parameter is sometimes just empty and sometimes has the value of almost my whole page (starting with
modified 27-Mar-12 2:51am.
|
|
|
|
|
Today I finally found what was the cause of this behaviour - and fixed it. It turned out I was missing the following lines in my
web.config file:<br />
<pre lang="csharp">
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</pre><br />
<br />
Hopefully this might help someone else who gets stuck with this problem :)
|
|
|
|
|
This is an invalid script resource request.
This is an invalid webresource request.
The I/O operation has been aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3)
The client disconnected.
|
|
|
|
|
What's the cause of the car not driving?
It's hard to tell what's causing your problems without additional information. Can you reproduce the errors? Are you logging the complete exceptions? You should, as they contain the information on the origin of the exception, usually pointing to a particular place in your code.
Bastard Programmer from Hell
|
|
|
|
|
How use dropdown control with updatePanel for updating in asp.net c# like for dropdown country,state and city? Please reply soon.
vipinkumar
|
|
|
|
|
|
|
i have one problem when in inserting data into the database .when user start quiz then after press next button ,at that time whatever user selecting is store in one database but actually is not stored i used detaillist view to display quiz question.
quiz.aspx.cs code is:
<br />
<br />
protected void Button1_Click1(object sender, EventArgs e)<br />
{<br />
<br />
<br />
System.Data.DataRowView dr = (System.Data.DataRowView)DetailsView1.DataItem;<br />
<br />
Answer a = new Answer();<br />
a.QuestionID = dr["QuestionID"].ToString();<br />
a.CorrectAnswer = dr["CorrectAnswer"].ToString();<br />
<br />
if (RadioButton1.Checked == true)<br />
{<br />
crropt = "option1";<br />
}<br />
else if (RadioButton2.Checked == true)<br />
{<br />
crropt = "option2";<br />
}<br />
else if (RadioButton3.Checked == true)<br />
{<br />
crropt = "option3";<br />
}<br />
else if (RadioButton4.Checked == true)<br />
{<br />
crropt = "option4";<br />
}<br />
a.UserAnswer = crropt;<br />
<br />
ArrayList al = (ArrayList)Session["AnswerList"];<br />
al.Add(a);<br />
<br />
Session.Add("AnswerList", al);<br />
<br />
if (DetailsView1.PageIndex == DetailsView1.PageCount - 1)<br />
{<br />
Response.Redirect("evaluate.aspx");<br />
}<br />
else<br />
{<br />
DetailsView1.PageIndex++;<br />
Button1.Text = "Finished";<br />
}<br />
and i get error like:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Answer' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 79:
Line 80: // Create Answer object to save values
Line 81: Answer a = new Answer();
Line 82: a.QuestionID = dr["QuestionID"].ToString();
Line 83: a.CorrectAnswer = dr["CorrectAnswer"].ToString();
|
|
|
|