|
Hi, can anyone please tell me how i can read from a global resource file in my javascript function? I need to show the message which will be there in a resource file on alert message.
Can anyone tell me ?
|
|
|
|
|
deep7 wrote: how i can read from a global resource file in my javascript function?
I think you can't do this. You can take this value at the server side and put that to hidden textbox. Then you can show this message with javascript alert
|
|
|
|
|
yes even i think that...thanks a lot
Regards,
Dee
|
|
|
|
|
There is no need for a hidden field. The text can be placed in a javascript variable during page load or init.
only two letters away from being an asset
|
|
|
|
|
i found out the way to do it...set the string in server side from global resource file.
then in javascript alert , use it like this:
'<%=strVar%>'
so there no need for hidden textboxes.
|
|
|
|
|
Although placing the text in a javascript variable during page load would work, you can also make an AJAX call to retrieve the message from a resource file.
only two letters away from being an asset
|
|
|
|
|
Hi,
how to transfer gridview column headings from one gridview to another gridview which is in another page
|
|
|
|
|
|
can you be more sepcific?
I Love SQL
|
|
|
|
|
hi!
i need to show the .aspx pages to .html with database support. plz tell me if there is any way to do this...
|
|
|
|
|
Just for name sake you can use URLRewritting. You need to map html extension with isapi_aspnet dll . So when a request comes for HTML page, that will be handled by ASP.NET engine. You can write a HTTPModule that checks the incoming requests and rewrite it to appropriate apx page. So user will be seeing html extension on the browser address bar, but ASP.NET is doing the job in background.
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
|
hi there,
I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one:
I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp.
does anyone know this problem? any help is greatly appreceated!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi,
Can you please paste the changes u have made in web.confing file?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Chetan Ranpariya wrote: Can you please paste the changes u have made in web.confing file?
I think author is using classical ASP
|
|
|
|
|
Ohh,
I apologize for that. I didn't notice that.
Sorry Again
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
ASP I am not sure, but if it is ASP.NET then you can configure this type of errors in web.config file. I think IIS won't handle this.
|
|
|
|
|
Firstofall, thanks for your reply.
I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine).
But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages.
Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?
Thanks again for your time.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
matthias s. wrote: Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?
I think it is not like that. Upto my knowledge, IIS will generate 500 error when it doesn't have any specific information about what the error happened. But in your case you are getting divided by zero exception. So it will throw the exception details to the response. I think that is happening in your case. ? What do you say ?
|
|
|
|
|
matthias s. wrote:
Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?
I don't really have any IIS admin experience, so I could be totally wrong here, but I think that could be your problem. As far as I know you have to configure the web site/virtual directory to be explicitly non-.NET otherwise the request will be passed through the ASP.NET ISAPI filter. How you do this and whether it really has any effect I'm not sure.
|
|
|
|
|
How can display 10 rows in a datagrid with no values if record is not present
|
|
|
|
|
Hi,
Check if your datasource has more than zero rows.
If no then add 10 rows manually to the datasource with blank data and then bind your datagrid to the datasource.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I presume that you are binding the datagrid using a datatable. If no data is present in the datatable, add 10 rows manually and bind that to grid.
Last modified: 10mins after originally posted --
|
|
|
|
|
Hi everyone,
I am developing web application(C# 2005) for local use in our office as intranet.everything working fine in my application,
I have created to-do list fo this i want to display a msgbox before particular event happens.
suppose i have meeting tomorrow at 4PM msgbox must be appear before an hour.
please show me some code
regards,
ASIF
|
|
|
|