|
Ahh, the one part of .NET 2.0 I haven't gone into, themes. Well I did a little googling, moved the stylesheet to a theme directory and set the theme in Web.config. Everything looks fine in every page except those that use urlMapping. So I tried setting the theme manually in each page that is mapped with no effect. So again, I am at a loss.
|
|
|
|
|
I just took over this website and they have tons of XHTML errors which are pretty much ignorable.
But, I would like to tell the IDE that these errors are warnings.
Does anyone know how to tell the IDE that all XHTML errors are warnings?
Thanks,
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
I don't have visual studio in front of me, but I seem to remember you can change the properties on the DOCUMENT to make it an HTML document instead of XHTML. I would verify if I had it in front of me.
Logifusion[^]
|
|
|
|
|
yeah, but thats not what I want to accomplish.
thanks tho
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
It's weird though, because I have the same problem. I can still build the solution without errors. It's just whenever I open up an ascx it will list all the XHTML errors.
Logifusion[^]
|
|
|
|
|
yeah because technically there are errors according to xhtml schema.
But, they are not necessary errors. So they should be just warnings like not using a declared variable.
And I just took over this project and i'm not allowed to fix them. So when there is an error I have to sift through about 150 xhtml errors before I find mine.
I was hoping that I could somehow classify those errors as warnings so I could see whats important.
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
|
Ok, so anyone ready for a good one???
Trying to run a vb.net webApp that connects to sql. I can NOT allow the domain username to be written in the web.config file so I must use impersonation (trusted_connection).
Problem:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection when trying to access remote SQL Server with
<identity impersonation = "true" /> -- I need to beable to connect/access the sql db by use of domain user accounts, but without having to manually enter the user credentials to access. IOW by use of Impersonation.
Configuration:
I've tried to configure IIS to both of these two possible options:
A.) Anonymous Access is DISABLED and Integrated Windows Authentication is ENABLED
B.) Anonymous Access is ENABLED and Integrated Windows Authentication is DISABLED with username defined as a valid domain account/password.(i'll explain this method later)
I have defined my SQLConnectionString as:
Data Source=ServerName01;Initial Catalog=StageDBid;Integrated Security=SSPI;
I have also setup a block of code that would check the current impersonated user before executing the sqlConnection and am getting the [correct]expected User.Identity back. So I know that the Impersonation aspect is functioning, but for some reason it is not passing this info to the DB or the "Integrated Security=SSPI"("Trusted_Connection="yes" ") is not working.
Requested Soultion: I need to beable to connect to SQL thru the webApp by use of the individual Users Domain Account UserNames.)
Oh, yah I promised to explain my second method of connection to the db by use of the Anonymous Account.... I Can connect to the db if I use the method (B) listed above, with impersonation enabled and using a domain user account by disabling Integrated Windows Authentication and specifing the domain account.... problem is I'm still restricted to using a single account for connection to the db. I need to beable to connect/access the sql db by use of domain user accounts, but without having to manually enter the user credentials to access. IOW by use of Impersonation.
string Beautiful;
Beautiful = "ignorant";
label1.Text = "The world is full of " + Beautiful + " people.";
Why is common sense such an un-common comodity?
|
|
|
|
|
For your option A, did you have digest authentication checked? I've used the exact same thing you're talking about with no problems getting to the database, but I had digest authentication on.
Logifusion[^]
|
|
|
|
|
I am quite new to ASP.NET and hope that there is an easy answer to my question..
My question is how can I access an function from codeBehind when I click on a <div> in my application? I have a <div id="divButton" runat="server"> tag and when I click on the tag I want to run a function from codebehind to do some calulationes and then redirect the user to a new web page.
However the onclick event för the <div> tag is only for client side java scripts.
Does anyone have a good answer?
A.V
|
|
|
|
|
You can try calling a Javascript when the div is clicked.
The Javascript should submit your form and you might want to add additional query string to let the page knows your div is clicked.
From there it's all the same as a postback from a button.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
Try this.
In the Page_Load method in the codebehind put:
divButton.Attributes.Add("onclick",Page.GetPostBackEventReference(divButton));
NB. This needs to be executed everytime, so don't put it inside any if blocks.
Now your page will post back when you click on the DIV.
Next thing to do is to work out which control caused the postback so you can call a specific handler for your control. Check here for how to do this
HTH
|
|
|
|
|
|
Hello,
I am developing an online shopping website, i have finished it now I want to send values or parameters to 2CO for shopping can anyone tell me that how can i do that or send me any string or code to send values to 2CO ? i am using c# and asp.net.
Regards,
AbUbakar
|
|
|
|
|
|
Hello,
I am developing an online shopping website, i have finished it now I want to send values or parameters to 2CO for shopping can anyone tell me that how can i do that or send me any string or code to send values to 2CO ? i am using c# and asp.net.
Regards,
AbUbakar
|
|
|
|
|
can anyone show me a link to a tutotial of incorporatig audio streaming with web page?????????
i want to connect to a remote server via a website page and search for an audio files and then use the website to play the file via streaming
kenny
|
|
|
|
|
Hi,
Please help me out in one problem with ASP.NET page.
The scenario is something like that, my page contains one data grid and that grid contains around 5000 records (no paging is there). When my page loads, it takes a bit long time to show all the records and show all the records properly. Up till now everything is fine, but when I clicked any operation on same page (which raise some post back event) then the IE ask me for user credentials (without any post back). I supplied the proper administrator credential but it is asking endlessly and when I clicked cancel it shows me error page “HTTP 401.1 - Unauthorized: Logon Failed Internet Information Services”.
I scratched my head and come to know that this might be an issue with catching. As the page size is too long the .NET or the IIS trying to cache the page is there memory and the ASP.Net user don’t have permission to write is that directory.
I tried with so many combinations like using anonymous access and adding administrator user in IUSR_user and IWAM_user, but didn’t get any success.
Please any body suggests me how to approach this?
I am using IIS 5.0 with ASP.NET 1.1 and .Net Framework 1.1
Thanks & Regards
Muzzu
|
|
|
|
|
Hi,Can you help me?
I have a problem with Asp.net Autopostback
I used GridView and put edit button to it.
Because my web page is very long when I click edit button
I go up to the top of web page.
I think that my web page is reload so It will go up the top of web page.
How can I do? After click edit button It won't go up but It get autopostback.
MOTH SEYHA
|
|
|
|
|
What do you want the page should not be posted back on the click of the button OR the focus should be at the same place where it was befpre the post back?
In the first case make autopostback property to false and for the second put smartnavigation=true.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
I have been asked to monitor what websites employees in my company visit during work hours.
I had a program that I found from The Code Project, but it no longer seems to be working when used on one of the PCs, I need to be able to view the results as a web page.
Can anyone suggest anything that could work?
Cheers
|
|
|
|
|
datagrid placed in ascx file now i need to bind the datagrid in new webform
|
|
|
|
|
HI,
Make a dataset property and bind that dataset property to grid in the usercontrol.
In the webform, create instance of the usercontrol, set the property and its done
Thanks
Sushant Duggal.
|
|
|
|
|
two way for handling:
1-you can use datagrid as public property of your control and assign to it datasource or any attributes.
2-you can use a dataset or table as public property of your control and assign them to your datagrid into control
first way is very very better.because all of datagrid properties can be assigned from out of your control
|
|
|
|
|
can u plz send me the code
|
|
|
|