|
Member 4690896 wrote: But i've used a jar file in asp.net using applet html tag
But it's not executed by ASP.NET. It's executed by the JVM installed on clients machine.
|
|
|
|
|
Hi all,
i am using asp.net , c# in vs2005.
i am facing problem of slowness of page(becuase heavy event called for data that is i have four to five dropdownlist control and each dropdownlist is filled based on its precedor value and every seletedindex_changed event call datatbase and fetch the data). what i am now trying is to fetch all the in datatable on page load and from these datatable i would like to fetch data depend on the condition. i am not getting good link to perform the same .
please guide me also suggest what i am approaching would inhance speed of flow or not.
Thank you
regards
imran khan
|
|
|
|
|
We can't help you. We have no idea what data you're loading, what depends on other data, or any other way that we could comment on ways to optimise the load process. We also cannot see the SQL you're using, so we can't comment on how to optimise it. In short, you have given us nothing to help you with.
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,
how to generate pdf report from dataset without using response object in asp.net.
Ashok
|
|
|
|
|
Please don't double post.
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 need urgent help the xact procedure to migrate from mcms 2002(sp1) site to mcms 2002(sp2)..
plz send the article or whatever you think to my email id
krish_sinha345@rediffmail.com
|
|
|
|
|
|
I have two text boxes for login (not using ASP.NET2.0 login control) for username and password and one checkbox for "Remember Password".I want to remember password on the check of checkbox.
Do I have to use cookies?Is there any other way to achieve that since if the user had disabled cookies then this can't be achieved.
I have tried it with cookies but not able to succeed,can anybody suggest me the code ...
no matter its using cookies or not......
my code is
protected void btnLogin_Click(object sender, EventArgs e)
{
try
{
HttpCookie myCookie = new HttpCookie("myCookie");
Response.Cookies.Remove("mycookie");
Response.Cookies.Add(myCookie);
myCookie.Values.Add("UserName", txtUserName.Text.ToString());
myCookie.Values.Add("Password", txtPassword.Text.ToString());
DateTime dtxpiry = DateTime.Now.AddDays(15);
if (chkRememberPassword.Checked == true)
{
if (Request.Cookies["myCookie"] != null)
{
HttpCookie getCookie = Request.Cookies.Get("myCookie");
string userName = getCookie.Values["UserName"].ToString();
string password = getCookie.Values["Password"].ToString();
}
}
for storing and using cookie and if page is valid
if (Page.IsValid)
{
if (validateuser != null)
{
Response.Redirect("abc.aspx");
}
else
{
lblErrorMessage.Visible = true;
lblErrorMessage.Text = "InvalidUser";
}
Thanks in advance,
modified on Thursday, March 13, 2008 12:27 AM
|
|
|
|
|
salon wrote: Do I have to use cookies?
Yes, unless the user has a static IP address, and you use that and store in your DB.
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 )
|
|
|
|
|
Have you tried this
FormsAuthentication.SetAuthCookie(username,true);
the second parameter will create a persistent cookie
|
|
|
|
|
Hi!
i ran into simple problem
Below formats correctly,
<%#DataBinder.Eval(Container.DataItem, "writtendownvalue", "{0:#,###}")%>
but i need to add the value and show as a total so i did
<%#AddWDVToTotal(CInt(DataBinder.Eval(Container.DataItem, "writtendownvalue", "{0:#,###}")))%>
Protected Function AddWDVToTotal(ByVal value As Integer) As String
totalWDV += value
Return value.ToString()
End Function
but it doesnt format. could someone please help what i am doing wrong. thanks
|
|
|
|
|
I am having some difficulty with the video:
"How Do I: Get Started with the ASP.NET AJAX Control Toolkit?"
( http://www.asp.net/learn/ajax-videos/video-76.aspx )
"Learn how to extend your ASP.NET AJAX applications using the ASP.NET AJAX Control Toolkit. This video starts with the very basics, including downloading and installing the toolkit, and adding a few of its controls to a simple ASP.NET AJAX-enabled web page."
The demonstration involves building the TemplateVSI
[IMG]http://i67.photobucket.com/albums/h292/Athono/AjaxControlToolkit.jpg[/IMG]
I have followed the instruction closely but I still got this error:
[IMG]http://i67.photobucket.com/albums/h292/Athono/error.jpg[/IMG]
|
|
|
|
|
|
Hey all.
I have a small JavaScript function that needs to be executed on each tick of my Timer control. However, there is no "OnClientTick" property similar to the "OnClientClick" property for Buttons, ImageButtons, etc. How can I go about doing this?
Thanks, in advance, for any help.
|
|
|
|
|
Timer is an ASP.NET server control. You need to use the JavaScript method setInterval on the client-side
only two letters away from being an asset
|
|
|
|
|
I see. Thank you very much.
In that case, I have a more general question.
I have an AJAX UpdatePanel that updates as a result of a Button click or Timer tick within the UpdatePanel. I need my JavaScript function to execute every time the UpdatePanel updates. How can I go about doing this?
Thanks again, in advance.
|
|
|
|
|
button click is easy, provide a client-side method that calls your JavaScript.
only two letters away from being an asset
|
|
|
|
|
Hello,
I have an application that sets a cookie (for authentication purposes) after a user logs in. When I run the application locally it sets the cookie and runs as it should. However when running on the webserver it appears to not set the cookie and cause me to go back to the login screen (to basically do it over). I tested my app in Firefox and it sets the cookie fine (both locally and on the webserver). Can anyone give any insight on this? Thanks in advance.
|
|
|
|
|
Hi,
I have a asp.net page that uses some ASPNET AJAX controls in Update panel. This page keeps throing this exception. I have checked EventValidation is not set in web.config and i even tried explicitly setting it to false but no luck.
If any of you know how to fix this problem please let me know. Thanks a lot in advance.
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 12/03/2008
Time: 12:21:06
User: N/A
Computer: 148424-WWW1
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/12/2008 12:21:06 PM Event time (UTC): 3/12/2008 12:21:06 PM
Event ID: a226283c7f45419abc2faaea7489e416 Event sequence: 5570
Event occurrence: 7 Event detail code: 0 Application information:
Application domain: /LM/W3SVC/1513945806/Root-4-128497260244773750
Trust level: Full Application Virtual Path: /
Application Path: D:\Inetpub\Websites\WorldTransfer\
Machine name: 148424-WWW1 Process information: Process ID: 3612
Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE
Exception information: Exception type: ArgumentException
Exception message: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Request information:
Request URL: http://www.worldtransfer.co.uk/online/booking/BookingCentre.aspx
Request path: /online/booking/BookingCentre.aspx
User host address: 81.143.113.148 User: Is authenticated: False
Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information: Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
at System.Web.UI.WebControls.TextBox.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Cheers
Sandy
|
|
|
|
|
Hi everybody
How can I build a flash menu that reads its data from a database
Thanks alot..
and a Web Developer in Jedda Int'l Computer Center(JICC)
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Hi everybody
How can I build a menu that reads its data from a database
Thanks alot..
Love you all
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Only one post is enough, any more and you just get ignored. Delete the other.
Have you even tried a rudimentary search for this topic?
only two letters away from being an asset
|
|
|
|
|
You can use inbuilt ASP.NET menu control. Default it uses a web.sitemap file. But you can attach your own providers to that. Write your own provider class and attach. Set the SiteMapDataSource to your new provider name.
|
|
|
|
|
hi,
i have created a database where information on the web page is pulled out from the database using asp.net and have an sql server database. however i need to add javascript functionality to it. the javascript functionality i want to add is a timed text one. does anyone have any suggestions as to how i can achieve this and what is the best way to do it, eg, use dataview, gridview and how i can link the javascript to it. if anyone thinks it would be easier for me to post up some of my code then i will upon request. i hope i have posted this is the right place, if not i will move it to the asp.net bit.
thanks for any help given, it is much needed
|
|
|
|
|
You need to clarify your terminology and understand what you are talking about before anyone else can understand you
young345 wrote: information on the web page is pulled out from the database using asp.net
You don't pull data from a database using ASP.NET. Most likely you mean ADO.NET
young345 wrote: however i need to add javascript functionality to it.
To what? The database? That is how your sentence is structured.
young345 wrote: the javascript functionality i want to add is a timed text one.
What do you mean? What do you want to do?
Subject: javascript and database
Though I applaud you for more than just saying "Help" or "Urgent help, Plz", your question is about adding javascript to a page, not about databases.
only two letters away from being an asset
|
|
|
|