|
Are your CSS is within the App_THEME folder...
If so, you need to apply the Theme to the Site.
Another reason that might come in place, always add your files from root path specify like
~/css/myfile.css
not like
myfile.css (even if both are in same folder)
|
|
|
|
|
I do apply them, I enable them in page properties, and attach the CSS properly.
The glitch is with that particular project. Applying the same CSS in another project works perfect.
Can it be somehow spoiled in VS2008 for that particular project? Even after I removed css and changes are visible in design view, after running the page from VS it shows all styles, even site icon, though it was deleted from the web project.
I deleted all ASP.NET temporary files, nothing works.
Чесноков
|
|
|
|
|
Helo All,
I am using ASP.NET 3.5. I have a form with a DropDownList contain the User Code. At Selected Index Change the form shows the respecting data. But at times it shows the data but the following error Message is generate.
"Microsoft JScript runtime error: 'this.get_element().style' is null or not an object"
I am using master Page. There is an update panel in the master page.
How can i solve not to generate this error message when selected index change at DropDownList.
Thanks in advance
|
|
|
|
|
jahirhstu wrote: 'this.get_element().style' is null or not an object
It seems that you are trying to access the style before the element is initialized.
Can you debug by putting some alert in Javascript?
Do not know if this helps you much.
|
|
|
|
|
This is a Javascript error, where the element returns null.
I think if you set the autopostback of the Dropdownlist to false, the problem will be cured.
Or you can paste your designer code here to help you.
|
|
|
|
|
Hello
I want send a message from webesite to a local machine in network,
|
|
|
|
|
manish.m.meshram wrote: I want send a message from webesite to a local machine in network,
What do you mean by that ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
From my website I am sending Sql Query to a my local machine which is connected in a network , through router.
Thanks for you reply
|
|
|
|
|
manish.m.meshram wrote: I am sending Sql Query to a my local machine which is connected in a network
I am not sure what you exactly mean by "sending SQL Query to a my local machine".
But in general ADO.NET provides all the features using which websites generally interact with SQL Server.
You can take a look into this[^] (still I am sure you are not looking for this simple thing ).
Anyway,let me know if you need something more.
|
|
|
|
|
Hi all,
I have one contactus.html page, and I used shared windows hosting with IIS7 and the service provider is "godaddy.com".But I try to send message I got the following error:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Thanks
Denny
|
|
|
|
|
Does your SMTP required Authentication ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
This is permission issue...
Just go to the virtual directory and add permission to ASP.NET user.
|
|
|
|
|
Hello all,
I am dynamically creating DropDownList in my application.
While running application, when i select some value in DropDownList it is showing fine, but if i click some other button then DropDownList is always showing its first item.
I heard this happens because of PostBack.
I tried by setting AutoPostBack property to both true and false, but still same problem occuring both time.
Can anyone help me?
Thanks,
Nagendra.
|
|
|
|
|
Check that you are not rebinding the dropdownlist when the button click causes the postback.
only two letters away from being an asset
|
|
|
|
|
This is my code, i am creating DropDownList inside GridView
<asp:TemplateField HeaderText="Item">
<ItemTemplate>
<asp:DropDownList runat="Server" ID="itemCodeList" DataSourceID="SqlDataSource2" DataTextField="ItemLongDesc" DataValueField="ItemCode" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
|
|
|
|
|
You are using it inside Gridview ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
When did you create those Dynamic control. You have to create the dynamic control before page_load() , other wise that control will not be able to maintain viewstate and Postback datra, cause LoadViewState() and LoadPostbackData() called juts before page_load() .
IF you created control before page_load,
Try to do this in
Page_Load()
if( ! Page.IsPostBack)
{
}
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
i am creating it inseide a GridView
|
|
|
|
|
Is it possible to generate Sitemappath through the database..........if yes then how.......is it relaed to something CustomizeSiteProvider...........plz guide me a bit.........
|
|
|
|
|
|
|
|
Hi,
I have some problem with using variables, I am making a form in C#?asp.net .
Now in my web application form I am having two controls on web page (dropdown, button); depending on the selection in the dropdown I have changed some value in a integer variable.
PROBLEM: the variable retains this value until the event ends.
after that I am using this value to do some processing; it is here that I find that the int value has changed back to 0(its default value). How can I prevent this as I need the value of the int?
I have tried my code both by declaring the int variable as global to that form and also by declaring it inside that particular event.
can someone please help me?
thank You
|
|
|
|
|
Do you have a check of PostBack in the Page_Load?
If not then add that in for Form_Load.
Declare the variable at class level.
Then initialize the variable under if(!Page.IsPostBack) .
|
|
|
|