User Profile
Collapse
-
Thank you very much!! -
Is there any way you can provide an example? I was just thinking about this whole situation and I'm still stuck on the most logical way to deal with it. I've implemented hidden fields, but then I can't really save multiple values to the database.
Thanks!Leave a comment:
-
Move items between listboxes
I'm having a hard time figuring out how to move items between a left and right listbox server-side.
I have a populated listbox from the database on the left and I'm trying to add items to the box on the right and save those values to the database.
Can anyone help me? I've searched everywhere and haven't found any code that's helpful!
Code:protected void Submit_Click(object sender, EventArgs e) {
-
I've solved the problem by implemeting the code like you've suggested :)
Now I've run into the dilemma of trying to solve the issue of overwriting already supplied images.
If the upload box is left blank, it still updates the database as a null... overwriting anything that was already stored.
As you can see, this is my first time using images in my database. I can't store the filepath because this is...Leave a comment:
-
-
I saw the code and I've not find the problem, just try to set picture.SqlValu e=Convert.DBNul l;instead of picture.Value=C onvert.DBNull;
I'm not sure. -
Here is my boatload of code... the "picture" field is allowing nulls.
Code:protected void ButtonSave_Click(object sender, EventArgs e) { int intImageSize; string strImageType; Stream ImageStream; FileUpload FileUpload1 = (FileUpload)this.FindControl("FileUpload1"); // Gets the Size of the Image intImageSize
Leave a comment:
-
Not sure if this works... I just posted this on the thread as well.
The only other thing I'm trying to figure out is even when a user doesn't upload an image, it's still stored as a binary instead of a NULL. How would I replace binary with NULL when no image is selected for upload? -
The only other thing I'm trying to figure out is even when a user doesn't upload an image, it's still stored as a binary instead of a NULL. How would I replace binary with NULL when no image is selected for upload?Leave a comment:
-
Yes, I did save it. I managed to use the document.getEle mentById for this...
My code was this:
Code:var el2 =document.getElementById('<%=RadTextBoxAdd.ClientID %>');
Leave a comment:
-
-
Parent to Child
I'm wondering how I can pass the values of a combobox in my parent page to a textbox on a child popup page.
Here is the code that I have on the parent page right now to find the value of the combobox.
Code:function openRadWindow(url, windowName) { var el = $find('<%=RadComboBoxResources.ClientID %>'); var txt = el.get_text(); var oWnd = radopen(url + "?name="
-
Actually, I think what I want to really accomplish is this:
If the value of the picture field is null, I want to show this blank.gif image which says that there is no image available.Leave a comment:
-
Hey, thanks for your response, I don't have a picture box, rather an image tag.
Code:<asp:Image ID="image1" runat="server" ImageUrl="DisplayPicture.aspx" BorderColor="#6f9dd9" BorderWidth="2px" BorderStyle="Solid" Height="150" Width="150" />
Leave a comment:
-
Replace blank images with default image
In my program I am storing images in the database. Not all of the records in the database have images, and when I load the details into another .aspx page, sometimes the image is empty- has a red "x". How do I replace that "x" with a default image?
No activity results to display
Show More
Leave a comment: