Click here to Skip to main content
15,900,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: google maps not working Pin
Abhishek Sur29-Jul-09 4:31
professionalAbhishek Sur29-Jul-09 4:31 
QuestionHow to make Main Menu and Sub Menu Using Rpeater Control in asp.net ( not Main Menu only) Pin
blainzaw29-Jul-09 3:25
blainzaw29-Jul-09 3:25 
AnswerRe: How to make Main Menu and Sub Menu Using Rpeater Control in asp.net ( not Main Menu only) Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:26
professionalVimalsoft(Pty) Ltd29-Jul-09 3:26 
Questionwhat is API Pin
Ashwini.dg29-Jul-09 3:21
Ashwini.dg29-Jul-09 3:21 
AnswerRe: what is API Pin
Manas Bhardwaj29-Jul-09 3:24
professionalManas Bhardwaj29-Jul-09 3:24 
AnswerRe: what is API Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:25
professionalVimalsoft(Pty) Ltd29-Jul-09 3:25 
AnswerRe: what is API Pin
Victor.Ai.29-Jul-09 13:13
Victor.Ai.29-Jul-09 13:13 
QuestionProblem displaying Windows Control in ASP.net Web Site. Pin
VikashGohil29-Jul-09 3:19
VikashGohil29-Jul-09 3:19 
Hello, This is Vikash.

I am facing problem displaying the windows control created by me in ASP.net web site.

Actually, I am totally new to this and haven't done this thing before.

But after searching some article on the web i have created a small windows control with 2 textboxes and a Command button. When the button is clicked it copies the text in textbox1 to textbox2.

This is the Code of my User Control:

Imports System
Imports System.Windows.Forms
Imports System.Runtime.InteropServices

Public Class Copytext

      Public Sub New()
            ' This call is required by the Windows Form Designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
      End Sub

      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox2.Text = TextBox1.Text
      End Sub
End Class

When I run the project of User Control, it runs fine.

Next I Created a web site in the same Solution and pasted the DLL file of UserControl in the roor directory and then using OBJECT tag embed the control in Web Page.

Code for WebPage is as follows:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
      <title>Untitled Page</title>
</head>
<body>
      <form id="form1" runat="server">
      <div>
   <object id="MyX" classid="WindowToWeb.dll#WindowToWeb.Copytext" style="width: 312px; height: 160px"></object>
      </div>
      </form>
</body>
</html>

But when i run the web page it displays just a blank box.

can someone please tell me or guide me in this matter.

Any help would be greatfull.

Thanks in Advance.
AnswerRe: Problem displaying Windows Control in ASP.net Web Site. Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:23
professionalVimalsoft(Pty) Ltd29-Jul-09 3:23 
GeneralRe: Problem displaying Windows Control in ASP.net Web Site. Pin
VikashGohil29-Jul-09 3:50
VikashGohil29-Jul-09 3:50 
GeneralRe: Problem displaying Windows Control in ASP.net Web Site. Pin
Vimalsoft(Pty) Ltd29-Jul-09 4:35
professionalVimalsoft(Pty) Ltd29-Jul-09 4:35 
Questionscroll bar issue in fixed header Pin
indian14329-Jul-09 2:54
indian14329-Jul-09 2:54 
AnswerRe: scroll bar issue in fixed header Pin
Manas Bhardwaj29-Jul-09 3:22
professionalManas Bhardwaj29-Jul-09 3:22 
QuestionParser Error Pin
zeeShan anSari29-Jul-09 1:20
zeeShan anSari29-Jul-09 1:20 
AnswerRe: Parser Error Pin
Vimalsoft(Pty) Ltd29-Jul-09 1:57
professionalVimalsoft(Pty) Ltd29-Jul-09 1:57 
AnswerRe: Parser Error Pin
Sumit Kesarwani4-Oct-14 23:24
Sumit Kesarwani4-Oct-14 23:24 
QuestionBest discussion board Example Pin
kapkush29-Jul-09 1:18
kapkush29-Jul-09 1:18 
AnswerRe: Best discussion board Example Pin
SeMartens29-Jul-09 1:35
SeMartens29-Jul-09 1:35 
GeneralRe: Best discussion board Example Pin
Rajeshwar Code- Developer29-Jul-09 3:17
Rajeshwar Code- Developer29-Jul-09 3:17 
Questiondropdown list selectedchanged event for ASP.NET MVC application Pin
Seeta Rama Raju29-Jul-09 1:05
Seeta Rama Raju29-Jul-09 1:05 
AnswerRe: dropdown list selectedchanged event for ASP.NET MVC application Pin
Blue_Boy29-Jul-09 1:16
Blue_Boy29-Jul-09 1:16 
GeneralRe: dropdown list selectedchanged event for ASP.NET MVC application Pin
Seeta Rama Raju29-Jul-09 1:21
Seeta Rama Raju29-Jul-09 1:21 
QuestionAjax toolkit not installed Pin
haleemasher29-Jul-09 0:52
haleemasher29-Jul-09 0:52 
AnswerRe: Ajax toolkit not installed Pin
Vimalsoft(Pty) Ltd29-Jul-09 1:59
professionalVimalsoft(Pty) Ltd29-Jul-09 1:59 
AnswerRe: Ajax toolkit not installed Pin
vid nandha29-Jul-09 2:06
vid nandha29-Jul-09 2:06 

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.