1st) Server retrieve an image from Database, in the Database i've only the path, then i encapsulate the image in a XML and i send this XML to the client.
2nd) The client decapsulation the img, so the client has an array of bits with the image. it's not allow send the path for security.
Now i need associate this image with my webcontrol img.
i do something like
ImgUrl = "Handler.ashx?num_doc=13"
and it works, but really i need do something like:
ImgUrl = "Handler.ashx?num_doc=" + num_doc;
where num_doc it's a http parameter recieved from a page. I'll try to put the ImgUrl from code but it doesnt work, just show a path.
I have 3 UpdatePanels on my page, and 1 UpdateProgress. I'd like it to be associated with 2 of the UpdatePanels but not the third one. The AssociatedUpdatePanelID property only allows for 1 ID, so it's one or all of them. Is there another way?
i want to create a webservice that reading from the user identity interacts with a db, where there are app names and group that can use that app, and gives to the user a list of operation that he can use.
My question is, is there any table in apsnetdb that does this association or i should create a costum table.
I have following requirements . On the search results associated with my autocomplete textbox i need checkbox to be associate with the result data . So that the end user can select multiple selection at a go .
I've got a VS 2005 app that I've got to make some modifications to. I've got to add a time element to gathering a date. What I'm thinking of doing is allowing the user to enter the date (as they always have been able to) and now the time, and associate that with a new user control that I've got to write. I'd like to upgrade this application to either VS 2008 or VS 2010, and hopefully I'll be able to do that. (There are some open source code apps that we've got in it, which stitch together .PDF files that we generate from Crystal Reports, so that's where I'm not sure how will this will all go.)Anyway, this date/time user control that I've got to write will have to ensure that they user entered both values, so I'll use a couple of required field validators. That's all fine and good, but what I'd like to know is if it is possible to piggy back onto the event of the user not entering the required values? Is there an event of the required field validator I can put code into, so that I can either play some audio file (as in, "You must enter something") and/or show a video?
I'm using the DataList WebControl for the first time. What I am wanting to do is dynamically load a datalist bound to a datasource with radiobuttons. This datalist control resides within a <div>. In design mode, everything looks great, however, when I run my web app...nothing appears. Do I need to associate the datalist control to the div by chance?
I have a table that shows datas from a SQL DB. Some of those datas is numeric ( 1,2,3) and in another table I got the name that represents each number.
ex:
1= Goalie 2= Defence
So I did a Class_filters, in which I associate the number to the right string data.
I was wondering how can I do that in GridView? Is it possible?
I have a WebControl that I'm creating and when I'm in the designer...you really can't tell what it is...see Attachment 1 below. See Attachment 2 for what it looks like rendered in the Browser (IE & Firefox). What would cause this. I really can't even throw controls onto the UC looking like this. I have to go into the markup and do the drag and dropping.
I have a ListView control in Asp.Net WebForms which display a set of elements, I have at the end a "More" button like Facebook for example. During the postback I want to get from database another 10 elements (I have already displayed 10 and I don't want to retrieve them again)
Something like this.
foreach (var item in New10Items) ListView.Items.Add(index,DataItem)
the problem is with DataItem, how to Bind it before add it? what is the best way of solving this?
When using an asp.net CheckBox (and in out case, inherited from a CheckBox) it renders a span around the checkbox input control, this span control is affecting jQuery scripts.
Is it possible to remove this span when rendering?
I have a page which holds a custom webcontrol and a usercontrol. I need to reference of webcontrol in usercontrol class. So, I make the declaration of webcontrol as public in page class. But, when I do "this.Page.", I don't see the webcontrol listed in list provided by intellisense. Most probably, I am missing something.
In an asp.net page, how to get a reference of a custom webcontrol from a usercontrol?
I'm using one Sublayout (Sitecore) and have a placeHolder that currently holds 2 webcontrols. I want to access the Label from one Webcontrol to the other Webcontrol.Do i have to find the Label recursively or can i just access the Label on another way? I tried different methods like:
I have set the destinationpageurl on the login webcontrol to go to a logged in start page - but when I log in any user is goes to the default start page
I am trying to access a webcontrol (a Textbox) from the EditItemTemplate of a DataList, so I can change it. When I try to do DataList.FindControl("TextboxID") it comes back with null because it doesn't recognize the textbox has rendered. I've tried looking in the DataBinding, DataBound events and those don't work either.
To be more specific, I need to change the value of a textbox when the user uses a Calendar control, so I need to access the control from EditItemTemplate in the Calendar_SelectionChanged event.
I have created a custom web control to act as a button with an image. I would like to be able to set this as the target of the DefaultButton parameter of an ASP.NET Panel control. I have implemented the IButton interface, and no error is generated when loading the page using the control. However, when I press enter in a textbox within that panel, the Click event of the control is not raised. When I replace my control with a standard ASP.NET button, everything works fine.I have a test page with a panel containing a textbox, an instance of my custom button, and a standard asp.net button. The buttons are wired to an event handler which will change the textbox to the ID of the caller.When DefaultButton of the panel is set to the ASP.NET button, hitting enter in the next box works correctly - the page posts back, and the text box is populated with the name of the standard button. When DefaultButton of the panel is set to my button, hitting enter in the textbox causes the page to postback, but the Click event is not fired. Clicking the button manually works correctly.Does anyone know what I have to add to my custom control to make it handle the event coming from the Panel control? I'm looking using Reflector at the source code for Button, but cannot identify what is enabling this behaviour.I have posted the source of the control below, and the relevant source of the test page.Control Source:
public class NewButton : WebControl, IPostBackEventHandler, IButtonControl { public NewButton() : base(HtmlTextWriterTag.A) { }
would love to popup a created ascx control.in my aspx page i have a button like button1modalpopupextender targetcontrolid is button1 and popupcontrolid is the one of the ascx control.everything works. have MANY buttons (more than 2) inside the ascx control.depending on WHICH button i push INSIDE the ascx control, the controls returns me back a valuebut the server side event for button1 is no more fired after extending with modalpopupextenderso what i need is to specify the modalpopupextender a method to call after ANY button inside the ascx control has been pressed.i did not find a solution until know.it WOULD HELP ME if, i click my button1, the modal popup displays, i can click inside there, and after i click inside the modal popup, the event for button1 server side would be raised, but this does not.i tried event for modalpopup unload but it crashes my webserver.so why this all? i created a ascx which will be dynamically filled with buttons and text depending on what i need.