|
I tried to connect in this way the javascript function to "OnSelectedIndexChanged" event hanlder. But Its not giving me any
thing. Means its not adding this "Javascript" function to the event. What may be the problem. If you can please help me by
giving some code snippet too please.
ddlMonRes.Attributes.Add("OnSelectedIndexChanged", "GetDayOfMonth1();")
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
OnSelectedIndexChanged is a serverside event handler. The javascript corespondent in onChange .
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
|
Mention how many KB data you want to transfer(Max data upload limit) in <httpruntime> section in web.config file. The default is 4096KB.
<system.web>
<httpruntime maxrequestlength="size in kbytes">
....
Depending upon the size of amount of data transfer you may need to change/adjust the timeout also.
Arindam,
|
|
|
|
|
Chnage in httpRuntime section of web config file ... metion number of KB needed. like this ..
httpRuntime maxRequestLength="10000"
.... if you write above means you want maximun 10000 KB data to be transfered. Assume that angle bracket are there as per the structure of web config file.
NB: By default the maximum data that can be transffered is 4096 KB that means it looks like httpRuntime maxRequestLength="4096"
Arindam
|
|
|
|
|
I want to show my error page in new page. Old page should still shows old data.
I write in applicationerror event in global, this:
response.write("window.open('errorpage.aspx')");
But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag.
If I use Server.ClearError() method, the old page will be cleared entirely and shows blank page.
I WANT MY OLD PAGE TO SHOW THE OLD DATA WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION.
I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method.
Please instruct me what to do.
Thanks
Rastgar
|
|
|
|
|
i'm sure. nobody knows.
Thanks
Rastgar
|
|
|
|
|
Hi all.
First, sorry for my bad english.
I'm searching for a tool that I can use to made my asp.net tests more quickly. Example:
Suppose that I have a web form that has several controls and a button "Save" to persist them into a database table.
I compile and run it on my web browser. I type the data for each control, select each dropdownlist, etc, etc. Then I click on "Save". At this point, at some logic on my code behind/business class I got an error (any type of error, logic, database, etc etc). I need to STOP de debugging, fix the bug and run the web form again on my web browser. With this, I'm going to thest my web form again. So, I need to type every data of my controls AGAIN and AGAIN and AGAIN whenever I got an error (it's a cycle, until I fix all the bugs). This sucks. I'm finding for a tool that "encapsulates" the POST data (everything: data that I typed on my controls, viewstate, etc, etc) and post it AUTOMATICALLY to my page (at server side). With this, I can test the logic IMMEDIATELY, with no need to type the SAME data again.
If you know some tool, please, help me.
Best Regards,
Marco Alves.
|
|
|
|
|
|
A month ago I opened a test account with Flickr. It required me to use a Yahoo mail account. I used an account that I have had for a long time. Everything was easy.
Today I decided to create a real account. I created a new Yahoo mail account to associate it with the new Flickr account. It was easy to create the new Yahoo account. But when I try to create a new Flickr account, it asks me to login into Yahoo. After I log in into the Yahoo account, A Flickr page comes back asking me "Why do you want to log into 'oldusername' with the 'newusername'" It seems Flickr has associated my computer with the old Yahoo mail/old Flickr account, and want let me create a new account.
Now that is a bit bothersome but I also can value the ability to not let a user use more than one account from the same computer.
So my question is: How does Flickr do it? I am sure it does not use cookies, as I cleared all the cookies and also tried to use another browser which I had never used to log into Flickr. In fact I read somewhere that other people have tried rebooting in Linux and Flickr still would recognize them with the old account. So it seems no windows registry either.
Any ideas?
|
|
|
|
|
My guess is that it sounds like they're associating usernames with IP addresses.
-------------------
abort, retry, fail?
|
|
|
|
|
my guess is that it sounds like they are associating usernames with the email address(that one when you registering you yahoo acount used the backup email address )
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
I'd guess that they use a cookie.
|
|
|
|
|
Hi.
I have to create parser(s) that will be able to parse xls, csv and txt files. All the files to parse are data from customers which has to be parsed, massaged and inserted into the database. The problem is that each customer presents its own format so I guess I have to build different parsers for each customer.
Did anyone have any experience with this? What would be the best approach? What should I use (beside VB.NET)? Any examples will be appreciated as well.
Thank you,
Alex.
|
|
|
|
|
You could have a look at Microsoft Biztalk - this is what it is designed for.
|
|
|
|
|
Hello all,
I'm in the process of writing an HTTP Module that will determine the size of the response and display it. I'm pretty new the http module thing so there's probably a good way to do this that I haven't found yet, but I've tried everything I can think of. Here's what I have so far:
public class ResponseSizeHttpModule : IHttpModule
{
public int RespSize;
public void Init(HttpApplication application)
{
application.PreSendRequestHeaders += new EventHandler(this.ResponseCheck);
application.EndRequest += new EventHandler(this.ResponseMessage);
}
private void ResponseCheck(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
StreamReader reader = new StreamReader(context.Response.OutputStream);
reader.ReadToEnd();
reader.Close();
byte[] buffer = System.Text.Encoding.UTF8.GetBytes(reader.ToString());
RespSize = buffer.Length;
}
private void ResponseMessage(Object source, EventArgs e)
{
HttpApplication application = (HttpApplication)source;
HttpContext context = application.Context;
context.Response.Write("Page size: " + RespSize + " bytes.");
}
public void Dispose(){}
}
So far, the message comes up but the page size is always 0, so that's not right. It's come to my attention that the bold part that OutputStream is write-only, if I understand this correctly. How would I go about intercepting what's being written to the OutputStream so I can determine its size? Like I said, my knowledge of this particular facet of .Net isn't all that great, so if anyone can recommend a good method or alternative, I'd be glad to hear it.
Thanks in advance,
Jan
-------------------
abort, retry, fail?
|
|
|
|
|
What are the product versioning guidelines for an ASP.NET web site storing data in the database? I want the versioning to reflect what version the database is at and what version the product is at. In my product, database version and the dlls can be different. But they must look similar or close. Any pointers please.
Thanks.
|
|
|
|
|
Your question seems to be complex... Could you please explain it clearly... I think I can help you....
Regards,
Venkatesh Mookkan.
Software Engineer
|
|
|
|
|
Hi Friends,
I have developed one mobile web page using asp.net2005
I want ot know whether the request comming from mobile or desktop PC when i logged into the site.it should come message like welcome to mobile users and welcome to desktop users.
If you know the solution for this login Please reply back to me.
Thanking you
|
|
|
|
|
Hi
I am using .net 2.0 , I am trying to validate a text box control inside a webpart zone and the webpart zone is in a page which use a master page. Ii have tried giving all the possible id of the control (ID, UniqueID & ClientID) but at runtime requiredfieldvalidator not able to fiend the textbox control. What should I do to resulve the problem ?
Regards
Smruti Ranjan Rout.
|
|
|
|
|
when using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder.
better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects...
asithangae
|
|
|
|
|
Dear Asithangae
Thanks for your repay , of course I can use js to validate but it should also work for requiredfieldvalidation control. As I am using .clientId which return the client side id that is id in the browser. Please let me know if there any way out.
Regards
Smruti
smruti
|
|
|
|
|
hi all,
my project depends on a popup that appears on a number of pages, the problem is that the popup appears behind the caller page which does not serve the logic we need.
i used smartnavigation property to enable the message appears without hiding the details of the page it self
if i delete smartnavigation the popup appears but the message hides the contents of the page
thanks
abdelhameed81
|
|
|
|
|
i am newbie to asp.net. Currently i using making web application using C# and aSP.NET(VISUAL STUDIO 2005).i am making web page to track Inquiry coming for services. I want to make inquiry id as combination of serviceid and maximum
no in the respective service so i am trying when user select respective service. i would populate 1 + of max no. of respective service.Where do i write code for same. Is it possible as after selecting service id i am generating query. Please guide me.
regards
imran khan
|
|
|
|
|
HI Imran,
YOu can generate the respective service id at database level.If you are using database table then simply declare a variable and then select max id and increase by 1.See the example below -
DECLARE @intMAXID INTEGER
SET NOCOUNT ON
--Get the Maximum ID from the Table and increment it by 1
SELECT @intMaxID = MAX([ContactId])+1 FROM TESTTABLE
IF @intMaxID is NULL
select @intMaxID = 1
I hope this is helpful for you as i understand the problem .If you want another then please let me know.
Vicky
|
|
|
|