I am trying to set background image of panel in following way
But as code shows i need to show the image each time in server..how can i set bmp as background image directly..as it might create problem when deployed on server
Dim bmp As New Bitmap(1500, 2500) Dim g As Graphics = System.Drawing.Graphics.FromImage(bmp) Dim img_converter As New ImageConverter() Dim bytes As Byte() = DirectCast(img_converter.ConvertTo(bmp, GetType(Byte())), Byte()) File.WriteAllBytes(Server.MapPath("~/Images/OT1.jpeg"), bytes) pnl001.BackColor = Color.White pnl001.BackImageUrl = "~/Images/OT1.jpeg" pnl001.Attributes.Add("style", "background-repeat:no-repeat")
I seem to be having trouble getting the btOK button (in the Modal Popup Extender panel) to trigger the btOK_Click subroutine in the code-behind for the page.
I use AJAX tab panel for my web site (ver.1.0.2) with VS2005. Previously I use large page and now i it change to tab panel. The problem is when I change the source view to design view it automatically update the content of tab panel and show the 'error creating control' and sometimes it not. So I'm having difficulty on designing that page because always I have to keep the backup of the page.
I have an AJAX Modal Popup panel that contains a RadioButtonList, 2 labels and 2 DropDowns. I want to update the Labels and DropDowns when a radio button is selected. My attempt at this posts back which causes the ajax popup to disappear.
aspx called on image click: <asp:Panel ID="pnlModalContainer" runat="server"> <asp:RadioButtonList ID="rblTest" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rblTest_SelectedIndexChanged"> [code]...
I am having trouble wiht my AJAX collapsible Panel Extender. I have the CPE opening a panel that contains the Table of Contents of a document being displayed on the page. A user clicks on the link for a certain part of the document, the event triggers a C# function that gets the file that particular section is contained in an displays the section. Right now you have to, of course, click on the TitlePanel to open and to close the CPE. What I want to do is have it close automatically whenever a link inside the content panel has been clicked. I have tried placing this.cpeTOC.Collapsed=true; in the functiion that gets the files but it does not work. I have also tried the autocollapse property of the CPE and it just collapses whenever someone moves thier mouse from the titlepanel.
I am using Ajax Control ToolKit's Accordian Control with 5 Accordian Panel. Contents of Accordian Panel are UserControl. Currently I have added all in the design mode, But it making my page slow because it loads all the content at a time. So, I want this to be dynamic. When User Click on Header of Accordian Panel, It loads the user control dynamically and also asynchronously.
I tried to put the user control under UpdatePanel which I placed under Accordian Content Panel but this is not working. Also I want to display loading images if getting slow response from server. how can I achieve it. It will be better if you provide an example.
I'm new to the world of Update Panels and i'm having a hard time figuring out how to use them properly.
I have a form that has a table(TABLE1)...and inside TABLE1 i am linking to a sql data source....at the bottom of the table i have a 'Add' button.
When the user clicks the add button...a modal popup appears (POPUP1) and inside the POPUP1 the user can click a link that can add a user...when the link button is clicked...a panel within POPUP1 is set to visible = true.
I have one update panel around the whole table and the add button...when i click add and then click the link to add a user....the modal popup disappears.
I have an UpdatePanel and inside that I have an Accordion and several panes. From the first pane i can push three ImageButtons. Each imagebutton will load a control into a Placeholder in another Pan - still in the same accordion though.
The problem accur when I push the buttons. After two or three push the buttons will stop responding and nothing gets loaded into the Placeholder.
I have a form in a page and a panel inside the form.The panel gets loaded with dynamic controls like radio button and text boxes.
User is allowed to choose any radio option and enter any value in the textbox beside it and then goes for submit button to move to next stage.
I load the controls in the panel based on the index of a combo control on the same form.it is done in selectedIndexChanged - This is working fine.
When i go for the submit button and ask for the textbox control, it says "object reference not set to instance of object", denoting that instance is not available. Moreover the panel control list gets empty automatically.
i have created a web project and i want to test it.when i click on debug or click on default page to view on browser , ASP.NET Web Development Server Works but nothing appear in my web browser . even i used internal browser of Visual Studio 2008 but it shows this message :
i have to mention that there is no installation of IIS in my computer.