|
Create an Icomparable object for each filename and create a custom comparer.
|
|
|
|
|
Hi All,
I wish to redirect the user to the Custom Error Page, incase of any unhandled exception, for example GeneralErrors.aspx page.
In my web.config file, I have mentioned below.
<customErrors mode="RemoteOnly" defaultRedirect="~/GeneralErrors.aspx" />
But In any unhandled exception, it shows some error (Server Error in '/' Application), and now the URL Changed to below address
http://www.xyz.com/GeneralErrors.aspx?aspxerrorpath=/xxxx.aspx
Here xxxx.aspx is my source page which causes exception. How can I show the custom error page?
Regards,
Jay
|
|
|
|
|
Try using mode="On".
I dont know whether you have been working in localhost/hosting server. If that is the case then you will never get the custom page when you have customError mode is RemoteOnly. In that case You must have mode="On"
Arindam
|
|
|
|
|
Jakkas1 wrote: Try using mode="On".
Actually I wish to see detailed the error messages in my localhost, but the users who may visit my pages in the web should not see the detailed error message. Instead they have redirected to the "Error Page".
It wroks fine with mode="RemoteOnly"
-- modified at 7:46 Thursday 28th December, 2006
Regards,
Jay
|
|
|
|
|
hi everyone
I am modifying a MashUp project in Asp.net with C#.
I got a problem with default values in the textbox.I am not getting the solution.
problem:
========
Actually we are having two files Brokerreview.aspx and BrokerLogLatAdd.aspx. In Brokerreview.aspx page when we click on Mortgage Refresh button we have to go to BrokerLogLatAdd.aspx and get the location in the map.This is working correctly.
But in the page BrokerLogLatAdd.aspx when we click on Add Mortgage Information button we must update the new borrowerinformation.All the records are getting updated except the count which we require.
The problem is we are getting some values defaulty into the TextBox3,TextBox4.which are unnecessary values.. this is the problem
if you want to check the code ,i will send you
If you know the solution or any suggestions to verify the code
please reply.
Thanking you.
|
|
|
|
|
mail it that will explain deeply
|
|
|
|
|
Don't post multiple times. People will respond to the original.
|
|
|
|
|
Hi all,
We are developing an RSS Feed reader, In that i want to get the file creation date of an Feed. How is it possible to get the date from an host system. I can able to get the creation date of an file present in local system. But i am confused in the host.
For eg..
http://www.codeproject.com/webservices/LoungeRSS.aspx[^]
In the above URL i want to get the creation date of "LoungeRSS.aspx" file
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
|
|
|
|
|
Sir/Madam
I have problem in image ... in 5 folder each folder inside 10 image(img) files there ... when i select the folder i want to display the first image and then when i press any of the arrow key i want to display next image..... please any body have idea...
A.Rajapandian
|
|
|
|
|
Your explanation is very clear...
Regards,
Venkatesh Mookkan.
Software Engineer
|
|
|
|
|
Nice... but my problem is how to display the image one by one with help of arrow key...
A.Rajapandian
|
|
|
|
|
Have you ever tried with FSO?
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
Try with FileSystemObject...
Regards,
Venkatesh Mookkan.
Software Engineer
|
|
|
|
|
Dear All,
I am making web application using Asp.net and C#(Visual Studio 2005). In one web page . i have made three controls Autopostback property true.
Out of them two of them works fine. but I am having problem with third one. Is that one can use only two controls on a page whose autopostback true
Please Help me.
regards
imran khan
|
|
|
|
|
There is no restriction on how many controls in your page can have AutoPostback="true".
So something other is going wrong there.
Arindam
|
|
|
|
|
if postback is true then atleast it should go thrugh text_changed. but flow is not going through it . what cold be reason. please guide
regards
imran khan
|
|
|
|
|
What are the 3 controls you are having and which one is creating trouble to you?
Arindam
|
|
|
|
|
Thanks for quick reply
Firh i am using Combo Box Control(Autopostback true). I wrote the following code which work fine(this code is to select service code and fetch from database corresponding max recordno and assign 1+ max record no to textbox1 )
protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
{
setting = ConfigurationManager.ConnectionStrings["Databaseconnection"];
if (setting != null)
{
SqlConnection conn = new SqlConnection(setting.ConnectionString);
query = "select max(serialNO) from inquirydtl where serviceid = '" + DropDownList1.SelectedItem + "'";
SqlCommand cmd = new SqlCommand(query, conn);
conn.Open();
//TextBox1.Text = cmd.ExecuteScalar() + 1;
int i;
//SqlDataReader rdr = cmd.ExecuteReader();
if (cmd.ExecuteScalar().ToString().Equals(""))
{
TextBox1.Text = "000001";
}
else
{
TextBox1.Text = cmd.ExecuteScalar().ToString();
}
TextBox1.Focus();
}
}
Seond i am using Textbox(Autopostback) true .where i want to concatenate it with textbox1.text to generates inquiryid . check for its existnace but it does not work. In debug mode. flow does not go through it.even then i made corresponding TextBox1.AutoPostBack = true; in page load event what is problem. please help
regards
imran khan
|
|
|
|
|
The main point lies what I feel the way TextBox autopostback event reacts.
Basically a <asp:textbox> control can do a autopostback in 3 scenario
1. Ater entering all the character in textbox, if ENTER key is pressed.
2. Ater entering all the character in textbox, if TAB key is pressed.
3. Ater entering all the character in textbox, click anywhere outside of the Textbox.
Like drop down list TextBox cant just fire server side textchangedevent as you keep entering character from keyboard one by one. If you do the same it becomes a client side event that can be tracked using anyclientside event.( onkeypress, onkeydown ... like that)
So make sure that you are initiating the postback event of the Textbox, means you are performing either of the above mentioned activities.
Hope it will help you.
Arindam
|
|
|
|
|
thanks Arindam,
I think that i am just assainging database value(Not entering) to textbox that cuases problem. How can i make sure that even i assaign from database. code execute. please guide me
thanks once againe
regards
imran khan
|
|
|
|
|
I didnt get what exactly you want to do.
Mathod TextBox1_TextChanged(....) event handler only starts executing if those condition is satisfied.
Just a suggestion. You can put your code( whatever you are writing inside TextBox1_TextChanged(....) ) just after populating the textbox values from database.
Arindam,
|
|
|
|
|
hi,
no,I wrote dropdownlist select event to get service id and fetch from database max of corresponing serial no. which i populate in textbox. now based on textbox text. i concatenate both field to create one inquiry id and checkfor it existance. for tha same i wrote code in textbox change event. but it does not fire as i fetching value from database.Now i am checking inquiry existance code on button. Is there any alternate so that user do not need to click button.
regards
imran khan
|
|
|
|
|
Hai Take One CompareField Validator and go to propeties
1.Type= integer
2.Operator= DataTypeChecking.
Happy Coding
Siddu
Software Developer
|
|
|
|
|
HI Imran,
That is not the case and you can use any number of controls that have the AutoPostBack property "true".Could you explain me the exact scenario what you want to ask?
Vicky
|
|
|
|
|
Hello, everyone,
As most of you know, Microsoft will release final AJAX version on January 2007.
I'd like to know if it's possible to include AJAX capabilities in an RDL (SQL Server Reporting Services 2005) file? We'd just need to add an UpdatePanel, right?
Or do we have to wait for a Service Pack...
Thanks,
Raphaël Désalbres
MCP - MCAD - MCSD .NET
|
|
|
|