Posts

mysql - How can I set current user as default value in the drop down list ASP.Net and VB.Net application -

in asp.net , vb.net web application form ; drop down list main contact holds list of names. list different different user logged in application. data populated select query database fields. (select query fetches data innerjoining 2 tables- employeruser table & user table. primary key of user table id foreign key in employeruser table named userid.) in front end asp.net coding is <div class="form-element"> <label> main contact (required) </label> <asp:dropdownlist id="commaincontact" runat="server" cssclass="chosen" enableviewstate="true" datatextfield="name" datavaluefield="id" /> </div> in end vb.net coding drop down list is commaincontact.datasource = localhelper.cachedemployeruserlist(localhelper.useremployerid) ...

java - jar file exception -

this question has answer here: how make runnable jar file? 3 answers i'm trying make runnable jar file of java application. each time follow steps of exporting application etc. created jar file application when run it, shows popup 'java virtual machine. java exception has occurred'. how can resolve issue? this correct, jar zip jar files fundamental archive files, built on zip file format , have .jar file extension just run it !

javascript - Can I Create a Single HighCharts Graph from Multiple Data Sources (Multiple GoogleSheets in this case) -

i’m trying use data multiple googlesheets produce single highchart graph. i’d without moving data 1 area of single spreadsheet, particularly want use drilldown option make difficult collect data together. thought pass columns array , reference array in data property of chart, i’m struggling 1 column 1 sheet. i have searched answers online, have not found relating highcharts getting data multiple sources. previous research: using googlesheets data array before creating chart: (removed link) - problem use 1 googlesheets reference here chart object sits inside data object. api documentation - (removed link) – tells me can access columns that’s not part i’m having problems with querying chart: (removed link) - have considered making hidden charts, interrogating data , making new charts those, seems long way round , i’m still not sure grab data need. using 2 googlesheets separate charts on same page: (removed link) have done this. please me understand how can access properties...

ruby on rails - ActiveRecord How to verify a record has sucessfully saved on the database? -

i have learned hard way that model.save will return true if record passes validations, if there errors adding/updating model @ database end, still returns true. therefore using if model.save render 'yayy' else render 'error' end is not reliable. are there method has same functionality returns true if database updates or otherwise best way verify record has saved on database. (if matters using postgres database) check out activerecord::persistence . besides others, there such methods, new_record? , persisted? might looking for.

webview - Responsive website on different android devices like tablets and mobiles with a clear image quality? -

Image
i using webview display website url. actually, website contains text , images. when open app, automatically url accessed , can website directly. user can able click in home screen (on website) see products. have done program using webview. i able see website through android app on samsung mobile device through programmatically. not able see clear website on different android devices tablet , mobile devices through apk. there other solution? please can suggest or me? image not getting fitted webview when test on different android devices tablets. how websites work webview (with image , text alignment built in website using bootstrap) please can suggest / me? my code is, wv=(webview)findviewbyid(r.id.webview1); wv.setwebviewclient(new mywebviewclient()); string url="http://192.169.11.15/customercentric"; wv.getsettings().setjavascriptenabled(true); wv.loadurl(url); } private class mywebviewclient extends webviewclient { @override publ...

c# - Empty GridView with dropdownlist having Datatable as it's datasource -

i've form shows empty gridview along add new button. have drop down list in column 1 gets populated database. based on selected dropdown list, query sql database , populate columns 2 , 3. i'm having trouble writing values of dropdown list datatable , add new row. worked when gridview had textboxes adding databound dropdownlist made lot complex. here code: <asp:gridview id="gridview1" runat="server" showfooter="true" autogeneratecolumns="false"> <columns> <asp:boundfield datafield="rownumber" headertext="row number" /> <asp:templatefield headertext="item number"> <itemtemplate> <asp:dropdownlist id="ddlitemnumber" runat="server" datasourceid="sdssubjects" datatextfield="item_num" datavaluefield="item_num" onselectedindexchanged="index_changed" autopostback=...

javascript - (Fixed by design change) Calculating heights to keep two columns equal height with jQuery on a responsive design site -

this no longer issue design has been changed, i'll leave question if other people have similar issue can discuss it. i working on site there section containing 4 elements 50% width, 3 of these elements images of different sizes , 1 text section (this section of text has 3 sets of content can changed through set of navigation buttons @ top. elements within section have divided 2 columns placed next eachother , have remain same height no matter how user re-sizes window. http://jsfiddle.net/jbalr019/1/ $(window).load(function() { $promotiontopleft = $('.promotion-top-left'); $promotiontopright = $('.promotion-top-right'); $promotioncenterleft = $('.promotion-center-left'); $promotioncenterright = $('.promotion-center-right'); $promotionleftcolumn = $('.left-column.grid-column'); $promotionrightcolumn = $('.right-column.grid-column'); var leftcolumnheight = $promotionleftcolumn.innerheight(); var rightcolumnheight = $promoti...