271 Posted Topics
Re: I do not know if i got you right, anyway you said that a clearance may have a tax certificate sounds to me that you cannot make direct reference between the tax certificate and document but thru clearance table. if this is the case you will have something like this. … | |
Re: maybe use a session variable to store the id. | |
Re: You can do something like this. <a href="mailto:your_email_here@domain">Email</a> | |
Re: well i maybe not following you correctly but maybe you just have to substract 8 - whatever answer was example if you select 1 then will be 8 -1 = 7 and so on. regards. | |
Re: I would say this [ICODE]<td><asp:Checkbox ID ="cat_title_chk" AutoPostBack="true" runat="server" OnCheckedChanged="CheckChange" Text='<%# Container.DataItem("M_CATPAGES_CAT") %>'></asp:Checkbox> </td> <td><asp:Checkbox ID ="chkSecond" runat="server" Text="Second CheckBox" Visible="False"></asp:Checkbox> </td> [/ICODE] Now in the source code i have this. [ICODE]protected void CheckChange(object sender, EventArgs e) { CheckBox chk = ((CheckBox)sender); DataListItem dlItem = ((DataListItem)chk.NamingContainer); if (chk.Checked) { ((CheckBox)title_dl.Items[dlItem.ItemIndex].FindControl("chkSecond")).Visible … | |
Hi!!! I am developing an intranet web project using asp.net c# 2008 and i want to integrate crystal report XI, I wonder if anybody here have this two programs working correctly because i have two days trying to fix it, i have read a lot of posts nothing help. anyway … | |
Hello everyone. The problem: I am developing a form that i have to validate some fields against the database. For this particular scenario lets say the Part ID field, I do not want to create a dropdownlist with all part id because is too big. maybe i can let people … | |
Re: Here is two ways that you can accomplish this query, refer to this thread: [URL="http://www.daniweb.com/forums/thread190891.html"]http://www.daniweb.com/forums/thread190891.html[/URL] Regards. | |
Re: What do you have so far? post some code so we can help you out to fix it. | |
Re: First you do not need this line [code=csharp]int result=Convert.ToInt32(cmd.ExecuteNonQuery());[/code], in case you need it, you do not have to convert cmd.ExecuteNonQuery() to int because already return an integer value. Second at the end of your code add this line [code=csharp]dgv1.DataBind();[/code] if that does not work, i suggest that you verify … | |
Re: Insted of use cmd.ExecuteReader() use cmd.ExecuteNonQuery(), ExecuteNonQuery Return an integer on how many rows were affected by that query. | |
Re: You need to create a select statement to return all that data, Can you show table structure so we can help you to build the select. after that there are different ways to fill the grid with the data returned by the select statement. regards. | |
Re: try this [code=sql] SELECT TOP 1 idCustomerBid, idProduct, bidAmount, bidDate FROM bidHistory WHERE (idProduct = 272) AND (idCustomerBid <> 2) AND (idCustomerBid NOT IN (SELECT TOP 1 idCustomerBid FROM bidHistory AS bidHistory_1 WHERE (idProduct = 272) AND (idCustomerBid <> 2) ORDER BY bidAmount DESC)) ORDER BY bidAmount DESC [/code] regards | |
Re: [code=csharp] private int DaysIgnoreWeekends(DateTime dtst, DateTime dtend) { TimeSpan days = dtend.Subtract(dtst); int count = 0; for (int a = 0; a < days.Days + 1; a++) { if (dtst.DayOfWeek != DayOfWeek.Saturday && dtst.DayOfWeek != DayOfWeek.Sunday) { count++; } dtst = dtst.AddDays(1.0); } return count; } [/code] this is a … | |
Re: hi carobee try this [code=mssql] DECLARE @SqlQuery NVARCHAR(4000); set @SqlQuery='You query here' INSERT into @table exec(@SqlQuery) [/code] regards | |
Re: this can give you an idea of what you need [CODE=c++] #include <cstdlib> #include <iostream> void CalculateLetter(int *,int); void PrintScores(int *, int *, int); using namespace std; int main(int argc, char *argv[]) { int CantStudent = 0; printf("Please input the number of students who took the exam:\t"); scanf("%d",&CantStudent); int Scores[CantStudent]; … | |
Re: Probably this is not the best recommendation, maybe you would like to do something by you own, but if you want a reallly nice way to easy do charts, use this [URL="http://www.fusioncharts.com/free/"]http://www.fusioncharts.com/free/[/URL] they explain everything how it works give it a try, i combined that software in my project in … | |
Hi, I would like to know how can I execute an event from a web content form, for example i would like to run a centralized event to assign rigths to component in every webform, but i would like to do that from the master page so i do not … | |
Hello all, I am looking for a Fax Software, nothing big, easy to use just fax out and in, I do not need any extra feature that a lot of fax software has. before i had winfax pro is an old software from symantec they do not sell it anymore, … | |
Re: I do not know if this can help you, but if you have a date field which you can order by desc, then you can use Top 1 something like this. [code=sql]Select top 1 Field1 from table1 order by datefield desc[/code] if you dont have a date maybe have a … | |
Hi all, I just have curiosity about something that I read in a book " [B]Unlike using the DataGrid, where you are responsible for coding the sort routine, to enable column sorting in this grid, you just set the AllowSorting attribute to True. The control takes care of all the … | |
Re: Well here i didn't have any trouble doing that, but anyway make sure you have windows firewall off, and run this tool and try again. [URL="http://service1.symantec.com/Support/tsgeninfo.nsf/docid/2005033108162039"]Norton Removal Tool[/URL] regards. | |
how can I always show a subreport in the second page? thanks. | |
Hello all, I created a crystal report which works perfect local but in production work partial, it means that there are 3 specific values that the report does no retrieve, is there any particular reason why this happen?. thanks. | |
I just update my server to the latest version of symantec endpoint and now everytime i log in to the server a pop up appears with this message, "A necessary file could not be loaded: ccProd" they supply an online tool to fix the problem but after i did it … | |
Re: I use querystring to retrieve parameters send from another form, let's say that you are and index.html and there is a link url to default.aspx like this ~/Default.aspx?var=hello then and the Server code from Default.aspx to retrieve that value i have this. [code=csharp] string stTest = Request.QueryString["var"]; [/code] now stTest … | |
Re: Take out the * and try it. | |
Re: That means exactly what is says, probably there is a piece of code that is executed before this method and you leave the connection open. make sure you close the connection on that method. usually i forgot to close the connection if i use a data reader and then i … | |
Re: add this at the end. DataGridView1.DataBind() regards | |
Hi all, I have a computer that went down and i cannot load windows but i can browse the files in the hd using an enclosure, i would like to reinstall windows but i need to safe the quickbook data so i can upload that back. i do not have … | |
Hi i have a table which i was using with a datagrid using hyperlink to maintain a simple menu to browse a internal site. but now i decided to create a horizontal menu with the Menu Component of asp.net, i know there is a different way how to do this, … | |
Re: Into the datagrid's headerstyle property add this [code=aspnet]CssClass="ms-formlabel DataGridFixedHeader" <!-- Then into the head tag create a style method like this --> <style type="text/css">.DataGridFixedHeader { POSITION: relative; ; TOP: expression(document.getElementById("grid").scrollTop-2); BACKGROUND-COLOR: white } </style> [/code] grid is the ID of your datagrid. regards. | |
Re: Why dont you include the parameters in the select statement something like [CODE=CSHARP] string st = "select user, pass from loggin where user = '"+txtbox1.text+"' and pass = '"+txtbox2.text+"'"; //Then pass that select to the command object rdr=cmd.executereader(); if(rdr.HasRows) { msg(" successfully loggedin"); }[/CODE] Take care. | |
Re: There is a few good database language out there, but im going to keep it simple. 1) Non free license: Oracle, Sql Server, really nice interface, very user friendly and a lot support online, so you are not alone any problem i bet you can find a work around. In … | |
Re: when you said lively network means intranet? well in that case you will need a computer to become a web server, with IIS Installed or Apache or other tool that allow the intranet's users to browse the web server, anyway if you are running xp, i recommend you try IIS. … | |
Re: you have to do something like this. [CODE=CSHARP] foreach (Control cn in form1.Controls) { if (cn.GetType().Name == "RadioButton") { RadioButton rd = (RadioButton)cn; if (rd.GroupName == "a" && rd.Checked) { TextBox1.Text = rd.Text; } } } [/CODE] | |
Re: you need this [CODE=CSHARP] if(ContractID_Reader2.HasRows) { while(ContractID_Reader2.Read()) { //Your code here } }[/CODE] | |
Re: in your select statement are you retrieving that value? if yes verify you have autogeneratecolumns to false you have to create a bound column manually for the primary field and also you can set the visible property to false if you do not want people look at it, in the … | |
Re: Hi, check this thread could be helpful for you [URL="http://www.daniweb.com/forums/thread204828.html"]http://www.daniweb.com/forums/thread204828.html[/URL] | |
Re: I do not really sure if this is what you want but in aspx i do this. [CODE=CSHARP] foreach (Control cd in form1.Controls) { if (cd.GetType().Name == "TextBox") { TextBox txt = (TextBox)cd; txt.Text = "hello"; } }[/CODE] regards | |
Hi, friends i have a datagrid bound a hypercolumn [CODE=ASPNET] <asp:DataGrid ID="menu" AutoGenerateColumns="False" Runat="server"> <Columns> <asp:HyperLinkColumn DataTextField="OPT_DESC" DataNavigateUrlField="OPT_LINK" DataNavigateUrlFormatString="{0}"/> </Columns> </asp:DataGrid> [/CODE] basically what i want to do is, that i want to insert into the database the users that click some links. so how can i make a clickevent … | |
Re: you need to import System.Data.SqlClient; then you can say this. [CODE=VBNET] Dim con = new SqlConnection("Initial Catalog=DBName;Data Source=ServerName;UID=User;PWD=Pass;"); con.Open() //Some code here con.Close() [/CODE] with that piece of code you can establish the connection and open it. regards. | |
Re: into the try clause [code=csharp]connection.Open(); cmd.ExecuteNonQuery(); connection.Close();[/code] regards | |
Re: Try using this code [CODE=VBNET]cmd.Parameters.Add("@YourField", SqlDbType.VarChar).Value = "Value"[/CODE] | |
Re: Object database (also object-oriented database). | |
Re: Take a look of this thread [URL="http://www.daniweb.com/forums/thread203951.html"]http://www.daniweb.com/forums/thread203951.html[/URL] if still need help let me know. | |
Re: Try to run a windows update and then give it a shot, let us know. also make sure the clock and date in your computer is correct. | |
Re: The only thing i can see is, I know the fact that it is an anonymous mobile message board, but if in the future you expect to open the software to Non anonymous only, I would say make another table for the users and just include anonymous and put a … |
The End.