hi i have update-panel which works fine in Google chrome, Mozilla, but not in IE(6,7 and 8). when i click refresh button postback is happening.
Any suggestions plz
View Complete Post
Hi! i try to make a search part. there is a textbox which will be used for search context. also, i need to list category names. i don't use dropdownlist because its styles(for example border-style)doesn't change. So i tyr to do like this:i use a label and datalist. when clicking the label, datalist is showing. when i click the category name on datalist, it will be shown on label.(label is not in datalist.)my problem starts at that point. when i click category name on datalist , page is being postback. so i put datalist into updatepanel. but this time , i click category name on datlist,nothing occurs.(category name doesn't shown on label).my code is below:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate> <asp:DataList
I have a problem and I really hope
you'll be able to help me.
I'm trying to add and edit an image
which is located in a detailsview which is inside an UpdatePanel. After I read
relevant topics in the forum I installed the Ajax Control Toolkit. Below is my
source code. When I used it only for insert new image it worked
great. The problem caused when I tried to implement it on the Edit mode, i.e.
when I tried to edit the image and upload a different image. Unfortunately it didn't work as I hoped. Nothing happend and the image
hasn't been changed. I also tried to change the IDs (AsyncFileUpload ID) to be
the same in both places but it didn't work either.
The source code:
ID="dvMovie" runat="server" Height="50px"
I have implemented a custom gridview paging method using the pagertemplate tag. The source code is the following:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:GridView ID="gvResults" runat="server" AutoGenerateColumns="False" DataKeyNames="CHId" CssClass="grid" GridLines="None" AllowPaging="true" AllowSorting="true&q
i am using 2 ddl, 1 gridview & 3 update panels for each in my page.
now i want update my gridview, when any ddl was changing.....
how to do this....
Where is the Problem with the popup within a asp updatepanel.
It works fine in IE8. But in FireFox (Version 3.6.11) it works only sometimes.
ASP-Control for PopUp (PopUp.ascx):
<asp:UpdatePanel ID="UIUpdatePanel" runat="server" UpdateMode="Conditional">
<asp:Label ID="UILabelHeadLine" runat="server" />
<asp:RadioButton ID="UIRadioButton1" runat="server" Checked="true" />
<td rowspan="6" class="helptextcolumn">
<asp:Label ID="UILabelInfoText" runat="server" />
<asp:RadioButton ID="UIRadioButton2" runat="server" />
<td align="right" colspan="2">
<asp:Button ID="UIButtonOk" runat="server" OnClick="UIButtonOk_Click" ValidationGroup="FinishDateTime" />
I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,
Note that the slashes go in different directions
I've tried a number of things but nothing seems to work. Thanks-
Partial Class Protected_imageupload
Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
' Initialize variables
Dim sSavePath As String
Dim sThumbExtension As String
Dim intThumbWidth As Integer
Dim intThumbHeight As Integer
Dim sFilename As String = ""
' Set constant values
'sSavePath = "images/"
sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"
sThumbExtension = "_thumb"
intThumbWidth = 160
intThumbHeight = 120
' If file field isn?t empty
If FilUpload.PostedFile IsNot Nothing Then
' Check file size (mustn?t be 0)
Dim myFile As Http
I'm working project it's live on shared hosting
we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder
the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin
twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere
on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck
thaks for your help in advance
I'm having a problem with an asp.net 3.0 application using a gridview to display data. The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query. For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user.
This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string. Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever. Is this possible?
Any and all help will be much appreciated!!
I store some values from code behind to a label which is Hidden !
<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>
and at the page load event i retrieve the value of the label & assign it to a string !
stringvalue = lbl_Hidden.Text;
Now i dont know why this manipulation does'nt work !
I've a character 'A' in the string and i'm unable to replace it with a space !
stringvalue.Replace(A, " ");
Wot do u think abt it ????
I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.
UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.
First I created the sub delegate and event in UC1:
In the same UC1 the Insert procedure that fires the insert and RaiseEvent:
Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs) Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString) Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn) myCom.CommandText = "AddRow" myCom.CommandType = CommandType.StoredProcedure
Try myConn.Open() &nb
I have a gridview with Enable selection and Enable Paging equals to TRUE.
I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.
The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.
Here is code behind of my gridview:
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes("style") = "cursor:pointer"
e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))