Search results for query: *

  • Users: Rani
  • Content: Threads
  • Order by date
  1. R

    Resize Image and Upload Image to Web Directory and write to DB

    ...Dim imageWidth As Integer = imageToBeResized.Width Dim maxHeight As Integer = 480 Dim maxWidth As Integer = 640 imageHeight = (imageHeight * maxWidth) / imageWidth 'ht = 240*320/320 imageWidth = maxWidth 'wid = 320 If imageHeight > maxHeight Then imageWidth = (imageWidth * maxHeight) /...
  2. R

    Hyperlink

    how do i call a procedure clickme() using a hyperlink, before using the hyperlink to navigate to the next page? I have a hyperlink called NEXT on a form. I want to bring over all the form's text field values in a session variable to the next page. but before doing that, when i click the...
  3. R

    Email from ASP.net

    I have this pc of code that sends the email. I want the break html tag to work so i can display the email properly. My<br> tag just writes as is like this " You are invited to the chat BLABLABLA. <br>The Chat commences on 11/14/2006 at 10:00 Eastern time <br> and ends on 11/14/2006 at 13:00...
  4. R

    calendar DayRender

    Can you please change the syntax to this pc of code. I want to use this on my page behind. I found this code on line. I am not able to fix the syntax. Thanks Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles...
  5. R

    Calendar, Date and Time

    I have to create a chat project. I am working on chat admin page. I have to be able to let the user use the calendar to select the date from the calendar and also user will select the time to schedule a chat. This is quiet similar to the outlook calendar scheduling. with the start time and end...
  6. R

    create Faq page

    I want to create an FAQ page like this link http://www.bigfatwebhosting.co.uk/help/index.php?view=2#top I would appreciate some tips on this. Thanks
  7. R

    Upload file to server

    I have two image folders in my web server saving the actual image file in both folders. one s_folder for thumbnail and the other l_folder for large images. I want to upload images to these folders and make an entry of the file name in database field. This pc of my code does save in one folder...
  8. R

    Object reference not set to an instance of an object.

    ...line"Dim dr As Data.DataRow = ds.Tables("countries").NewRow" Dim con As New SqlConnection(Application("connection")) Dim sql As String = "select * from countries" Dim ds As New DataSet Dim da As New SqlDataAdapter(sql, con) da.Fill(ds) Dim test As String = ds.GetXml Dim dr As Data.DataRow =...
  9. R

    text in ddl before binding with dataset.

    I have two ddl countries and states. I populate using the dataset and bind them to the ddl's. what i want to do is before i bind i want to show in my ddl text like "---Please select Country------" or "----Please select a state-----" how would i get this done? Thanks:confused:
  10. R

    country/state filter

    ...filling the country ddl which works Private Sub fillcountry() Dim con As New SqlConnection(Application("connection")) Dim sql As String = "select * from countries" Dim da As New SqlDataAdapter(sql, con) Dim ds As New DataSet da.Fill(ds) Me.ddlcountry.DataSource = ds...
  11. R

    list of countries and States

    I would like to populate ASP.NET Dropdown list with a list of countries. and a DropDown List with a list of States. I do not know how to do that. First of all i do not have list to populate where and how would i get that? Thanks
  12. R

    facing couple problems using my function.

    ...= "Please enter a valid telephone number" instead of requiredfieldvalidator, using label would be the right way to go? please advise. thanks. ********************* PrivateFunction phone_validate(ByVal phone AsString) Const defaultareacode = "508" Dim strextras AsString Dim intResult...
  13. R

    phone and email - user input textbox validation

    How would i do the validation in vb.net for phone and email. it's a text box i am using for both fields. Thanks/Rani
  14. R

    How do I get around the following error I get when I fill a dataset?

    How do I get around the following error I get when I fill a dataset? Cannot sort a row of size 8430, which is greater than the allowable maximum of 8094 Line 184: Dim da2 As SqlDataAdapter = New SqlDataAdapter(command2) Line 185: Dim ds2 As New DataSet Line 186: da2.Fill(ds2) I had written...
  15. R

    what does Mod and Fix mean?

    How does this work? Could you make me understand this please 1. values for recordcount = 2 and pagesize = 10 with mod i get D = 2 Dim D = (CInt(Me.lblRecordCount.Text) Mod CInt(Me.lblPageSize.Text)) and with div i get s = 0.2 Dim s = (CInt(Me.lblRecordCount.Text) /...
  16. R

    syntax for a string

    the data type in the data base for the field order number is varchar 50. on the page i have a session variable like so to grab the ordernumber Session("id") = Session("ordernumber") now when i want to query/update the database like so, Dim sql1 As String = "update DDR set registrar = 1 where...
  17. R

    on selection of Radio button

    ...of the radio's and click the button to change the values, confirm box appears and based on the user decision ok/cancel changes the database field. *Now this requirment is changed. I want to be able to do this with out the button. How can i do this with just the selection of the radio...
  18. R

    Radio Button, Javascript, and a confirm or messagebox

    I am having two radio buttons on the page with Yes/No option and a payment received button right next to the radio buttons. First time when the page is loaded, one of the two radio buttons is selected based on the boolean type field value in the database 0 OR 1. when the user decides to change...
  19. R

    How to pass id from 1st page in a datagrid to the other page AND how to grab id in2nd

    hi, I have a datagrid in my first page i try using a hyperlink column. I think it is too complicated. I could use a bound column and able to grab the id if it is in the same page like Dim id As Integer = e.Item.Cells(0).Text what i want to do is be able to pass the id from first datagrid from...
  20. R

    datagrid column cell has two lbl controls

    In my datagrid one of my coloumnshas two label controls in (one cell only) . the first label control is set to color green for eg: see the row below. subject has color green and the content after binding is in blue. Green am able to do it but not able to accomplish for the second control that...
Back
Top