- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
70 Posted Topics
Re: maske sure you are updating the datasource of the gridview before you databind. gridview1.databind = myds | |
Hi, I'm wondering if what I want to do is best practice or not. We are just about to go live with a new site (built by another company) and pages of this will need to make calls to a web service which will be hosted on the same server … ![]() | |
Hi, I am trying to put together a content manegment system for a site. I have created a number of 'Template Pages' for the layout each with different CSS. All the different layouts will have the same content just laid out in different ways. So 4 pictures and text. These … | |
Re: you need a space before and after the "=" sign. That may help. Only enlcose your ID value in single quotes if is a text value. | |
Re: Where is the button? in a row of the grid or outside? | |
Re: if your looking at having a web application communicating with a windows application/database then maybe web services would be a good place to start. Then look into SOAP or something similiar. | |
Re: have a look here for some help to get started [URL="http://www.homeandlearn.co.uk/net/vbNet.html"]http://www.homeandlearn.co.uk/net/vbNet.html[/URL] | |
Re: This is the code i use to write a image to a sql table in binary along with come other information. I have a fileuplaod control on the page with a button that adds the data which calls this code. Make sure your column in your sql table that is … ![]() | |
Hi I have a script that queries wmi to get logged on users. The script works fine if i run it on the server i am query but if i choose a remote server it returns nothing. It gets the user 'logonid' but does not return anything when running the … | |
Hi I am trying to list all users logged into a speceific server but am getting nowhere. Im using the below code which i have formulated from various resources but it always returns 'not logged in'. when drilling into the oReturn object it says on alot of the items that … | |
hi I thought this was simple so i guess i am doing something wrong. I want to read the value of an item in the registry. the value im after is the centralprofile key which im trying to get by passing the SID and looking up the subkey but it … | |
Hi I dont have a huge wealth of experince with SQL statements and im struggling; i have two tables table one holds employee data table two holds payent histroy for employee so essentially a 1 to many relationship I would like to list all of the job titles(for which there … | |
Hi, This seems really stupid i cant get my head around this. I have a listbox that has items added to it from selections from another one. I have also added code that an item can be double clicked to remove it, which works, until the page is refreshed and … | |
Re: It may be a permissions issue - filemode.open does open (or try to open) the file with read/write access. Maybe worth contacting your provider to find out. have a look here [URL="http://msdn.microsoft.com/en-us/library/b9skfh7s.aspx"]http://msdn.microsoft.com/en-us/library/b9skfh7s.aspx[/URL] | |
HI I am trying to write data to an access table from vb.net. The code all seems to run fine but no data is being sent to the db though! the code i have got is [code] Dim itemcount As Integer Dim MyCn As OleDbConnection Dim sql As String 'Dim … | |
Hi Im trying to position a window with MoveWindow() API but it just keeps hiding the window and it has to be maximised to be able to see it. The code im using is [CODE] Public Declare Function MoveWindow Lib "user32" _ (ByVal hwnd As Long, _ ByVal x As … | |
Hi Im trying to to simply list all security groups from active directory as i will then be doing checks on folders with the mathcing security group. I can list all the users from active directory with this: [CODE] Dim myDirectoryEntry As DirectoryEntry = New DirectoryEntry(String.Format("LDAP://DC=domain,DC=org")) Dim mySearcher As DirectorySearcher … | |
HI I am having difficulty gettting the current users username in a web application because the web app is set to use a specific account. if i use 'Page.User.Identity.Name' it returns nothing nad if i use 'System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString()' it returns the details of the account used in the IIS (so is … | |
Re: Whats your code for capturing the change on the dropdown? | |
Hi All, I have been developing an app that will run on my work intranet. The whole appliation works but part of the app is to open a specific PDF file from a selection. So i pass the file name and path to the System.Diagnostics.Process.Start(FileName) But it keeps erroring telling … | |
Hi I have a procedure that performs checks on controls in my page against rules set in a SQL table. It all works fine except that when im casting the control e.g. [CODE] CType(Me.Page.FindControl(control1), TextBox).Text[/CODE] and its a dropdownlist it of course fails. Im trying to create a variable that … | |
Re: Where are you storing the log on details? Just hold all the logon information in on table e.g. UID Username Password AccessLevel Create a different access level for librarians and students and when the user logs in, depending on what their access level is you can allow/deny access to pages … | |
Re: change this line [code] object fileName = Server.MapPath("/WordSample/WordFiles/Test.doc"); [/code] to [code] object fileName = Server.MapPath("~") & "WordSample\WordFiles\Test.doc"; [/code] | |
Re: Create an 'Image' table in your DB this could have something like: ImageID (Primary Key) ProductID (foreign key) ImageUrl store the path to the image in this table with the productID it relates to. When use the product details you can pull the related image using the ProductID | |
While i thought this would be really simple im really struggling on filtering a gridview twice! I can bind data to my gridview on the choice of my first dropdown box from a dataset but i would like to then filter those results from a selection in a second dropdown … | |
Re: have a look here: [URL="http://www.asp.net/learn/videos/video-07.aspx"]http://www.asp.net/learn/videos/video-07.aspx[/URL] | |
Re: have a look here for starters: [URL="http://msdn.microsoft.com/en-us/library/ms978378.aspx"]http://msdn.microsoft.com/en-us/library/ms978378.aspx[/URL] and here [URL="http://www.4guysfromrolla.com/webtech/110701-1.shtml"]http://www.4guysfromrolla.com/webtech/110701-1.shtml[/URL] | |
Re: found this: In your modal [code] window.returnValue = "doReload"; window.close(); [/code] Then in your mainpage [code] var modal = window.showModal.... if (modal == "doReload") { window.location = window.location; } [/code] its in c but it can hopefully give you a starting point on where to research! | |
Re: check t make sure that all your tables column names are the same if you want to use the built in login code. Else you could just as easy build your own if you have the table already in place. | |
Re: what are you trying to acheive? Are you trying to store dates into a table? Search on dates? Do you have any code that you need help on? | |
Re: have a look at the application pool in iis associated with your site, the idel time may need to be extended. | |
Re: just try this: [code]{d:0}[/code] Works for me! | |
Re: try opening the site in another browser like in firefox? If you are running vista this can have some issues with how it uses ip address's and seems to effect sites running out of the development server on visual studio - check the ipv4 and ipv6 settings in your connections! | |
Re: have a look here for: [URL="http://www.devasp.net/net/articles/display/291.html"]http://www.devasp.net/net/articles/display/291.html[/URL] | |
Re: where are you using this: [code] Dim str As String = "insert into track(TrackingID,PickDATE,Consignment,Reference,Origin,Destination,Status,Destination,RecipientName) Values('" &TextBox1.Text& "','"&TextBox2&"','"&TextBox3.Text&"','" &TextBox4.Text& "','" &TextBox5.Text& "','" &TextBox6.Text& "','" &TextBox7.Text& "','" &TextBox8.Text& "');" [/code] | |
Re: hi change your SQL statement to this [CODE] "insert into Registration(AccountNum, ContactPerson , FaxNum, City, Poskod,Address,EmailAdd,H/Pnum,State) values ('" &TextBox1.Text& "','" &TextBox2.Text& "','" &TextBox3.Text& "','" &TextBox4.Text& "','" &TextBox5.Text& "','" &TextBox6.Text& "','" &TextBox7.Text& "','" & TextBox8.Text & "','" & TextBox9.Text & "');" [/CODE] removed the " + " before Value Are you … | |
Re: have a look here [URL="http://msdn.microsoft.com/en-us/library/dz12d98w(vs.80).aspx"]http://msdn.microsoft.com/en-us/library/dz12d98w(vs.80).aspx[/URL] | |
Re: look at the requiredfieldvalidator control. This can easily add validation to a text control on your form have a look here: [URL="http://www.w3schools.com/ASPNET/control_reqfieldvalidator.asp"]http://www.w3schools.com/ASPNET/control_reqfieldvalidator.asp[/URL] | |
Re: You should check with your provider with regards to security. Your not passing any security information in your string (i.e. username and password) and i would have thought that your provider would require this. | |
Re: in code, say the page_load event you could do: [code] me.label.text = "Test Text" [/code] | |
Re: create a session like this [CODE] session("MySessionName") = me.txtUsername [/CODE] you can then use this session in other or same page by calling like this [CODE] me.txtUsername = session("MySessionName") [/CODE] have a look here gives a good overview on the session object [URL="http://www.w3schools.com/ASP/asp_sessions.asp"]http://www.w3schools.com/ASP/asp_sessions.asp[/URL] | |
Re: There is some great resources and tutorials here: [URL="www.asp.net"]www.asp.net[/URL] If you have any questins or need some help once you get started then there are loads of people on this forum who will try and help! good luck | |
Re: If you have created a new DB in SQL Express and the table is in the 'app_data' folder in your project then something like this could work: [CODE] Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True") Dim sql As String = "SELECT * FROM tablename" Dim cmd As New SqlCommand(sql, … | |
Hi Im tryingto create/run a webbrowser control so that i can check the status. I dont need to see the page so havent placed the webbrowser control on a form - its just in code as follows: [CODE] Sub TestBrowse(ByVal url As String) Dim testbrowse As New WebBrowser testbrowse.Navigate(url) System.Threading.Thread.Sleep(5000) … | |
Re: The membership settings within asp.net will allow you to do this - have a look as this video tutorial - [URL="http://www.asp.net/learn/videos/video-06.aspx"]http://www.asp.net/learn/videos/video-06.aspx[/URL] | |
Re: have a look here for starters [URL="http://msdn.microsoft.com/en-us/library/fx29c3yd(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/fx29c3yd(VS.71).aspx[/URL] | |
Re: You might want to look at how the 'Session' variable is being set/maintained. If a session is created for a user then that remains until the browser session is ended or you directly end it. What is the code of your login page? | |
Re: Try looking at the linkbutton control. You can write events that can be fired by it! have a look here [URL="http://www.w3schools.com/aspnet/control_linkbutton.asp"]http://www.w3schools.com/aspnet/control_linkbutton.asp[/URL] | |
Hi Im trying to display image binary data but its not working. I have the code below but on the line: newimage = System.Drawing.Image.FromStream(ms) i keep getting the error 'Parameter is not valid' [code] Dim obj As Byte() obj = StringToByteArray(ImageString) Dim ms As New MemoryStream(obj) Dim newimage As System.Drawing.Image … | |
Re: It would help if we could see any examples of the code you are using? |
The End.