- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
29 Posted Topics
Re: Hello nezammca, If you are asking for populating GridView without hit in the DB. Then you can try this. [code=vb.net] #Region "Page Methods" Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then PopulateGridView() End If End Sub #End Region #Region "Methods" Public Sub … | |
Re: Your button controls are outside form tag . Try adding inside it. It will work. I guess we have already discuss about similar topic [URL="http://www.daniweb.com/forums/thread293990.html"]here[/URL] | |
Re: Hey Lara, Welcome to daniweb! We'll be waiting for your wonderful advanced ideas!! | |
Re: Hi eesha.ebaad, I can understand how you feel when you find your image in your specified location but can't see in your page. To fix this you might need a fully qualified URL to the specified resource suitable for use on the browser i.e.`ResolveClientURL("~Your Link")` So, your code should be … | |
Re: Hi, Try this [CODE=asp.net] <asp:Image ID="imgSmallPics" runat ="server" ImageUrl ='<%# "~/AdsPictures/" & Eval("pictureName")%>' [/CODE] Actually, I too used to have problem on attaching Eval methods with server side and pure html controls. :) Hope this works. Thanks, | |
Re: Hi, The only solution you receive here is the basic about exception handling, Please don't limit yourself here. Go google , make a deep research on one of the most interesting topic. You can have a quick start [URL="http://msforge.net/blogs/janko/archive/2008/03/08/asp-net-exception-handling-best-practices.aspx"]here.[/URL] ( really a nice one.) | |
Re: Hi, Convert your "CurrentTranxDateTime" to string before manipulation. Thanks, | |
Re: Hi Kushal, I guess you are talking about creating the proper SQL statement. May be this can help you [CODE=asp.net] Dim sqlStr As String sqlStr = "IF EXISTS(SELECT 'True' FROM MyTable WHERE strCol = 'SearchParam') " sqlStr &= "BEGIN " sqlStr &= "SELECT 'record exists !' " sqlStr &= "END … | |
Re: Hi, You can try this as well, In the code behind where you perform the redirect operation, instead try something like this, [CODE=vb.net] Dim jsStr As String = "window.open('" +url+ "');" ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType(), "", jsStr, True) [/CODE] | |
Re: Hi, Did you mean to maintain the values even after post back by using ViewState. If it is then try something like this, 1) Declare your properties [CODE] 'Property Hi Public Property displayHi() As String Get Return Cstr(ViewState("displayHi")) End Get Set(ByVal value As String) ViewState("displayHi") = value End Set End … | |
Re: Hey Khan43, I believe if it is only about rounded corners in the Div, then it can simply be acheived using proper CSS. Why need of AjaxControlToolKit here?. you can view some techniques [URL="http://www.devwebpro.com/25-rounded-corners-techniques-with-css/"]here.[/URL] Hope this help.:idea: | |
Re: Hi, Initially you need to bind the total Sum to the @Ctotal (as Ctotal is OutPut parameter) in your SP with name "ClaimTotal" in following manner, SELECT @Ctotal = SUM(total) FROM claim Afterwards, You need to create proper code block to find value in @Ctotal. [CODE=vb.net] Dim cTotal As Integer … | |
Re: Hi, Is it with only the current project that you are working on or with all the others projects.? Please confirm this and be descriptive so it can be easier to reply on this. Thanks | |
Re: Congrats, May be it was by using "DateTime.Now().ToShortDateString()". Finally, Why don't you mark this as solved . thanks | |
Re: Hi, Try using the following [code=vb.net] CType(frmMyForm, frmMyForm).Show() [/code] Hope this works :) | |
![]() | Re: I guess you are experiencing loading and handling problems with the dynamically added buttons for Next and submit. Not exactly but below i have listed the possible way for dynamically populating Next and Back buttons and setting up event handler for them. You can copy the code and make corrosponding … |
Re: Try creating social networking site for a specific product that you like most. Such as forums, reviews etc. for mobile, laptops, furniture etc. When compared with recent trends it sounds common but it help you build wider approach towares web. It will be more easier using CMS and the best … | |
Re: Hi, Do you want to delete record from DB after pressing the delete button.? If yes then you can try the following. 1 ) Add appropriate buttons in your aspx page. [code=asp.net] <asp:TemplateField> <ItemTemplate> <asp:Button ID="btnDelete" Text="Delete" CommandArgument=''<%#DataBinder.Eval(container,"dataitem.ID")%>'' CommandName="DELETECURRENTROW" OnClientClick="return confirm('Are you sure you want to delete this record?')" runat="server" … | |
Re: Hi, It is really simple just to implement the file upload. But depending upon the condition and requirements it varies alot. Let us talk about some conditions that arise with your code. 1) The file uploader must have a file attached with it. 2) Check file size (mustn’t be ) … | |
Re: Attaching a dataset within session and binding data from session while paging records seems very easy but I belive it create worst scenerio for resouces especially when your datatable is huge. I recommend passing your pageNumber and PageSize parameter to your stored procedure and evaluate the paging in following way. … | |
Re: May be the issue is in form tag. The first thing I suggest you is try using simpler approach, i.e. using single form control and placing other server control inside it. I guess it is only the design issue that bothers you. But if you really need to does this … | |
Re: I guess using the following will be much easier. [code=vb.net] dg_Movies.DataSource = ds.Tables("Tbl_MovNames").DefaultView() dg_Movies.DataBind() [/code] | |
Re: try using, [code=vb.net] ctype(ContentPlaceHolder1.FindControl("textbox1"),TextBox).text=session("menu") [/code] | |
Re: Many reasons can lead you to this condition such as module not found, Usercontrol not compatible or contains error etc. You need to login as super user and view the exact reason for this. | |
Re: Hi, Why don't you use hiddenfield instead of populating in column and find in following way [code=vb.net] p=GridView1.Rows(i).FindControl("hfMyText").value [/code] | |
Re: Hi, Please refer to my post on [url]http://www.daniweb.com/forums/post1256376.html[/url] [code=vb.net] Dim dv As New DataView() With dv .Table = ds.Tables(0) .RowFilter = "dataColumnName='A%'" End With yourGridView.DataSource = dv yourGridView.DataBind() [/code] | |
Re: Hello ykel, I guess you are using a placeholder to load control. As you say that you get a value of -1 instead of selected value, it means your ddl control get lost while rendering. To solve this do the followings 1)Please check your UC is maintained in every post … | |
Re: Hello, Hope this works [code=asp.net] <asp:TemplateField> <ItemTemplate> <asp:ImageButton ID="ibtnTestBtn" ImageUrl="yourimageURI.jpg" Enabled='<%#IIf(IsDBNull(DataBinder.Eval(Container, "DataItem.ColumnName")), True, False)%>' runat="server" /> </ItemTemplate> </asp:TemplateField> [/code] | |
Re: Hello deeptakshd, If it is related to filtering only then try something like this, 1) Replace your hyperlink with linkbutton 2) Add code similar to below in your linkbutton click event. Suppose if it filter value with A then, [code=vb.net] 'Get Dataset for binding in gridview. 'Dim ds as DataSet … |
The End.