Click here to Skip to main content
15,892,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to download data in excel file from dataset in webpart Pin
Dhruvil5-Jul-06 2:13
Dhruvil5-Jul-06 2:13 
QuestionServer error: More than one exclusive group is not allowed Pin
lehya4-Jul-06 10:00
lehya4-Jul-06 10:00 
Questionhow to do an asp.net website configuration in asp.net 1.1 ? Pin
Mohammed Amine4-Jul-06 8:40
Mohammed Amine4-Jul-06 8:40 
AnswerRe: how to do an asp.net website configuration in asp.net 1.1 ? Pin
minhpc_bk4-Jul-06 15:42
minhpc_bk4-Jul-06 15:42 
GeneralRe: how to do an asp.net website configuration in asp.net 1.1 ? Pin
Mohammed Amine4-Jul-06 23:27
Mohammed Amine4-Jul-06 23:27 
QuestionCrystal report Pin
MohamadJaber4-Jul-06 7:39
MohamadJaber4-Jul-06 7:39 
AnswerRe: Crystal report Pin
minhpc_bk4-Jul-06 15:52
minhpc_bk4-Jul-06 15:52 
QuestionProblems with even simple User Controls Pin
jb734-Jul-06 6:37
jb734-Jul-06 6:37 
I have been experimenting with placing user controls (using Windows Forms controls) into an ASP.NET webpage - and am completely stuck. I can get a blank user control to work, but nothing beyond that. I have tried making a very basic test rig to isolate the problem, and have illustrated it below. For reference, this is using .NET 2 and Visual Studio 2005.

Here's what I did - the first few steps explain what worked, then what I did that broke it. If anybody can see the obvious thing I'm missing, I'd love to hear from you.


1. Create a new "Control Library" solution - call it "UserControlTestRig"
2. Modify the background color of the default control (UserControl1)
3. Compile, and test. The user control debug form pops up, and it works fine.

4. Add a new ASP.NET website to the solution
5. Copy the compiled DLL of the user control to the root dir of the website
6. Refresh the explorer in Visual Studio (to stop it complaining further on)
7. Add the following to the default.aspx page...
<object id="uc1"
classid="UserControlTestRig.dll#UserControlTestRig.UserControl1">
</object>
8. Run the webpage - it appears, as does the user control with it's background
color as set when we built it.

All is fine so far. Next I do the following, and have no idea why it breaks...

9. Edit UserControl1 - add a label control to it (from the standard windows form
controls)
10. Recompile UserControl1, and copy the DLL over to the web page.
11. Re-open the webpage, to see the usercontrol with the label...
*The control no longer works.*

What's more, once the control is broken, you can't then recompile without the label, re-copy, and run the webpage again...

If somebody can explain why this is happening I'd love to know.

The maddening thing is I have a fairly complex series of controls that this happened to this morning, and have spent all afternoon slowly going backwards until I got to this example - at which point I held my hands up and said "I'm going to ask on the internet"...

AnswerRe: Problems with even simple User Controls Pin
jb734-Jul-06 7:58
jb734-Jul-06 7:58 
GeneralRe: Problems with even simple User Controls Pin
minhpc_bk4-Jul-06 15:39
minhpc_bk4-Jul-06 15:39 
AnswerRe: Problems with even simple User Controls Pin
jb734-Jul-06 22:19
jb734-Jul-06 22:19 
AnswerRe: Problems with even simple User Controls Pin
r604-Jul-06 20:05
r604-Jul-06 20:05 
QuestionIE returns about:blank Pin
breen254-Jul-06 5:20
breen254-Jul-06 5:20 
AnswerRe: IE returns about:blank Pin
Sushant Duggal4-Jul-06 18:17
Sushant Duggal4-Jul-06 18:17 
GeneralRe: IE returns about:blank Pin
Vasudevan Deepak Kumar4-Jul-06 19:03
Vasudevan Deepak Kumar4-Jul-06 19:03 
GeneralRe: IE returns about:blank Pin
breen255-Jul-06 3:18
breen255-Jul-06 3:18 
Questionhow to open a modal dialog from clicking on a datagrid linkButton item Pin
JuJAngel4-Jul-06 4:47
JuJAngel4-Jul-06 4:47 
AnswerRe: how to open a modal dialog from clicking on a datagrid linkButton item Pin
minhpc_bk4-Jul-06 15:47
minhpc_bk4-Jul-06 15:47 
QuestionNeed Help : insert Row into ... Pin
elpens4-Jul-06 4:43
elpens4-Jul-06 4:43 
AnswerRe: Need Help : insert Row into ... Pin
Sushant Duggal4-Jul-06 18:48
Sushant Duggal4-Jul-06 18:48 
GeneralRe: Need Help : insert Row into ... Pin
elpens4-Jul-06 20:01
elpens4-Jul-06 20:01 
QuestionDynamic control issue driving me nuts Pin
andyk19674-Jul-06 4:21
andyk19674-Jul-06 4:21 
AnswerRe: Dynamic control issue driving me nuts Pin
minhpc_bk4-Jul-06 5:11
minhpc_bk4-Jul-06 5:11 
QuestionHow to block the View Source Pin
venkatasivaramaprasad4-Jul-06 3:06
venkatasivaramaprasad4-Jul-06 3:06 
AnswerRe: How to block the View Source [modified] Pin
RichardGrimmer4-Jul-06 3:14
RichardGrimmer4-Jul-06 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.