Click here to Skip to main content
15,920,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Accessing Network Path In Web Services Pin
Abhijit Jana5-Oct-09 5:32
professionalAbhijit Jana5-Oct-09 5:32 
Questionhow to slide the images those r in a folder by slide show control. Pin
rinku soni 235-Oct-09 2:51
rinku soni 235-Oct-09 2:51 
AnswerRe: how to slide the images those r in a folder by slide show control. Pin
sashidhar5-Oct-09 2:57
sashidhar5-Oct-09 2:57 
AnswerRe: how to slide the images those r in a folder by slide show control. Pin
Abhijit Jana5-Oct-09 5:35
professionalAbhijit Jana5-Oct-09 5:35 
GeneralRe: how to slide the images those r in a folder by slide show control. Pin
rinku soni 235-Oct-09 19:25
rinku soni 235-Oct-09 19:25 
Questionaspx page in iframe Pin
Member 38798815-Oct-09 2:20
Member 38798815-Oct-09 2:20 
AnswerRe: aspx page in iframe Pin
Abhijit Jana5-Oct-09 5:33
professionalAbhijit Jana5-Oct-09 5:33 
QuestionOpen new window from usercontrol hosted on ajax enabled page Pin
codeslingerCA5-Oct-09 1:55
codeslingerCA5-Oct-09 1:55 
I have a usercontrol which is to open a new window.   This seems simple enough, but my code just does not work - clicking on the link button has no effect.

Here is my .ascx file:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TextContainer.ascx.cs" Inherits="SolutionsUI.Controls.TextContainer" %>
<asp:UpdatePanel runat="server"   ChildrenAsTriggers="true" >
<ContentTemplate>
         <div class="rbroundbox">
         <div class="rbtop"><div>
         </div></div>
         <div class="rbcontent">
         <asp:Label ID="lblContent" runat="server" Text="PlaceHolderText">
         </asp:Label>
         <div id="divEdit" runat="server" style="vertical-align:text-bottom; text-align:right;">
         <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" style="font" Font-Size="10pt" Font-Underline="True"   Visible="true" ForeColor="White" OnClick="btnEdit_Click">
         </asp:LinkButton>
         </div>
         </div><!-- /rbcontent -->
         <div class="rbbot"><div></div></div>
         </div><!-- /rbroundbox -->
</ContentTemplate>
</asp:UpdatePanel>


It is my understanding that you are not to use Response.Write for javascript when using Ajax.   Instead, I register the script in my code behind function (which I have been able to step through).

protected void btnEdit_Click(object sender, EventArgs e)
                  {
                           Session["PageID"] = "1";
                           Session["PanelID"] = "1";
                           StringBuilder OpenScript = new StringBuilder();
                           OpenScript.Append("window.open('PopUpEdit.aspx");
                           OpenScript.Append("?pageid=");
                           OpenScript.Append(Session["PageID"]);
                           OpenScript.Append("'");
                           OpenScript.Append(",'Edit','width=400, height=450')");


                           OpenScript.Append("PopUpEdit.aspx");
                           OpenScript.Append("?pageid=");
                           OpenScript.Append(Session["PageID"]);
                           OpenScript.Append("'");
                           OpenScript.Append(",'Edit','width=400, height=450')");
                           string url;
                           url = OpenScript.ToString();

                           Page.ClientScript.RegisterStartupScript((this.GetType()), "OpenWin", "<script>openNewWin('" + url + "'</script>");
                    
                          
This did not work, nor did an alert:
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + "Test" + "');",true);
                          

                  }

There is no javascript error or anything...it just does not launch the window. I see the following in the status bar:
javascript:__doPostBack('TextContainerIntro$btnEdit','')
Can anyone tell me how to do this?
QuestionSession State Cookie does not exist! Pin
Mark-1234567895-Oct-09 1:35
Mark-1234567895-Oct-09 1:35 
AnswerRe: Session State Cookie does not exist! Pin
Abhijit Jana5-Oct-09 1:51
professionalAbhijit Jana5-Oct-09 1:51 
GeneralRe: Session State Cookie does not exist! Pin
Mark-1234567895-Oct-09 2:07
Mark-1234567895-Oct-09 2:07 
GeneralRe: Session State Cookie does not exist! Pin
Khaja A. Imtiaz5-Oct-09 5:17
Khaja A. Imtiaz5-Oct-09 5:17 
Questionhow to do it my post web? Pin
lockepeak5-Oct-09 1:27
lockepeak5-Oct-09 1:27 
QuestionTwitter/Facebook integration Pin
rahul.net115-Oct-09 1:08
rahul.net115-Oct-09 1:08 
AnswerRe: Twitter/Facebook integration Pin
sashidhar5-Oct-09 1:11
sashidhar5-Oct-09 1:11 
GeneralRe: Twitter/Facebook integration Pin
rahul.net115-Oct-09 2:50
rahul.net115-Oct-09 2:50 
GeneralRe: Twitter/Facebook integration Pin
sashidhar5-Oct-09 4:40
sashidhar5-Oct-09 4:40 
AnswerRe: Twitter/Facebook integration Pin
Sachin Dubey5-Oct-09 1:29
Sachin Dubey5-Oct-09 1:29 
Questionquestion from slide show control. Pin
rinku soni 235-Oct-09 1:08
rinku soni 235-Oct-09 1:08 
AnswerRe: question from slide show control. Pin
Sachin Dubey5-Oct-09 1:27
Sachin Dubey5-Oct-09 1:27 
Questionchange my crystal report connection string Pin
vikas shukla5-Oct-09 0:20
vikas shukla5-Oct-09 0:20 
AnswerRe: change my crystal report connection string Pin
sashidhar5-Oct-09 1:09
sashidhar5-Oct-09 1:09 
QuestionTreeView Control In ASP.net Pin
Sachin Dubey5-Oct-09 0:20
Sachin Dubey5-Oct-09 0:20 
AnswerRe: TreeView Control In ASP.net Pin
Manas Bhardwaj5-Oct-09 0:35
professionalManas Bhardwaj5-Oct-09 0:35 
GeneralRe: TreeView Control In ASP.net Pin
Sachin Dubey5-Oct-09 0:37
Sachin Dubey5-Oct-09 0:37 

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.