|
Deepml wrote: I want to use partial classes and basic idea to use it is to put more and more code in Partial classes.
Why not in a simple class? And if you are putting them in normal folder how will you access them? are you creating separate dll for that ? And why you are not storing it into App_Code Folder?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Why not in a simple class?
--Actually my project requirement is like that only.I have to use partial classes.So that after deployment of the Application on Client's server.We can upload only that page related dll on server.
Why not in a simple class? And if you are putting them in normal folder how will you access them?are you creating separate dll for that
-- No I am not creating any dll for that.Actually I am stuck up there only for how to access the partial classes from the normal folder.
And why you are not storing it into App_Code Folder?
--As per my knowledge after publishing the application it creates the only one dll for App_code,I dont want tht.
Now I am trying to create partial class in web application only ..ie. SampleApplication > partial class for default
But How can access this partial class on Default.aspx.cs page..
I have already wasted my one day for this.But i m not getting the solution nad there are very tight deadlines for the project.Please help me ASAP..
|
|
|
|
|
hi all,
i have a website.now my task is to apply themes in all web pages.
actually,
my doubt is there any way to apply the theme by making changes in Global.asax file or i must edit all pages which needs changes..
please reply
the quieter u become more u hear
|
|
|
|
|
The whole point of a theme is surely that you can make changes in one place and htey are applied to all controls that have been themed. Otherwise, they would not be a theme, just a bunch of individual changes.
Did you try google ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ya i know that clearly.... i'm asking abt c# or vb code which runs behind asp environment...
i have created a drop down button for selecting theme... is it necessary to copy the c# code in all web pages or i can make a single change in global.asax which works for all pages.. because my site consists of more than 300 screens...
no apt results in google so far...
did you understood my queston
the quieter u become more u hear
|
|
|
|
|
lawrenceinba wrote: have created a drop down button for selecting theme... is it necessary to copy the c# code in all web pages
Nops! I will suggest you to write a HttpHandler for change the theme runtime.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
how to disable the back button on mozila firefox.
Mahendra Bisht.
|
|
|
|
|
You can't disable it, not in IE, not in FireFox. What are you trying to achieve ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
u cant disable it wat u can delete cashe value to do it something like that in page load of that page
{
response.cache.setcacheabilty(httpcacheabilty.nocache);
response.acche.setallowresponseinbrowserhistry(false);\
}
but this is ok only for one page..
|
|
|
|
|
I want to achieve the same functionality which is implemented on http://www.icicibank.com for back button.
Mahendra Bisht.
|
|
|
|
|
i solved the problem using following code.
But is this code is globally accepted or not please advice me.
function noBack()
{
window.history.forward()
}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}
Mahendra Bisht.
|
|
|
|
|
where is function(evt) and if u want to go another page from this page does it go .
|
|
|
|
|
hi all,
I have a gridview within an updatepannel and I need to refresh this updatepannel through javascript.
Following are the senarios:
1. A button is outside the updatepannel and it is trigged with updatepannel to bind the gridview but when i raise the button click event through javascript it is unable to refresh the updatepannel.
2. Though when i debug it reflect the changes in codebehind but it doesn't reflect until and unless I click in the button.
So is there any code to explicitly refresh the updatepannel through javascript?
Please help !!!!!
Thanks and Regards
Bikash
|
|
|
|
|
Obvioulsy, because that's how AJAX works. Look at the source of your page and work out the JS to call to update your panel.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a dropdownlist in my webform(ASP.Net 2.0,C#, SQL Server).
I want to fill a gridview while click through mouse, or pressing enter key through keybord,but while scrolling through key board up-down arrow key my gridview get fill because onchange event fire.
Life is Beautiful
|
|
|
|
|
rinky wrote: its a bug.
No. Its not a Bug.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
In firefox it works fine,but in IE it doent work.
Life is Beautiful
|
|
|
|
|
Hi All,
Can any one tell me that how can i find out the country name of my site visitor?( i mean from which country he accessed my web site).
Please help me.
Thanks in advance
Regards
Lijo.
|
|
|
|
|
I googled it
and I found this page[^]
Is google broken on your computer?
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
Thanks a lot for your reply.I had already got the link wich you sent me.In that from their database they are selecting based on IP address.I am looking for some other method to find out county name without querying from databse.Is it possible to find it out by .Net globalisation??
if it is possible can u please help me to do it with globalisation??
Regards
Lijo
|
|
|
|
|
Your question shows that you have NO FREAKIN IDEA about anything that you're doing. How does .NET globalisation help you ? Are you even RUNNING .NET code on the client ? No, you're not.
So, I suggest you buy a book on ASP.NET, so you can learn enough to at least know when your question is stupid.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
See CG's reply below - but also, out of interest, WHY? don't you want to do it as per the link? As CG says, you seem to know nothing about Web development at all, let aloone ASP .NET development.
Perhaps start with the ASP.Net tutorials, write a Hello world page and come back and ask questions then.
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
sir,
my hover menu is not working properly.can u give a sample for grid displaying name and city
|
|
|
|
|
What are you talking about ? Tooltips ? What do you mean by 'not working properly' ? Where is your code ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
sir, i have placed two panels in item template in template field, 1 for edit,delete functions, and other for my data to be displayed. but while running it i get both the panel displayed in a row.
|
|
|
|