
FastRodas
Members-
Posts
25 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by FastRodas
-
hi to all Xtremers, i need to fill a dropdown list with values from a database. Now, do i have to put the values to a datatable and then bind them to the dropdown list ou can i do it directly from the dataset like i do with a datagrid?? i have tried and is not working.....how is it done? thx to all
-
Hi to all Xtremers, Im fecthing data from sql server table to a a dataSet, i want to put it on a datatable so i can bind it to my Datagrid the purpose of that is to display the rows of my shopping car, so i can easy update and delete data, and in the end i update all rows on my database. Is this possible to do with my dataSet or i really need to bind data to my dataTable,if so, how can i do it? Thnx
-
Hi to all Xtremers, i have a web form with asp.net validators, and it was working just fine. It has two diferents seccions which are validated seperatly. i also have to buttons which show and hide the seccions The last time I check the forms i got a strange error which i cannot understand it. I print screen it: http://www.editorapergaminho.pt/erro.bmp Thkx to all
-
I had the same problem but i was using visual c#. What i did was register my crystal reports and then, i searched in the their site for crystal reports.net there u have to download the modules and include them in your project. those modules r Crystal_Database_Access2003.msm, Crystal_Database_Access2003_enu.msm, Crystal_Managed2003.msm, Crystal_regwiz2003.msm. in the module Crystal_regwiz2003.msm you have to include the key you got when you registered your crystal report. to get the key, you can go to the menu help-->about this should to the the trick....you should be able to export your reports :)
-
Well....i found a solution for my problem. I guess it is not the best way but what the heck!! it works!! what i do is when i pre-generate my url, before í store it in my database i check it for accentuated characters and change them. for example if i have an à it is changed to %E1, an é to %E9, etc. So when i get the query string, before i use it i just have to undo the changes....and voila!!
-
I cant do that... i have to pass it through the url. The problem is that i am from Portugal and in my language there are lots of accentuated characters. For example á, à, ã etc. and these characters are skipped when i do the QUERYSTRING = Request.ServerVariables["QUERY_STRING"]; i'm a little lost...i tried lots of encoding and none worked. I am thinking that since ASP.NET is server side i could be that the server was not well configurated. But i checked that and it is all PT. in the web.config i changed the settings to PT <globalization requestEncoding="any valid encoding string" responseEncoding="UTF-8" fileEncoding="UTF-8" culture="pt-PT" uiCulture="pt-PT" /> so...if anyone can help i would appreciate it
-
I am doing lots of teste but still without sucess! does anyone out there know how to do this?
-
well....using Joe Mamma idea i did some tests.... i came up with this query SELECT TOP 12 * FROM table WHERE field NOT IN (SELECT TOP 9 field FROM table) this will gives me from X to Y where X=12 and Y=12 ;) and it works
-
hi to all Xtremers, Im having a problem. i have an application to update my database. I want to , when i execute the select command, select only the rows from X to Y. "SELECT TOP 2 , 4" does not work. is it a sintaxe problem or what i want to do is not possible? thx to all
-
well.....it worked great...fantastic....it was exactly what i needed Thx to all
-
Hi to all, i am developing a window application in c# and i want it to run another aplication that i did. what the other aplication does is receives a specific number of arguments and return a string. The basics, in main function i do a Console.Write(String). With my new application i want to get this string. So how can i execute the application and how can i get the string? thx to all
-
Hi to all Xtremers, i have this URl ahttp://csp10.link.pt:100/carrinho/CheckEportal.aspx?Name=GUIAS%20ESPIRITUAIS%20PARA%202003%20-%20VenÊncio,%20Agendas%20-%20Arteplural%20Edicoes&id=1498&lang=1 As you can see, i in the query string parameter Name there is a accentuated character (the Ê). when i run this code String QUERYSTRING = Request.ServerVariables["QUERY_STRING"]; When an accentuated character is present in the query string it is skipped so i get Venncio instead of VenÊncio. how can i resolve this? thx to all
-
hey it worked great!!! thx alot
-
hi to all Xtremers, i have a data table in session and i want to clear it with a single button click. what i have is in global.aspx Sub Session_Start(Sender AS Object, E AS EventArgs) Dim tableCart AS DataTable Dim columnCart AS DataColumn tableCart = new DataTable("teste") columnCart = tableCart.Columns.Add("quantity",System.Type.GetType("System.String") ) columnCart = tableCart.Columns.Add("prodID",System.Type.GetType("System.String") ) columnCart = tableCart.Columns.Add("prodName",System.Type.GetType("System.String") ) columnCart = tableCart.Columns.Add( "cost",System.Type.GetType("System.Double") ) Session("tableCart") = tableCart end sub when i want to clear the the Session("tableCart") what i do is put this code again associated with a button. is there a better way to clear this session variable? thx
-
All files are copied to the folder. But when i try to run the aplication it gives the error i posted above... In my development computer i have win XP pro with iis 5.1 and the production Server is win 2000 with 5.0
-
when i copy the project i get error.....i tried to resolve this but i couldn't http://www.linkcom.pt/Drafts/error.JPG any help??
-
ok...i will put here my teste code and the error that results. here is my webform1.aspx file using vs.net <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="CopyProject.WebForm1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 344px; POSITION: absolute; TOP: 160px" runat="server" Text="Change Text" Width="80px" Height="32px"></asp:Button> <asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 312px; POSITION: absolute; TOP: 88px" runat="server">This is the Default text</asp:TextBox> </form> </body> </HTML> Now for the webform1.aspx.cs using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace CopyProject { public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.Button Button1; protected System.Web.UI.WebControls.TextBox TextBox1; private void Page_Load(object sender, System.EventArgs e) { } override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.Button1.Click += new System.EventHandler(this.Button1_Click); this.Load += new System.EventHandler(this.Page_Load); } private void Button1_Click(object sender, System.EventArgs e) { this.TextBox1.Text = "change the text"; } } } done this i go the menu Project --> Copy Project and fill that up Ok....now i open the browser with the new project location and the textbox and the button show up. when i click the button i get this error Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'CopyProject.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="CopyProject.Global" %> Source File: D:\Clientes\carrinho\global.asax Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 what is the problem?? why cant he inherit?
-
I tried that! but the erros remains the same. I read a article saying that to copy the web application i should use the option "copy project". I did that but without success
-
hi to all Xtremers, With visual studio .net i created a web application and now i want to move to it to the production server. In vs.net i used the option copy project to move it to the server but i keep getting this error. i made a little teste a tried to move it Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'carrinho.WebForm1'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="carrinho.WebForm1" %> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Line 3: <HTML> Source File: D:\Clientes\carrinho\webform1.aspx Line: 1 how do i copy it to the productin server?
-
Hi to all Xtremers, :confused: I am trying to send an email with the result of a form. some fields are currency. i can format it on my page, but when i email it the format is remove. i format it like this String.Format("{0:c}",reader.Item("saleAmount")) but the result of my emails is 11.114,00 ? this is the way i define my mail properties objEmail.To = MailTo objEmail.From = From 'objEmail.Cc = txtCc.Text objEmail.Subject = subject objEmail.Body = Mailbody objEmail.Priority = MailPriority.Normal objEmail.BodyFormat = MailFormat.Html the body of my email starts like this Body = "<html><head><title>Encomenda</title><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>" any idea to solve this? thkx
-
Hi to all xtremers, i am playing a little with vb.net in vs.net and i wanted to make the mouse mouse from one place to another, and drag some items around. So i made a simple form and added a button that when clicked moves the mouse. But it does not do it correctly. My code is this Public Structure POINTAPI Dim x As Int32 Dim y As Int32 End Structure Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long) Public Const MOUSEEVENTF_LEFTDOWN = &H2 Public Const MOUSEEVENTF_LEFTUP = &H4 Public Const MOUSEEVENTF_MIDDLEDOWN = &H20 Public Const MOUSEEVENTF_MIDDLEUP = &H40 Public Const MOUSEEVENTF_RIGHTDOWN = &H8 Public Const MOUSEEVENTF_RIGHTUP = &H10 Public Const MOUSEEVENTF_MOVE = &H1 Private Sub Command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Command1.Click mouse_event(MOUSEEVENTF_MOVE, 300, 400, 0, 0) mouse_event(MOUSEEVENTF_MOVE, 700, 300, 0, 0) mouse_event(MOUSEEVENTF_MOVE, 40, 800, 0, 0) End Sub Ok here it is.. my problem is that the y coordenates are not being assumed. It looks like that y is always zero and can only more through the x coordenates can anyone tell me whats wrong? thx to all
-
Hi to all Xtremers, i have a form with some textboxs for a user to fill (a registration form). In the same aspx file i have a datagrid with command buttons. In the registration form i validade the fields with required field validators. The problem is when i execute the command buttons that exist in the datagrid, the code associated with the command buttons does not execute unless i fill the textbox that are required. How can i solve this problem? thx to all
-
Hi to Xtremers, i'm having some session problems on my ASP.NET application. I'm a little confused and dont understand what is happening. I'm using CodeBehind. Every time i redirect to a ASP.NET page the first thing i do is to put the session varibles into some local variable and in the end update the session again with the new values. public string localVariable; private void Page_load(object source, EventArgs e) { if (!IsPostBack) { localVariable = Session["SessioVariable"]; } } Sometimes when i click a botton and the ASP.net page does a postback i loose the value on localVariable. i am not sure but i think sometimes the session itself looses it's values. I know the session does not expire so i'm a little lost. can anyone tell what's happening? thx to all
-
ok...i could add a referece but there i have problem! i am using dreamweaver as a editor not vs.net. how can i add the dll without vs.net?
-
Hi all Xtremer's i want to include a dll i made in my ASP.net application. I have found a way to do that but it is not very good. What i do is when i have a new dll i go to the server and edit the file machine.config that is in C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG\MACHINE.CONFIG what i do is i add a line to the xml <assemblies> <add assembly="MY NAMESPACE, version=DLL VERSION, Cultural=neutral, PublicKeyTolken=NULL" /> </assemblies> This method creats a big problem! in every other asp.net application i have to include the dll put in the machine.config to the bin folder of the new asp.net app. So what other way to i have to include a dll on my ASP.net app? thnx to all