|
I probably didn't word the question very well. Naturally, at the moment I can't find a specific example of areas where this has been a problem. Using GridView for illustration, you have a huge list of attributes, such as AlternatingRowStyle-BackColor, etc. Since you're dealing with a table, some of these relate to header cells, some apply to regular cells, some apply to the table itself, etc., all of which dictates which style elements to tweak in your css file.
Obviously there's no realy mystery with the Label control, but with the more complex grids, menus, etc. I find no documentation that maps, for instance, AlternatingRowStyle-BackColor to the header cell, BorderStyle to, perhaps, the table element, etc. This is the documentation I'm looking for. I recall Googling on GridViews back when I was having a problem with this and found that it wasn't an uncommon experience.
Does that clarify?
|
|
|
|
|
Christopher Duncan wrote: Does that clarify?
Not really. They all go into the output HTML somewhere so all you have to do is set one or more and run it and View Source on the page to see where they went or "mapped to" if that's what you mean.
led mike
|
|
|
|
|
how can i define a error path in my domain to a file like errorpath.aspx
thanks for any help
|
|
|
|
|
Turn on custom errors in web.config and supply file name which you would like to show upon an error.
|
|
|
|
|
in web.config :
<system.web>
<customerrors defaultredirect="errorPage.aspx" mode="on" />
</system.web>
Every road leads to Rome.
|
|
|
|
|
thanks for help, but exactly i wanna change a file not have in my web to a correct file like default.htm
for example: my file have address: http://localhost/myweb/helloworld.aspx
but customer type on their brower is http://localhost/myweb/sdfsdf
the result of this errors is redirect to http://localhost/myweb/helloworld.aspx
i try to use .htaccess with content
<files ~="^.(htaccess|htpasswd)$">
deny from all
ErrorDocument 404 /helloworld.aspx
|
|
|
|
|
hi...
i have a unique problem.
Mywebpage has a login/password authentication..but i am not using windows authentication since the client is not using the active directory.
The webpage has a link "click to download this file" ...on which that particular file is downloaded.
When this new file is opened....the url n the browser id the
"www.sitename.com/foldersin which file is present/filename1.ext".......
if someone knows the other files in this folder one can easily access them tooo...
eg:if i know file2 exists
i can just open another browser and open file2 like this
"www.sitename.com/foldersin which file is present/file2.ext".......
is there a way to stop this????
please reply!
thanks....
|
|
|
|
|
Hello,
Is it possible to detect from my Custome Server Control Code if the Web Application is running under highest trust level or not ? Because I want to use VirtualFile classes which requires trust level to be high but if my user does not have highest trust level then my custom control will do different task.
Would you plase show a snippet or any online article please ?
|
|
|
|
|
|
Great Great Great !! Thanks for the help.
|
|
|
|
|
i want to create sample.aspx page dynamically using c# coding.
Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name.
How can i achieve this through code?
G. Satish
|
|
|
|
|
|
what ignore man? have u studied my question? what i have reposted?
It is better to think about the question what i have asked but not the way already some one posted this ...like this..
G. Satish
|
|
|
|
|
why u change the color of my question?
This is not a good way. I am asking different questions always.
Read one or two times before doing this
G. Satish
|
|
|
|
|
Satish - Developer wrote: why u change the color of my question?
A message becomes bright red when it is high-voted or dimmed (grayed) when it is low voted.
On the lighter vein, if you still want to find out who changed the color of your question, I would suggest you the following:
[JOKE]
You ought to ask it to CP Design Team.
[/JOKE]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Satish - Developer wrote: "Generate Page" buttton. When i click on it, it generates a webpage with custom name.
ASPX pages are normal files with markup and necessary page directives. So you can use StreamWriter / FileStream to create a file with ASPX extension. BTW, why you need to do this ?
|
|
|
|
|
why i need means, i need to generate this aspx pages in 1000's for search engine optimization.. some of the content has been changed while creating a page.
G. Satish
|
|
|
|
|
Satish - Developer wrote: i need to generate this aspx pages in 1000's for search engine optimization
Ahh, you are lost totally. Have you ever though about maintaining the pages when something changes ? This is not the right way to go. Try URL rewriting instead.
|
|
|
|
|
Do you want to generate user specific code dynamically and display it on the webpage. With HTML formatting in it??? If I am Right...
in .aspx page (This page is common for all the Customers)
<asp:panel id="Panel1" runat="server" height="250px" width="300px">
<div id="ClientBody" runat="server"></div>
</asp:panel>
in .aspx.cs page
string t = ........; //Pass client specific data here. you can also use HTML taga as u wish for formatting the data. Use stringbuilder if you have...........
ClientBody.InnerHtml = Server.HtmlDecode(t); // to display in .aspx page
~JJ
|
|
|
|
|
Hi,
All the Validators(Required field and Regular expression) are working fine on my local machine (not giving any error). When I upload on remote server they are not validating.
I am using .NET Framework 2.0 Required Field Validator to validate my form.
Help me in this regards.
Thanx
Sujit
modified on Thursday, May 29, 2008 9:06 AM
|
|
|
|
|
Can you post the code you have used for the required and reguler validators
We are not a Code Charity
|
|
|
|
|
If I want to delete a "just uploaded" file how do I do it? The File was uploaded with the FileUpload Control. Thank you
|
|
|
|
|
Check this out:
http://www.stardeveloper.com/articles/display.html?article=2003022601&page=1
and this
http://www.velocityreviews.com/forums/t237593-cannot-delete-file-after-file-upload-aspnet-20.html
We are not a Code Charity
|
|
|
|
|
I believe if you haven't exercised PostedFiles.SaveAs, it should be somewhere in the Temp and you can have ASP.NET to do the garbage collection for you at a later stage.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi ,
I have try to get the value of a javascript funtion.The result displayed on the aspx form.My problem is that I cant get the value in aspx.cs part.
I have some code like this in aspx page
<asp:label id="lblop" runat="server"> document.getElementById("lblop").innerText = currency_show_conversion(document.getElementById("lbl_netamt").innerText,"INR","USD");
in lblop the value is printing.
but i try in aspx.cs that,
string abc=lblop.Text
Nothing is get....What things wrong in my code?
please help me
Thanks in advance,
Bijesh
|
|
|
|