dhanesh1405241511
Members-
Content Count
430 -
Joined
-
Last visited
Everything posted by dhanesh1405241511
-
Hello Folks, Long time since i last posted here. Anyways, I am having problems or rather having issues about networking my PC with the MAC at home through a Modem+wireless router. I have been using a normal DSL modem since i switched to broadband 5 years ago. A Lucent Cell Pipe 20A USB. I finally decided i needed to change my modem because firstly the drivers werent updated any more and secondly the product is discontinued.I bought a new Wireless ADSL2 + Modem router. This is what i was told to buy as i had no idea of what i needed for the upgrade. Its a NETGEAR DG834G v3. Guess if you search on the netgear site you'll get the technical info for the product.I managed to get the internet working after like almost a day lol, because the system of a browser configuration etc is new to me. But these are my details to get you started:PC : 1 LAN Port, NETGEAR port 4 is connected to this LAN port of my PCMAC : 1 LAN Port, NETGEAR port 2 is connected directly to this machine.Now my question is, How do i share files from my pc to mac, as in i need a network drive on my mac showing me a specif folder that i share on the PC. I did this when i had a straight LAN wired connection from the PC to the MAC. Gave the PC an IP and MAC just gave itself one and i could mount the drive on the mac desktop.Now how do i do this with the current system i have with the new modem+router etc. Can someone guide me to a tutorial or write one here to guide me through this ?Plus it would also be helpful if you told me how to set up wireless , i have wireless security disabled now and i guess half the people in my locality are connected on this lol. So i wanted to know what settings or what type of security should i choose so i can connect my Laptop or the MAC via wireless. I tried to put a WEP passcode and it generated a random key etc. but when i found the access point in mac and tried to connect and add in the key it says "error connecting" Without the password (disabled) it connects fine.Would appreciate your help alot.Thanks and regardsDhanesh.
-
Moderators.... Does astahost need more?
dhanesh1405241511 replied to .:Brian:.'s topic in Web Hosting Support
I'd say games , prolly ones that you can earn extra points or if you win against a member in a challenge you get awarded say 10 credits ? Say how about changing the forum theme ( i am an eyecandy lover, so its just me ) but its worth a thought. I am no more hosted, because of err, no credits , but then i just went ahead an got myself a hosting and domain from Xisto - Web Hosting and Xisto - Domains ( both under xisto banner ). Dedication means no limit lol. But honestly, something must be done here, beer, food, poker hell even a fightclub if you have to, but get this place goin back again. Its still nice to remember old times 2 years ago when i joined, all those friendly fights and jokes etc. It was fun .. Hope it comes back soon again. Regards Dhanesh. EDIT: Some folks are too busy these days *cough*m^e*cough* -
Heya dude, long time hehe. So finally happy feet plans to switch to vista from linux ? Regards Dhanesh.
-
NOD32 Is The Best Antivirus Best Antivirus
dhanesh1405241511 replied to developer.cool's topic in Software
I'd go for Kaspersky anyday. After being loyal over 3 years to norton, i am using kaspersky for the past year now, and its way consistent. Fast startup, different scan options plus if you get the internet security edition you get antivirus with it just as powerful as it would be standalone.Updates are like everyday, and its annoying at times when u leave ur pc switched of for a day because the next day it pops up a message saying that, your definitions are old lol. but atleast it keeps you on your toes to keep updating the AV. Plus where all the antivirus are having problems trying to run on the 64bit version of vista, kaspersky just runs smooth. No problems so far, and a very tight watch over what goes in and what goes out through my internet connection.I would suggest you guys give it a try, its worth the time.RegardsDhanesh. -
Auto Screen Position Changing Possible?
dhanesh1405241511 replied to Jeigh1405241495's topic in Programming
Why not use AJAX ? 1) On button click you could set the screen to go lighter and then show your report on the layer above it with a clos option that when clicked returned to the form page. While returning you could set this to either clear all textbox values or just make some labels visible to tell the user that values are already present in the fields, or whatever user interface you would want to make easier for the user.2) Use a master page and give all your text fields in that. and on button click just join another page to that master. so the look and feel is the same plus this transition is faster.How many fields do you have ? lol dont tell me 50. But i think even 50 fields if arranged the rightway through layers could give you enough space to show your values. If you have a gridview to show them then that makes it much easier. this is just an idea. to implement this idea in real would need you to take many things into consideration, like page size, if edit is enabled then it will bloat up the gridview and make the width scrollable etc .. RegardsDhanesh. -
I have a gridview i managed to update using the edit option in the smartmenu. The problem comes when i delete a value or make a value read only. Say i have a table Employee with the following columns : EmpID, Emp Name, Password, Emp Type. Now when i remove the value EmpID, the gridview does not update. it just reloads when i hit update but no changes are made. On the other hand say i make Emp Type as Read only, when i update .. the gridview updates, but the value of Emp Type updates as blank. While editing other values, the value of Emp Type that i made readonly shows correctly. But after i hit update and the values get sent to the DB in access, the field Emp Type updates as blank. Is there any solution to this ? This is my code for the Employee update page: <%@ Page Language="VB" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.OleDb" %><script language="VB" runat="server"> Protected Sub btlogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) FormsAuthentication.SignOut() Response.Redirect("Default.aspx") End Sub</script><html xmlns="http://forums.xisto.com/no_longer_exists/; ><head runat="server"> <title>Origin TimeSheet :: Edit Details</title> <link rel=stylesheet type="text/css" href="styles.css"></head><body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" bgcolor="#EAEAEA"> <form id="form1" runat="server"> <center><table border="0" style="border: 2px solid #565656; border-top: 0px" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="100%" width="777"> <tr> <td><!-- logo image --><img src="images/logo.jpg" border="0" width="232" height="106" alt=""><!-- end logo image --><img src="images/header.jpg" border="0" width="279" height="106" alt=""><img src="images/header1.jpg" border="0" width="267" height="106" alt=""></td> </tr> <tr> <td background="images/menu_back.gif" style="height: 42px"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><!-- menu starts here --> <td width="16%" align="center"><a href="user_welcome.aspx" class="menu">Home</a></td> <td><img src="images/menu_d.gif" border="0" width="2" height="29" alt=""></td> <td width="16%" align="center"><a href="user_addtime.aspx" class="menu">Add TimeSheet </a></td> <td><img src="images/menu_d.gif" border="0" width="2" height="29" alt=""></td> <td width="16%" align="center"><a href="user_edittime.aspx" class="menu">Edit TimeSheet </a></td> <td><img src="images/menu_d.gif" border="0" width="2" height="29" alt=""></td> <td width="16%" align="center"><a href="" class="menu"><span style="color: greenyellow">Edit Details </span></a></td> <td><img src="images/menu_d.gif" border="0" width="2" height="29" alt=""></td> <td width="16%" align="center"></td> <td></td> <td width="16%" align="center"></td> <td style="padding-right: 80px"></td> <!-- menu ends here --> </tr> </table> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="Red" OnClick="btlogout_Click" Text="Logout" /></td> </tr> <tr> <td height="100%" valign="top" style="text-align: center"> <br /> <span style="font-size: 14pt"> <br /> <span style="font-size: 16pt; color: tomato; font-family: Trebuchet MS"><strong>Edit your Details<br /> </strong></span> <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="UserID" DataSourceID="AccessDataSource1" Height="50px" Width="125px"> <Fields> <asp:BoundField DataField="Type" HeaderText="Type" HtmlEncode="False" ReadOnly="True" SortExpression="Type" /> <asp:BoundField DataField="UserID" HeaderText="UserID" ReadOnly="True" SortExpression="UserID" /> <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" /> <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="Password" /> <asp:BoundField DataField="RealName" HeaderText="RealName" SortExpression="RealName" /> <asp:CommandField ShowEditButton="True" /> </Fields> </asp:DetailsView> <asp:AccessDataSource ID="AccessDataSource1" runat="server" ConflictDetection="CompareAllValues" DataFile="~/App_Data/origin_timesheet.mdb" DeleteCommand="DELETE FROM [Employee] WHERE [UserID] = ? AND [UserName] = ? AND [Password] = ? AND [RealName] = ? AND [Type] = ?" InsertCommand="INSERT INTO [Employee] ([UserID], [UserName], [Password], [RealName], [Type]) VALUES (?, ?, ?, ?, ?)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [Employee] WHERE ([UserName] = ?)" UpdateCommand="UPDATE [Employee] SET [UserName] = ?, [Password] = ?, [RealName] = ?, [Type] = ? WHERE [UserID] = ? AND [UserName] = ? AND [Password] = ? AND [RealName] = ? AND [Type] = ?"> <DeleteParameters> <asp:Parameter Name="original_UserID" Type="Int32" /> <asp:Parameter Name="original_UserName" Type="String" /> <asp:Parameter Name="original_Password" Type="String" /> <asp:Parameter Name="original_RealName" Type="String" /> <asp:Parameter Name="original_Type" Type="String" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="UserName" Type="String" /> <asp:Parameter Name="Password" Type="String" /> <asp:Parameter Name="RealName" Type="String" /> <asp:Parameter Name="Type" Type="String" /> <asp:Parameter Name="original_UserID" Type="Int32" /> <asp:Parameter Name="original_UserName" Type="String" /> <asp:Parameter Name="original_Password" Type="String" /> <asp:Parameter Name="original_RealName" Type="String" /> <asp:Parameter Name="original_Type" Type="String" /> </UpdateParameters> <SelectParameters> <asp:SessionParameter Name="UserName" SessionField="S2" Type="String" /> </SelectParameters> <InsertParameters> <asp:Parameter Name="UserID" Type="Int32" /> <asp:Parameter Name="UserName" Type="String" /> <asp:Parameter Name="Password" Type="String" /> <asp:Parameter Name="RealName" Type="String" /> <asp:Parameter Name="Type" Type="String" /> </InsertParameters> </asp:AccessDataSource> </span></td> </tr> <tr> <td background="images/footer.gif" height="38"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" style="padding: 5px; color: #ffffff">All Rights Reserved 2007 :: Origin</td> <td width="50%" style="padding: 5px" align="right"> </tr> </table> </td> </tr> </table></center> <div> <a href="user_welcome.aspx">Home</a><br /> <a href="user_addtime.aspx">Add</a><br /> <a href="user_edittime.aspx">Edit Time</a><br /> <a href="user_myedit.aspx">Edit Deatils</a></div> <br /> <br /> <asp:Button ID="btlogout" runat="server" OnClick="btlogout_Click" Text="Logout" /> </form></body></html> Really Really need help in this guys, Thanks and regards in advance. Dhanesh.
-
Sorry i am just repeating a question that has been asked a million times, but every answer seems to be either too advanced or not satisfying. I have a simple gridview .. and it shows all the values in the table its connected too .. but when i edit or delete .. the values in the table do not get updated .. Here is my code .. hope you guys can help me .. [b]1 [/b]<%@ Page Language="VB" %>[b]2 [/b]<%@ Import Namespace="System.Data" %>[b]3 [/b]<%@ Import Namespace="System.Data.OleDb" %>[b]4 [/b]<script language="VB" runat="server">[b]5 [/b] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)[b]6 [/b] Dim myConnection As New OleDbConnection[b]7 [/b] myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _[b]8 [/b] & "Data Source=" & Server.MapPath("App_Data\origin_ts.mdb") & ";")[b]9 [/b] Dim myCommand As New OleDbCommand[b]10 [/b] myCommand.Connection = myConnection[b]11 [/b] myCommand.CommandText = "SELECT * FROM TimeSheet"[b]12 [/b] myCommand.CommandType = CommandType.Text[b]13 [/b] Dim myda As New OleDbDataAdapter[b]14 [/b] myda.SelectCommand = myCommand[b]15 [/b] Dim mydg As New GridView[b]16 [/b] 'Me.GridView1.DataBind()[b]17 [/b] Dim dss As New AccessDataSource[b]18 [/b] dss.DataBind()[b]19 [/b] Dim myds As New DataSet[b]20 [/b] myda.Fill(myds, "TimeSheet")[b]21 [/b][b]22 [/b] End Sub[b]23 [/b][b]24 [/b] Protected Sub btlogout_Click(ByVal sender As Object, ByVal e As System.EventArgs)[b]25 [/b] FormsAuthentication.SignOut()[b]26 [/b] Response.Redirect("login.aspx")[b]27 [/b] End Sub[b]28 [/b][b]29 [/b]</script> This is my Script code ... Now here is my html code for the gridview: [b]1 [/b] <asp:AccessDataSource ID="AccessDataSource1" runat="server" ConflictDetection="CompareAllValues"[b]2 [/b] DataFile="~/App_Data/origin_ts.mdb" DeleteCommand="DELETE FROM [TimeSheet] WHERE [TimeSheetID] = ? AND [Day_Date] = ? AND [UserName] = ? AND [Client Name] = ? AND [Job Description] = ? AND [Job Type] = ? AND [Hours] = ?"[b]3 [/b] InsertCommand="INSERT INTO [TimeSheet] ([TimeSheetID], [Day_Date], [UserName], [Client Name], [Job Description], [Job Type], [Hours]) VALUES (?, ?, ?, ?, ?, ?, ?)"[b]4 [/b] OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [TimeSheet] WHERE ([UserName] = ?)"[b]5 [/b] UpdateCommand="UPDATE [TimeSheet] SET [Day_Date] = ?, [UserName] = ?, [Client Name] = ?, [Job Description] = ?, [Job Type] = ?, [Hours] = ? WHERE [TimeSheetID] = ? AND [Day_Date] = ? AND [UserName] = ? AND [Client Name] = ? AND [Job Description] = ? AND [Job Type] = ? AND [Hours] = ?">[b]6 [/b] <DeleteParameters>[b]7 [/b] <asp:Parameter Name="original_TimeSheetID" Type="Int32" />[b]8 [/b] <asp:Parameter Name="original_Day_Date" Type="DateTime" />[b]9 [/b] <asp:Parameter Name="original_UserName" Type="String" />[b]10 [/b] <asp:Parameter Name="original_Client_Name" Type="String" />[b]11 [/b] <asp:Parameter Name="original_Job_Description" Type="String" />[b]12 [/b] <asp:Parameter Name="original_Job_Type" Type="String" />[b]13 [/b] <asp:Parameter Name="original_Hours" Type="Int32" />[b]14 [/b] </DeleteParameters>[b]15 [/b] <UpdateParameters>[b]16 [/b] <asp:Parameter Name="Day_Date" Type="DateTime" />[b]17 [/b] <asp:Parameter Name="UserName" Type="String" />[b]18 [/b] <asp:Parameter Name="Client_Name" Type="String" />[b]19 [/b] <asp:Parameter Name="Job_Description" Type="String" />[b]20 [/b] <asp:Parameter Name="Job_Type" Type="String" />[b]21 [/b] <asp:Parameter Name="Hours" Type="Int32" />[b]22 [/b] <asp:Parameter Name="original_TimeSheetID" Type="Int32" />[b]23 [/b] <asp:Parameter Name="original_Day_Date" Type="DateTime" />[b]24 [/b] <asp:Parameter Name="original_UserName" Type="String" />[b]25 [/b] <asp:Parameter Name="original_Client_Name" Type="String" />[b]26 [/b] <asp:Parameter Name="original_Job_Description" Type="String" />[b]27 [/b] <asp:Parameter Name="original_Job_Type" Type="String" />[b]28 [/b] <asp:Parameter Name="original_Hours" Type="Int32" />[b]29 [/b] </UpdateParameters>[b]30 [/b] <SelectParameters>[b]31 [/b] <asp:SessionParameter Name="UserName" SessionField="S2" Type="String" />[b]32 [/b] </SelectParameters>[b]33 [/b] <InsertParameters>[b]34 [/b] <asp:Parameter Name="TimeSheetID" Type="Int32" />[b]35 [/b] <asp:Parameter Name="Day_Date" Type="DateTime" />[b]36 [/b] <asp:Parameter Name="UserName" Type="String" />[b]37 [/b] <asp:Parameter Name="Client_Name" Type="String" />[b]38 [/b] <asp:Parameter Name="Job_Description" Type="String" />[b]39 [/b] <asp:Parameter Name="Job_Type" Type="String" />[b]40 [/b] <asp:Parameter Name="Hours" Type="Int32" />[b]41 [/b] </InsertParameters>[b]42 [/b] </asp:AccessDataSource>[b]43 [/b] <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"[b]44 [/b] AutoGenerateColumns="False" DataKeyNames="TimeSheetID" DataSourceID="AccessDataSource1" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None">[b]45 [/b] <Columns>[b]46 [/b] <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />[b]47 [/b] <asp:BoundField DataField="TimeSheetID" HeaderText="TimeSheetID" InsertVisible="False"[b]48 [/b] ReadOnly="True" SortExpression="TimeSheetID" />[b]49 [/b] <asp:BoundField DataField="Day_Date" HeaderText="Day_Date" SortExpression="Day_Date" />[b]50 [/b] <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />[b]51 [/b] <asp:BoundField DataField="Client Name" HeaderText="Client Name" SortExpression="Client Name" />[b]52 [/b] <asp:BoundField DataField="Job Description" HeaderText="Job Description" SortExpression="Job Description" />[b]53 [/b] <asp:BoundField DataField="Job Type" HeaderText="Job Type" SortExpression="Job Type" />[b]54 [/b] <asp:BoundField DataField="Hours" HeaderText="Hours" SortExpression="Hours" />[b]55 [/b] </Columns>[b]56 [/b] <FooterStyle BackColor="Tan" />[b]57 [/b] <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />[b]58 [/b] <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />[b]59 [/b] <HeaderStyle BackColor="Tan" Font-Bold="True" />[b]60 [/b] <AlternatingRowStyle BackColor="PaleGoldenrod" />[b]61 [/b] </asp:GridView> I cant find anything wrong here, so how can i manually update this or delete a value .. or please suggest any other alternative ? TimeSheet Table has the Following: TimeSheetID --> This is the Primary Key Day_Date UserName Client Name Job Description Job Types Hours And the Column names are exactly as in my table, I hope the capital and spaces don't make a difference. Should i be changing the primary key to something else ? Like Day_Date ? Cause UserName is Primary key of User table and Client Name is primary key of Client table. So basically its just 3 tables and its pretty simple, but i have no clue where i am going wrong. Thanks in Advance .. Regards
-
Hello Folks, I have this timesheet management open source php website. I am trying to customize it to my needs. I cant tend to understand what he's done so i cant really begin or edit extreme changes. I am attaching the file, please have a look at it. Also i'd like to know if an extra table can be added. As in i needed the user to be able to add a client name in the add timesheet page. So by default this new added client field should hsow its values in the exported CVS or the timesheet viewing page like the rest of the values.I would really appriciate all your help guys, cause this is eating me half to desperation. Regards, Dhanesh.
-
Try http://www.functionx.com/, they have some pretty good tutorials. Regards Dhanesh.
-
I just installed Vista for a friend and took the opportunity to play around with it a little. I came across a rather annoying problem i cant resolve currently. The icons on the desktop (Folders or applications icons), when hovered upon shows a white highlight box. When the icon is selected the highlight stays. This white box is pretty annoying and if i dont want that to appear, what should i do. Just like the icons in XP without any border. I searched online and i found this one solution but i dont know how to reach "Display Properties" or "Customize Desktop and Web" or "Lock desktop items". So was wondering if anyone could help me out in this. Regards Dhanesh.
-
[help] Navigation Button Problem
dhanesh1405241511 replied to dhanesh1405241511's topic in Websites and Web Designing
Thanks for the quick reply michael, i compared the code you've provided. Nothing seems to be different. Could you please tell me whats to be changed exactly. Its odd that i found no mistakes with the code but still the navigation buttons are miss placed. Please guide me to the exact point of change in the code.Thanks and regardsDhanesh. -
This is a html+css template i took off the net for my college end sem project. I wanted to use this template for my ASP .NET application. There is a slight problem with the navigation button when clicked, please download the attached file and guide me to a solution if you can. Open succlogin.html and then navigate through the buttons. The following htmls are linked together:succlogin.htmlsuccunibase.htmlsuccstudbase.htmlsuccprof.htmlaccabt.htmlAlso please tell me if this template can be used with ASP .NET 2005.Awaiting your repliesThanks in AdvanceRegardsDhanesh
-
Heya guys, i need your help again. This time its in ASP .NET with Access DB. It just keeps getting annoying aint it ? Newayz, i am attaching the file i have done so far from various sources and help from people around me. My friends who have worked with asp .net have used SQL as the backend and never used access. Well i dont blame them, its a smart choice. But because i choose to use access in my VB .net application i have to use it here in asp .net too. Concept of the website is simple, the DB provided in the attachment is pretty self explainatory, but to give you a jist of it, this is a website for the colleges. Each college would have a userid and password that would allow them to get into exclusive areas of the DB. By this i mean for example, i have a University table that has some fields. The university that logs in should be able to view ONLY its own DB and should be able to update/edit its records. The university table would NOT allow addition of records. On the other hand the Student DB would allow addition/updation/deletion of records. Only in that university. For example: University X has logged in and wants to add students, then under the college field on this page, the university name "X" should be readonly and all the students added should get into the student DB. Now university Y logs in, so all the students it adds should go under college field "Y" My logic might differ from yours so please feel free to critisize me and correct me. I have no idea A-Z of asp .net but with the little knowledge i knew in 2 days i figured out from sql examples of how to connect an access DB and check values, but as i go further it keeps getting complicated. If possible please comment every line of connecting a DB to addition .. updation .. refreshing of the page etc, because i have connected the DB alright but to be honest it was a fluke from the huge amount of sources i had in hand. Probably will be getting a asp.net book tommorow from a friend so will check that out too, but at this time with the deadline over my neck, i need fast and eazy to understand help. Hope to learn from you guys. Regards Dhanesh.
-
1. Try this .. Double click the label and write the code .. label1.text = red (change the color or use the color with ' like 'red') see if that helps. Else try label1.color = red .. I dont have my laptop so cant try it out, but m shure one of these combinations will also do the trick. 2. Doesnt \n work ? Never really needed a new line in the labels so this is a shot in the dark. Regards Dhanesh.
-
Vb .net 2005 Bindingnavigator Help
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
Bingo ! This code works like a charm. I also tried it by adding this line to the btenter_Click Me.CFRecordsTableAdapter.Fill(Me.KVCFDataSet.CFRecords)This also works, incase anyone looking through this post would like an alternative. Great healp lee, thanks again and i'll keep those questions shooting Regards Dhanesh. -
Vb .net 2005 Bindingnavigator Help
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
Here is the file .. If possible you can add me on msn or gmail, just let me know where and i'll pm you my ID Thanks Regards Dhanesh. -
Auto-number Help In Access Db & Vb .net
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
EDIT: In the Access DB the Age field is specified as number and not text. When i try to add the fields from the frontend it acts a little weird. I cant explain how weird cause when a piece of code to add a row is put in, then it shows me a conversion error. Duno how to explain this but if you are familiar with such an error please tell me how to correct it. I use VB >NET 2005.ThanksThanks for getting that off my brains guys , thought it was something from my side. Newayz, the main intension of all this fuss was that the database after getting filled with data would be saved as an excel file for further use. So my concern was not redundancy errors here, tho i understand what this could do in a major application.RegardsDhanesh. -
As my earlier post mentioned about this small software i am trying to break my head with. Its a simple task of typing values into the field and when the "ENTER" button is hit it should add the values into the database and clear the text boxes and "Add a NEW row". This addition of new row is done through the Add New (Plus) button on the Binding Navigator bar. I dont need to manually press this button. I need to do the job of that plus button when i hit enter. This is my code. Sorry its messed up with loads of comments but by time it was getting frustrating. I'd appriciate any small help on this. The events i mentioned after i hit ENTER are all under the button "btenter" Public Class Form1 Private Sub CFRecordsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Validate() Me.CFRecordsBindingSource.EndEdit() Me.CFRecordsTableAdapter.Update(Me.KVCFDataSet.CFRecords) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'KVCFDataSet.CFRecords' table. You can move, or remove it, as needed. Me.CFRecordsTableAdapter.Fill(Me.KVCFDataSet.CFRecords) NameTextBox.Focus() NameTextBox.Text = "" AgeTextBox.Text = "" GenderTextBox.Text = "" NationalityTextBox.Text = "" UniversityCompanyTextBox.Text = "" EmailIDTextBox.Text = "" SpecializationTextBox.Text = "" End Sub 'Private Sub btenter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btenter.Click ' Me.Validate() ' Me.CFRecordsBindingSource.EndEdit() ' Me.CFRecordsTableAdapter.Update(Me.KVCFDataSet.CFRecords) ' NameTextBox.Text = "" ' 'AgeTextBox.Text = "" ' GenderTextBox.Text = "" ' NationalityTextBox.Text = "" ' UniversityCompanyTextBox.Text = "" ' EmailIDTextBox.Text = "" ' SpecializationTextBox.Text = "" ' NameTextBox.Focus() ' 'Dim nrow As DataRow = KVCFDataSet.CFRecords.NewRow ' 'nrow("Name") = NameTextBox.Text ' 'nrow("Age") = CInt(AgeTextBox.Text) ' 'nrow("Gender") = GenderTextBox.Text ' 'nrow("Nationality") = NationalityTextBox.Text() ' 'nrow("UniversityCompany") = UniversityCompanyTextBox.Text ' 'nrow("EmailID") = EmailIDTextBox.Text ' 'nrow("Specialization") = SpecializationTextBox.Text ' 'KVCFDataSet.CFRecords.Rows.Add(nrow) ' 'Me.CFRecordsTableAdapter.Update(Me.KVCFDataSet.CFRecords) 'End Sub 'Private Sub CFRecordsBindingSource_AddingNew(ByVal sender As Object, ByVal e As System.ComponentModel.AddingNewEventArgs) Handles CFRecordsBindingSource.AddingNew ' Dim newrow As KVCFDataSet.CFRecordsRow ' newrow = KVCFDataSet.CFRecords.NewRow ' newrow.Name = NameTextBox.Text ' newrow.Age = AgeTextBox.Text ' newrow.Gender = GenderTextBox.Text ' newrow.Nationality = NationalityTextBox.Text ' newrow.UniversityCompany = UniversityCompanyTextBox.Text ' newrow.EmailID = EmailIDTextBox.Text ' newrow.Specialization = SpecializationTextBox.Text ' KVCFDataSet.CFRecords.AddCFRecordsRow(newrow) ' e.NewObject = newrow ' CFRecordsBindingSource.Position = CFRecordsBindingSource.Count - 1 'End Sub Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click End Sub Private Sub SpecializationTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles SpecializationTextBox.KeyDown If e.KeyCode = Keys.Enter Then Me.BindingNavigatorAddNewItem_Click(sender, e) 'BindingNavigatorAddNewItem_Click(sender, e) End If End Sub Private Sub SpecializationTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpecializationTextBox.TextChanged End SubEnd Class Regards Dhanesh.
-
I have a small registration software i made. It basically will just let the person sitting on the software type in details like Name, location, college etc and when the "Enter" is hit, all that info typed on screen goes into an access DB and all the fields get cleared to type in the next record.Here my Record ID property is set as autonumbered in access. While i run and add records into the software everything works fine say like this :ID Name Age1 aaaaa 192 bbbbb 213 ccccc 204 ddddd 185 eeeee 22Now i want to run it in actual live mode and i delete the records 1 - 5 from the access DB, the next time i add a new record through the software, it starts from 6. I also tried deleting 3 & 4 from the list, but instead of rearranging or autorefreshing the numbers it shows like this :ID Name Age1 aaaaa 192 bbbbb 215 eeeee 22Is there a way i can fix this small glitch ? i.e if i delete any record from between, then the auto number should refresh all the numbers to one after another like this :ID Name Age1 aaaaa 192 bbbbb 213 eeeee 22RegardsDhanesh.
-
[help] Visual Studio .net 2005 Questions
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
Sorry for the late reply and thanks a million for those explainations and the websites. Was preparing the mid-sem report / presentation for the software so kinda got caught up in it. I used a few but not all points from the explainations you gave me, just so that my faculty can understand what i am doing, in a better technical way. If i may trouble you folks again, please keep your eyes peeled on this section for some random questions i may put through while developing my application. Once again thanks a million to turbopowerdmaxsteel and faulty.lee for helping me out in such a patient way Regards Dhanesh. -
[help] Visual Studio .net 2005 Questions
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
No, Its just a clause i added in the presentation before i started developing the project. So the tension comes up when the faculty asks me for an explaination as to why and how my software is vista compatible. The application setup does not validate if the software can run on vista I didnt have much of a knowledge in Framework 2.0/3.0, hence all that tension rising up. But if you say that an application developed in VB 2005 (Framework 2.0) works well on vista (vista compatible), then well my problem is solved. I just need to find the right explaination to give the auditors when they come to review the software by the end of the semester. Reading all those sites and tutorials are confusing me, and i still cant tend to find an explaination to give them as to why and how i said "Vista Compatible" in my project report. If you could give a small guideline on this, it would be helpful .. then later i can elaborate and detail that explaination. No problemo lee, u've helped quiet alot in solving my queries here I went past through the problem of adding data from the database to the datagrid etc. My university still worships 2003 and the only 2005 related book i could find, helped me a great deal. Even if that ment sitting for 5 hrs just to understand how database connections are made in VB 2005 lol. Its just that i dont have all that time, and learning on my own is going to slow me down. This would help me explain why i wrote "vista compatible" in my presentation to the faculty. But as i mentioned earlier, it would be helpful if you could just explain a small paragraph in general on whats the difference between 3.0 and 2.0 and why i can use 2.0 to create vista compatible applications etc. I am a bad explainer, so hope you know what i mean. Just one line saying "vista compatible" made me go through all this trauma lol. Would appriciate any comments or suggestions on this topic. Thanks again, Regards Dhanesh. -
[help] Visual Studio .net 2005 Questions
dhanesh1405241511 replied to dhanesh1405241511's topic in Programming
Thanks fo the quick reply lee.1) I got what you are trying to tell me, but my question was how do i know if Vista capable software can be compiled on the installed products. I did everything normally as per instructions, but those 2 alert boxes made me to think that they affected only the VC++ part of VS2005. Is there a way to check if the application i create hereon will be with the 3.0 Vista SDK or just the default 2.0 that was installed with VS2005.2) For the DataAdapter, well i directly went to a textbox propertie and tried to do databinding from there. The DataAdapter got added automatically with 2 other things. Selected the Database etc and went through some screens. Added a forward and Back button to go through records just to test. But after successfull compilation and trying to hit next and back, i cant see the data in those boxes. Theres something to do with FILLING the dataset, but dont know how to do it here. Any help in this context would be great.The reason i want 3.0 is that in my presentation, i mentioned that my software will be vista compatible (lol, big mistake .. got caught in the moment), so incase they try to run and check the compatibility on vista, then i have a problem in hand.RegardsDhanesh.