string minute = "15"; string minute2 = "20"; string minute3 = "27"; string minute4 = "02"; TimeSpan first = TimeSpan.Parse(minute); TimeSpan second = TimeSpan.Parse(minute2); TimeSpan Third = TimeSpan.Parse(minute3); TimeSpan fourth = TimeSpan.Parse(minute4); TimeSpan now = DateTime.Now.TimeOfDay; if (now == first|| now == second || now == Third || now == fourth) { //matched } else { } } is it correct what i have done in asp.net because i am not geeting proper output

Member Avatar
Member Avatar
+0 forum 1

Hi everyone i am getting an error that says Microsoft Office Excel error '800a03ec' Unable to get the Open property of the Workbooks class when i try to open an excel work book in my code . The line of code where i get the error is [icode] Set ExcelBook = ExcelApp.Workbooks.open(BookPath)[/icode] where BookPath is the path to the file . The code before the line where the error is looks like this [icode] Set ExcelApp = CreateObject("Excel.Application") ExcelApp.Application.Visible = false BookPath = "c:\filename.xls" Set ExcelBook = ExcelApp.Workbooks.open(BookPath) [/icode] please help and thank you in advance

Member Avatar
Member Avatar
+0 forum 2

test for check more 5 items

Member Avatar
Member Avatar
+0 forum 4

$count1 = array(); $count1[0] = " 1"; $count1[1] = " 2 1"; $count1[2] = " 3 2 1"; $count1[3] = " 4 3 2 1"; $count1[4] = " 5 4 3 2 1"; $count1[5] = " 6 5 4 3 2 1"; for ($b = 1;$b <= 6;$b++) { echo $count[$b]; echo "<br>"; } why does this not work? it just goes on forever. How do i use the $b to up the count of $count[]?

Member Avatar
Member Avatar
+0 forum 1

What are the pros and cons of using Asp.net MVC vs web forms?

Member Avatar
Member Avatar
-2 forum 3

I makeing a website using VB .net inside visual studio. I have a database where I am storeing names. Than I am displaying these names inside a table. here is a ex: ---------------- | dave | bob | | john | bill | ---------------- I was to add a button called 'delete', inside right click menu. this way user can right click on name, click on delete button. How many I do this? how can i set up context menu or is that just for desktop apps? remember I am makking a website

Member Avatar
Member Avatar
+1 forum 3

Guys, ... and let's not forget the "Girls"! I am really starting to get pissed off at the searchengines. For 2 days now been googling (tried ask.com now too) searching for web proxy hosts as I want to run a free service like: http://anonymouse.org/anonwww.html But hardly any relevant results. You try and see for yourself. Been googling for 2 days for info on what to "look out for (dangers) in running your own free web proxy service (like anonymouse.org). That way, I can be aware of all the risks and take measures in advance so I don't fall in the …

Member Avatar
Member Avatar
-5 forum 28

Hello everyone! Basically a user is able to select one or multiple rows using checkboxes in a GridView and then a delete button which deletes selected rows. The problem is, the code behind for deleting works until I started using UpdatePanel. It just broke and I have no idea what went wrong. Here's my ASPX code; <asp:UpdatePanel ID="upl" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="serverclick" /> <asp:AsyncPostBackTrigger ControlID="GvGrade" /> <asp:PostBackTrigger ControlID="BtnRegister" /> </Triggers> <ContentTemplate> <asp:GridView ID="GvGrade" runat="server" AutoGenerateColumns="false" ClientIDMode="Static"> <Columns> <asp:TemplateField HeaderText="Task ID" HeaderStyle-HorizontalAlign="Center"> <HeaderStyle Width="100" BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <ItemStyle HorizontalAlign="Center" /> <ItemTemplate> <asp:Label ID="lblID" CssClass="lblID" runat="server" Text='<%# Eval("drug_id") %>'></asp:Label> </ItemTemplate> …

Member Avatar
Member Avatar
+0 forum 2

using (MySqlCommand cmd = new MySqlCommand("SELECT EmpId, Emp_Name, Salary , Start_date , End_date , CASE WHEN (Employees.End_Date is null) THEN DATEDIFF(DATE_ADD(Start_Date, INTERVAL 30 DAY), Start_Date) * Salary/30 ELSE DATEDIFF(End_Date, Start_Date) * Salary/30 END AS Total_Salary From Employees;")) { using (MySqlDataAdapter sda = new MySqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = cmd; using (DataTable dt = new DataTable()) { sda.Fill(dt); //Build the CSV file data as a Comma separated string. string csv = string.Empty; foreach (DataColumn column in dt.Columns) { //Add the Header row for CSV file. csv += column.ColumnName + ','; } //Add new line. csv += "\r\n"; foreach (DataRow …

Member Avatar
Member Avatar
+0 forum 3

How to can i do like this: datagridview1.row [i] = input value , and results(calculated) in datagridview2's row[i] = output value. it means input row and output rows are neeb to be same. i need to connect them. please help me.

Member Avatar
Member Avatar
+0 forum 3

class AdvancedKeyboardTester { static void Main(string[] args) { for (; ;) { Console.ReadKey(); } } }

Member Avatar
-2 forum 0

I have problem while calling jquery functions it generates double output while when we do highlight questions and crossout on html content sometimes highlight and crossout also not working with selecting using Ctrl+A or select all. highlight and crossout values i am storing to database so, we can remain next time in questions. I am trying and just needs to works it well. [**Click Here For Output**](https://jsfiddle.net/17hhj61f/17/) **HTML CODE:** <style> .highlight{background:yellow;} .crossout{text-decoration: line-through;} </style> <input type="button" onClick="return false;" id="btn_highlight" unselectable="on" value="highlight" class="unselectable" alt="highlight" width="36" height="38"> <input type="button" onClick="return false;" id="btn_crossout" unselectable="on" value="crossout" class="unselectable" alt="crossout" width="36" height="38" /> <input name="highlight" id="highlight" …

Member Avatar
+0 forum 0

The Membership table for our ASP.NET site has the encrypted passwords and password salts stored when a user logs in. The site is already served over an HTTPS connection, but we would like to give our clients the ability to download and save certain files and documents. We would like to have those documents encrypted (essentially password protected), which we can do, but, we would like to have them be able to open those enrypted documents using the password they use to login to the site. Is it possible to do this? Essentially, I don't see how it would be …

Member Avatar
Member Avatar
+0 forum 7

I am using visual basic, javascript, and html. I am trying to use google hierarchy chart api. I works fine on localhost but when I try to move the same code to the server than I get the following error: Error: Object doesn't support this action <%@ Page Language="VB" AutoEventWireup="false" CodeFile="myFile.aspx.vb" Inherits="UI_myFile" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script> google.charts.load('current', { packages: ["orgchart"] }); google.charts.setOnLoadCallback(drawChart); function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); …

Member Avatar
Member Avatar
+0 forum 1

I have a delete button by createing <asp:ImageButton>. first row user cant delete the item so I dont want a delete button on first row? how can i do this? <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" OnDeleteCommand="DeleteCommand" RepeatColumns="2" RepeatLayout="Table" RepeatDirection="Horizontal"> <ItemTemplate> <asp:ImageButton runat="server" ID="deleteIB" CommandName="Delete" ImageUrl="x-icon.png" /> <%# DataBinder.Eval(Container.DataItem, "PRINT") %> </ItemTemplate> </asp:DataList> Protected Sub BindGridData() Dim dt As DataTable = New DataTable() dt.Columns.Add(New DataColumn("ID", GetType(Int32))) dt.Columns.Add(New DataColumn("PRINT", GetType(String))) Dim dr As DataRow ... While reader.Read() dr = dt.NewRow() dr(0) = reader(0) dr(1) = "<a href=''>[x]</a> reader(1)" dt.Rows.Add(dr) End While ... End Sub

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, I have 2 Tomcat app servers (Tomcat1, Tomcat2) on 2 different hosts. Tomcat1 is my main J2EE web application that has a commercial certificate, and the application works correctly. Tomcat2 is a dependent component that has a self signed certificate. both tomcats are behind a load balancer. When calling my Tomcat2 component, I get the following error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I tried importing my self-singed cert on JVM of my Tomcat1 (and Tomcat2), but still same result. Do I need to have the self-singed cert …

Member Avatar
Member Avatar
+0 forum 2

getting conversion error I am creating a website using a VB Error: if I print getID1 Conversion from string to type 'Integer' is not valid. Error: if I print getID2 NullReferenceException was unhandled by user code. Object reference not set to an instance of an object. ** # .aspx file # ** <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" OnDeleteCommand="DeleteCommand"> <ItemTemplate> <asp:ImageButton runat="server" ID="deleteIB" CommandName="Delete" ImageUrl="x-icon.png" /> <%# DataBinder.Eval(Container.DataItem, "ID") %> </ItemTemplate> </asp:DataList> ** # .aspx.vb file # ** Dim ds As DataSet = New DataSet() Dim dt As DataTable = New DataTable() Dim dt As DataTable = New DataTable() dt.Columns.Add(New DataColumn("ID", GetType(Int32))) …

Member Avatar
Member Avatar
+0 forum 1

I am making a website using vb .net I have a datalist which has a datatable and delete button. the output llooks some thing like this below. 'X' is the delete button. --------------------- | X name1 | X name3 | | X name2 | X name4 | --------------------- When user click on the delete button(X) i want to get the id of that button and use that to delete a record in database. <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" RepeatLayout="Table" DataKeyField="ID" OnDeleteCommand="DataList1_DeleteCommand"> <ItemTemplate> <asp:ImageButton ID="imgdeletebtn" ImageUrl="x-icon.png" runat="server" /> <%# DataBinder.Eval(Container.DataItem, "StringValue") %> </ItemTemplate> </asp:DataList> Protected Sub DataList1_DeleteCommand(ByVal source As Object, ByVal e …

Member Avatar
+0 forum 0

How do you split a string in vba?

Member Avatar
Member Avatar
+0 forum 1

How to create a datalist table layout in vb? I am using vb .net I have a following data: DataBase: databaseName Table : tableName -------------------- | ID | randomNames | -------------------- | 1 | name1 | | 2 | name2 | | 3 | name3 | | 4 | name4 | | 5 | name5 | | 6 | name6 | -------------------- I want to take all the data from database and display datalist table in the following format. ------------------------ |name1 | name2 | name3 | |name4 | name5 | name6 | ------------------------ I set up the code but having …

Member Avatar
Member Avatar
+0 forum 1

How to create a datalist table layout in vb? I am using vb .net I have a following data: DataBase: databaseName Table : tableName -------------------- | ID | randomNames | -------------------- | 1 | name1 | | 2 | name2 | | 3 | name3 | | 4 | name4 | | 5 | name5 | | 6 | name6 | -------------------- I want to take all the data from database and display datalist table in the following format. ------------------------ |name1 | name2 | name3 | |name4 | name5 | name6 | ------------------------ I set up the code but having …

Member Avatar
+0 forum 0

Hi all, This is a very elementary question, but I'm a couple of days into this. Which web.config file should one store keys in? Keys to use within a Model/Controller? I see four different ones: Project > Views > Web.config Project > Web.config Project > Web.config > Web.Debug.config Project > Web.config > Web.Release.config When testing with a key in the one located Project > Views, I don't get to see the key value using `ConfigurationManager.AppSettings.Get("UserName");`. Thanks.

Member Avatar
Member Avatar
+0 forum 4

![as1.png](/attachments/small/4/e567c7cd76bf9f6460345131854df142.png "align-left") Please take a look at the attached image first. I would like to recreate this. I am using VB and bootstrap. Code: <div id="body_wrapper"> <div id="theCarousel" class="carousel slide" data-ride="carousel"> <!-- Text --> <div class="carousel-inner"> <div class="item active"> <div class="slide1"></div> <div class="carousel-caption"> <h1>my picture 1</h1> </div> </div> </div> <div id="search_wrapper"> <asp:TextBox ID="searchTB" runat="server" multiline="true"></asp:TextBox> <asp:ImageButton ID="searchIB" runat="server" ImageUrl="~/Images/search.png" /> </div> </div> </div> problem: I am not sure how can I write bootstrap code to move the search_wrapper above. I also want to make sure it auto-ajust when window is resize and it work for all browsers. any idea will …

Member Avatar
+0 forum 0

How would you explain JavaScript closures to someone with a knowledge of the concepts that make up them (for example, functions, variables and the like), but does not understand closures themselves? I have seen the Scheme example given on Stack Overflow, unfortunatly it did not help.

Member Avatar
Member Avatar
+0 forum 1

Hello everyone has in the past this site has been helpfull for any kind of project that i´ve done well, now it´s time for make some charges for the time that i been spending on those projects but i don´t know how, please ¿can you help me to make a quotation over a project of logistic bouquet the web app that i´ve developed has the next modules receipt of material picking of material (generation of order automatically) inventory (query,transaction,export to excel,crystal report) notification thru e-mail to an external customer support 24hr 365 day at year responsive web design to fit …

Member Avatar
Member Avatar
+0 forum 2

I am using VB. How to select mult iteams in listbox using backend code? I have a listbox where user can select muti items. <asp:ListBox ID="lb" SelectionMode="multiple" runat="server" DataValueField="dv"> <asp:ListItem>red r</asp:ListItem> <asp:ListItem>blue b</asp:ListItem> <asp:ListItem>green g</asp:ListItem> </asp:ListBox> How can I set so the value of "blue b" and "green g" is already selected? I tried setSelected but this method is not supported. lb.SetSelected(1, True) lb.SetSelected(2, True) I also tried this below which kind of works. It does select 1 value but I need to able to select multi values. lb.Text = "blue b" lb.Text = "green g" I tried this also …

Member Avatar
+0 forum 0

Hello everyone please i need your opinion about a creation of a dashboard that can be seen on a webapplication i´ve trying with the controls of DEVEXPRESS but without success, if anyone knows a better way to achieve this kind of task please let me know another thing......all controls it has to be free, i know that i´m asking to much but i´m out of ideas

Member Avatar
Member Avatar
+0 forum 2

My requirement is as simple as the title. I want to create new webform on button click event. When user click the button It will create a new webform with masterpage and c# code file. Yeah it should create a new webform unlike open a new webform.

Member Avatar
Member Avatar
+0 forum 2

Hi, I am having a Timer control like this: [CODE]asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer>[/CODE] In an UppdatePanel with AJAX enabled. So everything works fine to the point where on each refresh of the panel a JS is inserted in the header: [CODE]<script type="text/javascript">Sys.Application.add_init(function() { $create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"Timer1"}, null, null, $get("Timer1")); });</script>[/CODE] So you can imagine in 10 min the page is increased by 600 lines. Any ideas on how to make the timer not register itself every time or at least not stack up ? Thanks!

Member Avatar
Member Avatar
+0 forum 3

I have an input field which is showing vulnerable in security scan using XSS attack as: STYLE="xss:e/**/xpression(try{a=firstTime}catch(e){firstTime=1;alert(969)});" Could you please suggest how can we prevent from vulnerability like this ? Field: <input id="{ControlItemUniqueID}Data" style="width:150px" name="{ControlItemUniqueName}" type="hidden" {MaxLength}{IsEnabled} {IsReadOnly} class="datatext {CssClass}" value="{Data}" onkeypress="sanitizeEmployeeDateData()" onmouseover="sanitizeEmployeeDateData()" onblur="sanitizeEmployeeDateData()> <script> function sanitizeEmployeeDateData() { var EmployeeDate = document.getElementById('LIC1_EmployeeDateData'); if (EmployeeDate != null) { var date = new Date(); var d = date.getDate(); var day = (d < 10) ? '0' + d : d; var m = date.getMonth() + 1; var month = (m < 10) ? '0' + m : m; var yy = date.getYear(); …

Member Avatar
+0 forum 0

The End.