|
It's the problem of Microsoft .NET Framework 1.0. Check this[^]
|
|
|
|
|
Take a look at the inner exception, there you'll find better information.
This exception occurs for example when a type is created (by Reflection). The inner exception will then tell you what went wrong while constructing the type.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Hi,
My Web application has morethan 100 pages. From the login page onwards I am maintaining some cookies and sessions. For a particular page in my application I want to disable all my cookies and again from next page onwards they should work.
"How to disable cookis for a single page in web application"
Thanks
Hari
|
|
|
|
|
Perhaps I am missing something, but if you don't interact with cookies in this page, in what way will they be actively 'enabled' ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Its not a good practice to use these kind of codings in such a huge application.
Regards
Bino
|
|
|
|
|
Hi Bino...
I am not asking for practise..its just a doubt..and its a question asked in one of MNC level companies.
Anyhow thanks for your kind reply.
Bye
Hari
|
|
|
|
|
What is the best way to do this? I am making a custom control (not a user control) which shows an image to the user through a web page. How do I get the image from the custom control into my web page images directory?
Right now I have the custom control in a class library project. I have the image stored within the Resources.resx file in the class library. The custom control has a property where the programmer enters in the image directory location (a relative location) of the web site. The custom controls protected override void RenderContents(HtmlTextWriter writer) function goes into the given image directory location with the help of Page.MapPath() and checks to see if the image exists and if it doesn't exist then the image is copied from the Properties.Resources.MyImage to that location.
Problems that I am having with the above method:
1. It does seem very efficient to check to see if the image file exists every time the custom control is rendered.
2. At design time (within visual studio 2005), when I place the control on a web page and set the image directory location the image doesn't show up. Instead, I get some weird error message. But when I run the web page the image shows up fine.
Is there a better way of doing this?
Chris
|
|
|
|
|
how open connection wizard on asp.net page???
can we open connection wizard on asp.net page................
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
First of all, no, I doubt you can
Second, if the user is not connected, how does your ASP.NET page get to the client ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i want only connection wizard windows. because i want to get only connection string through this connection wizard.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Oh, you're talking about a database connection. The answer is still no, your web app cannot interact with Windows directly, or with other programs, without permission.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
no sir i don't want any database connection on the page. i want connection string for our IM application. this type work we have also done in past in windows application so now we want in this things in asp.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
I have a webservice which use a couple of different modules. One of them is a DB wrapper, and the db wrapper dll have it's own dbwrapper.dll.config file where it stores a connectionstring and some other stuff.
In my development enviroment everything works perfectly fine, but when I deploy it to the testserver and put the dbwrapper.dll.config in the webservice bin dir, it cannot read it.
How do I deploy it, and where do I put the settings file so my module can see it.
TIA...
|
|
|
|
|
I've created a pop up calendar user control, when you click inside the text box the calendar appears, when u select a date it disappears etc. This all works fine.
The part I'm having trouble with is that when a user clicks off the calendar while it is visible i want it to disappear again.
I'm not really sure how to do this? Is it possible to access the actual calendar control in the user control from the page that the user control is embedded. I played around with getElementByName and getElementById but didn't have any luck.
thanks
Steve
|
|
|
|
|
I guess u should use the onclick javascript event on the main page body
And u can find the control in the userscontrol by using the
document.getElementById function but u need to check the if in the HTML because when a server controlresides in a user control the id isn't the same
it will be the id + "_" + user control name
Hope this would help
Best Regards
3ala2
|
|
|
|
|
You could try this:
<BODY onBlur="window.close();">
That is if you by popup mean that it pops up in a new window.
|
|
|
|
|
I'm at the stage now where I have the calendar disappearing when the user clicks elsewhere on the form. My problem now is that when you click on the text box to make the calendar appear the form click event also fires. Which immediately makes the calendar disappear again? Is there any way to exclude the text box from getting caught by the click event of the form?
thanks
Steve
|
|
|
|
|
Hello Everyone,
How to run the flash file in window media player
Is this piece of code is useful for me
System.Diagnostics.Process.Start("wmplayer.exe",url);
Thnx in Advance
----------------
Plz help me out......................it's very-very needed
|
|
|
|
|
Haven't you asked this, today ?
Windows Media Player does not play flash files, at least not without a plugin.
The Knowledge wrote: System.Diagnostics.Process.Start("wmplayer.exe",url);
Yes, if you're asking in the C# forum. In ASP.NET, no, of course not - this code can run on the server, not the client.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
In a FormView's InsertTemplate I'm successfully binding a CheckBox to a property from the ObjectDataSource with the Checked property:
Checked='<%# Bind("WantsGifts") %>'
The problem is that I would also like the have the box checked by default, but I can't set the Checked property to true. How can I do that?
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
hi,
i have a datagrid control,in the onitemcommand event i have wrote code to display the row details of the clicked id to the textbox it works.but the paging doesnt work here.in the click of that paging arrow the control goes to the onitemcommand n not on pageindexchanged event.
When the code in the onitemcommand is commented paging works.
where i m gng wrong?ne body can help?
zari
|
|
|
|
|
did u check the command name in the code u use in the OnItemCommand?
it should be something like :
If e.CommandName = "Something" Then
.
.
.
End If
And u should name the command causer like the button... and pager template...
Best Regards
3ala2
|
|
|
|
|
Using VS2005 on XP Pro...
I'm trying to write some code that determines whether or not cookies are blocked in the browser.
The way I'm doing it is to write a cookie and then try to read it back. The problem is that the cookie doesn't get written to the hard drive, so my cookie reading code assumes that cookies are blocked. Here's what I have:
public partial class _Default : CBasePage
{
public string m_cookieWarning;
protected void Page_Load(object sender, EventArgs e)
{
m_cookieWarning = "";
string cookieName = "dummy";
Response.Cookies.Clear();
HttpCookie testCookie = new HttpCookie(cookieName);
testCookie.Value = cookieName;
testCookie.Expires = DateTime.Now.AddMinutes(2);
Response.Cookies.Add(testCookie);
Response.Cookies.Clear();
testCookie = Request.Cookies[cookieName];
if (testCookie == null)
{
m_cookieWarning = "<span>This website requires that cookies be allowed</span>";
}
}
}
Anyone?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm unclear how this works with cookies, but cookies exist on the client, so how would this code write a cookie to the client, and read it back to the server, when it's in the middle of a postback ? No round trip has occured at this point, right ? I'd *imagine* ( and again, I'm not sure ), that you'd have to add the cookie, and let the page finish it's lifecycle, and that you'd then have to read the cookie from a subsequent lifecycle. Your code here has cleared the cookies, so I imagine you've added it, and deleted it, all in memory.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
So you think I need to do a postback for the reading part?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|