|
Ajax is a concept that allows you to go to a server to retrieve data and to publish it on the page without a full page refresh.
To navigate from one URL to another just use Javascript location.href = 'otherurl.htm'
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
I have a requirement which is basically Drag & Drop values from ListBox to a Panel or DataGrid. How can I do ?
Pls advise
ahdk
|
|
|
|
|
hi
this is the code for show the download dialog page code.it works well.but my requirement is just open.but it shows open/save/download.it takes lot of time.
i need when we click on the link then open the page .
plz help me to solve the problem.
string filename = Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename + "");
Response.Flush();
Response.WriteFile(filepath);
regards
venkaT
venkat
|
|
|
|
|
You can't avoid this. AFAIK it is in built security. You wouldn't want any application to run on your machine when you click a link would you? This ensures you know what is behind the link you have clicked and therefor your responsibility to run. I don't believe you can turn it off.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Hi,
I am using Dunda's Charts in my asp.net application. I want to refresh two charts on selectedindexchanged event of a dropdown ddlmovie. I have written the code:
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ddlMovie);
ddlMovie.Attributes["onchange"] = Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
ddlMovie.Attributes["onchange"] = Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
}
But it refreshes the chart2 only.. i want to refresh both the charts... Any solution...
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
The the help forums on the dundas website...
http://support.dundas.com/forum/[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
it is because the way you arr adding onchange (only second onchange will occur)
try this
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ddlMovie);
ddlMovie.Attributes["onchange"] = refreshCharts();
}
private void refreshCharts()
{
Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
}
-----
|
|
|
|
|
hi All
Am using Vb2003, and am trying to create a Web service, whe i try to Create one Project, i have ASP.NET Version issues, the Errors is as following
Visual Studio.Net has detected that the specified web server is not running ASP.NET version 1.1. you will be unable to run ASP.net web Application or Services.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Check the properties in IIS. There is one option to set the version of .NET framework.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Thanks Man,
This Option worked well
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
did u install IIS after Framework , then please Reinstall Only the Framework ...
Goto Framework command prompt and run "aspnet_regiis -i"
hope it will work
|
|
|
|
|
Goto .NET console and type aspnet_regiis -i which will install ASP.NET on IIS
|
|
|
|
|
hai
i am trying to concatenate some spaces with listbox items. But it is not taking.
If u find any solution please send
with regards,
Alex
Alex Varghese
|
|
|
|
|
alexvarghese wrote: i am trying to concatenate some spaces with listbox items
Can you show us your code that is not working?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
HI,
I am in a big problem please anybody help me.....
Of the user is session timed out then nobody can enter the system until IIS restarts....I got this message from my clients..the code that i used is given below.
void Session_Start(object sender, EventArgs e)
{
// To add the parameters from the request to the New Session
if (Session.IsNewSession)
{
if ((Request.Headers["Cookie"] != null) && Request.Headers["Cookie"].IndexOf("TIMEOUT") >= 0)
{
Server.Transfer(Request.ApplicationPath + "/View/Pages/SessionTimedOut.aspx");
return;
}
}
// for checking session timeout
HttpCookie cookie = new HttpCookie("TIMEOUT", "TIMEOUT");
HttpContext.Current.Response.Cookies.Add(cookie);
}
I am using NHibernate...and asp.net c#
please anybody help me..
Regards
Alex.
|
|
|
|
|
Malayil alex wrote: Server.Transfer(Request.ApplicationPath + "/View/Pages/SessionTimedOut.aspx");
I'm not sure why you did like that..
I think you can write the code for redirecting in Session_End event, isn't it?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
OK i will try for that...and let you know..
|
|
|
|
|
hai,
I want to select a gridview row,when i m click the any where on the row.
if you have any suggestion please send as soon as Possible.
With regards
Alex
Alex Varghese
|
|
|
|
|
In GridView RowDatbound event, add JS onclick event for the cells.
|
|
|
|
|
Have you tried this code?
protected void OnRowCreated(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
e.Row.Attributes.Add("onclick", "onGridViewRowSelected('" + m_iRowIdx.ToString() + "')");<br />
}<br />
m_iRowIdx++;<br />
}
Ref: How to highlight gridview when row is selected
you know, Google is the best friend..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
>>Score: 1.0 (1 vote)
Can I know why? Is this not useful??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I am creating a web application.
I need authorization by page level.
Means without login user cant get ang page.
For that i am using code in web.config file
My Login page having some CSS and Image.
<authentication mode="Forms" >
<forms loginUrl="Login.aspx" timeout="300">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
If I Use This Code, I am unable to login and also all CSS And Image on the Login Page is not working.
Any one help me to fix my problem.
Thanking U
|
|
|
|
|
(authentication mode="Forms")
(forms loginUrl="Login.aspx" defaultUrl="Activities.aspx" protection="All" path="/"/)
(/authentication)
(authorization)
(deny users="?"/)
(allow users="*"/)
(/authorization)
Piyush Vardhan Singh
|
|
|
|
|
What u send To me not working.
I used it but problem is same.
i cant loged in and no CSS and Image
|
|
|
|
|
when u use form authentication then first login page open and vrfy user and password then access another page
Piyush Vardhan Singh
|
|
|
|