Click here to Skip to main content
15,910,981 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIs it possible to select date from the calendar and put the date to the detailsview? Pin
blurMember3-Aug-06 23:48
blurMember3-Aug-06 23:48 
AnswerRe: Is it possible to select date from the calendar and put the date to the detailsview? Pin
Mike Ellison4-Aug-06 2:58
Mike Ellison4-Aug-06 2:58 
GeneralRe: Is it possible to select date from the calendar and put the date to the detailsview? Pin
blurMember6-Aug-06 16:27
blurMember6-Aug-06 16:27 
QuestionHow to Access DNS MX Record. Pin
Murthy India3-Aug-06 23:44
Murthy India3-Aug-06 23:44 
AnswerRe: How to Access DNS MX Record. Pin
Ista4-Aug-06 3:50
Ista4-Aug-06 3:50 
Questionhow to close webform through window user control Pin
rah_sin3-Aug-06 22:43
professionalrah_sin3-Aug-06 22:43 
AnswerRe: how to close webform through window user control Pin
Mike Ellison4-Aug-06 2:59
Mike Ellison4-Aug-06 2:59 
AnswerRe: how to close webform through window user control Pin
l0kke4-Aug-06 3:21
l0kke4-Aug-06 3:21 
If you dont mind that it is not windows control, but html control then place this on your page:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
<input id="Button1" type="button" value="button" onclick="javascript:window.close()" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Actualy windows control cannot be placed in webform, maybe you mean WebControl. If you want to use WebControl to close your page, then do it like this:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
aspx page:

<asp:Button id="btnClose" runat="server" text="Close me!" OnClientClick="javascript:window.close()"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

or

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
aspx page:

<asp:Button id="btnClose" runat="server" text="Close me!" OnClick="btnClose_Click"/>

code behind:

protected void btnClose_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("CloseMe","<script>window.close();</script");
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Pilo


Questionopenning the form in placeholder in vb.net asp.net Pin
amaneet3-Aug-06 22:10
amaneet3-Aug-06 22:10 
AnswerRe: openning the form in placeholder in vb.net asp.net Pin
kiran kumar[Intelligroup]3-Aug-06 23:30
kiran kumar[Intelligroup]3-Aug-06 23:30 
GeneralRe: openning the form in placeholder in vb.net asp.net Pin
amaneet4-Aug-06 0:54
amaneet4-Aug-06 0:54 
GeneralRe: openning the form in placeholder in vb.net asp.net [modified] Pin
kiran kumar[Intelligroup]4-Aug-06 1:33
kiran kumar[Intelligroup]4-Aug-06 1:33 
AnswerRe: openning the form in placeholder in vb.net asp.net Pin
l0kke4-Aug-06 3:43
l0kke4-Aug-06 3:43 
QuestionError 40 Pin
Jijo BP3-Aug-06 22:07
Jijo BP3-Aug-06 22:07 
AnswerRe: Error 40 Pin
coolestCoder3-Aug-06 23:28
coolestCoder3-Aug-06 23:28 
GeneralRe: Error 40 Pin
Jijo BP4-Aug-06 2:00
Jijo BP4-Aug-06 2:00 
Questionconvert string[] to Guid[] Pin
mbbisht3-Aug-06 20:55
mbbisht3-Aug-06 20:55 
AnswerRe: convert string[] to Guid[] Pin
minhpc_bk4-Aug-06 0:02
minhpc_bk4-Aug-06 0:02 
QuestionHow we can manage State for auto generated controls? Pin
Haridas.R3-Aug-06 20:36
Haridas.R3-Aug-06 20:36 
AnswerRe: How we can manage State for auto generated controls? Pin
kiran kumar[Intelligroup]3-Aug-06 21:25
kiran kumar[Intelligroup]3-Aug-06 21:25 
QuestionRe: How we can manage State for auto generated controls? Pin
Haridas.R4-Aug-06 1:44
Haridas.R4-Aug-06 1:44 
QuestionFolder browser Dialog Pin
codethere3-Aug-06 20:14
codethere3-Aug-06 20:14 
QuestionHow to trace mousemove event on the images. Pin
Hswami3-Aug-06 19:52
Hswami3-Aug-06 19:52 
AnswerRe: How to trace mousemove event on the images. Pin
kiran kumar[Intelligroup]3-Aug-06 20:21
kiran kumar[Intelligroup]3-Aug-06 20:21 
Questioncreate zip file in asp.net Pin
hi_arv3-Aug-06 19:38
hi_arv3-Aug-06 19:38 

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.