User Profile

Collapse

Profile Sidebar

Collapse
JFKJr
JFKJr
Last Activity: Jun 4 '09, 07:14 PM
Joined: Jul 10 '08
Location: Pennsylvania
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JFKJr
    started a topic C#: Update Query doesn't work!
    in .NET

    C#: Update Query doesn't work!

    Hello Guys,

    I am trying to update a table using the following C# code, but it is not working.

    Please let me know what I am missing. Thanks.

    Code:
    string topic1 = Topic1TextBox.Text;
    int WeekID = 1;
    
    SqlConnection conn = new SqlConnection();
    DataSet ds = new DataSet();
    conn.ConnectionString = "" //defined my connection string here
    conn.Open();
    ...
    See more | Go to post

  • Thanks for the replies.

    I am using Visual Studio 2008 and C# to create/design ".aspx" pages.

    After hours of tweaking, I have suceeded in implementing the above mentioned procedure using DataList, GridView and Repeater controls.

    But, ran into another problem.

    Your help/idea will be greatly appreciated.

    Well, this is what I am trying to do:

    1. I have...
    See more | Go to post

    Leave a comment:


  • JFKJr
    started a topic Problem with displaying query data in ".aspx" page
    in .NET

    Problem with displaying query data in ".aspx" page

    Hello everyone,

    I have been trying to solve this problem from past two days. I am working for my project and stuck with this problem.

    Please help me out, your help will be greatly appreciated.

    Well, this is what I am trying to do:

    1. I have following 3 tables:

    Code:
    a) Course
       - CourseID, int, autoincrement
       - CourseName, nvarchar(50)
       - WeeksPerCourse,
    ...
    See more | Go to post

  • JFKJr
    replied to C#: How to find an empty string
    in .NET
    Solved the problem by using Trim() Method, but ran into another problem.

    Using Trim() method, I am removing all spaces in a string including spaces between words. But, I only want to remove spaces at the beginning of the string. How can I do this?

    Any help/idea will be greatly appreciated.
    Thanks.
    See more | Go to post

    Leave a comment:


  • JFKJr
    started a topic C#: How to find an empty string
    in .NET

    C#: How to find an empty string

    Hello Guys,

    I have a textbox called "NameTextBo x" and "Submit" button in my "index.aspx " page.

    I need to check whether user entered name in the textbox before clicking submit button.

    And, this is what I did:

    Code:
    string name = NameTextBox.Text.ToString();
    if (name.Length == 0)
    {
       return;
    }
    But if the user enters spaces...
    See more | Go to post

  • JFKJr
    replied to Problem with anchor tag in '.aspx' page
    Thanks for all your help.

    Solved the problem.

    I just checked whether the URL entered by a user in the textbox has "http://" string or not.

    if it is not, I added "http://" to the URL and stored it in the database.

    Thank you very much InsertAlias for your help. Happy Thanksgiving Holidays!
    See more | Go to post

    Leave a comment:


  • JFKJr
    replied to Problem with anchor tag in '.aspx' page
    Hello InsertAlias,

    Sorry for not closing the webpage and running it again through the ".Net" server after adding 'http://' to the href attribute in <a> tag. I only refreshed it previously.

    Anyways, now I am able to open Google page using the following link:

    <a href="http://www.google.com" target="_blank" >Google</a>

    But this is what I am doing,...
    See more | Go to post

    Leave a comment:


  • JFKJr
    replied to Problem with anchor tag in '.aspx' page
    Thanks for the reply.

    The 'index.aspx' page source code still contains the following link

    <a href="www.googl e.com" target="_blank" >Google</a>

    Please help me out. I am breaking my head to solve this issue from past 5 hours.

    Thanks....
    See more | Go to post

    Leave a comment:


  • JFKJr
    replied to Problem with anchor tag in '.aspx' page
    Hello Guys,

    The link is not going to Google home page even if I include 'http://' in the href tag.

    <a href="www.googl e.com" target="_blank" >Google</a>

    The above mentioned link is working perfectly fine if I use in html page (say index.html)

    But, if I use the same above link in a .NET page (say index.aspx), the page is automatically adding the fully qualified...
    See more | Go to post

    Leave a comment:


  • JFKJr
    started a topic Problem with anchor tag in '.aspx' page

    Problem with anchor tag in '.aspx' page

    Hello everyone,

    I am new beginner to asp.net and c#.

    I have the following anchor tag in my "Index.aspx " page:
    <a href="www.googl e.com" target="_blank" >Google</a>

    And, when I click on the above link it is going to:

    "http://localhost:1100/CSMS/www.google.com"

    instead of:
    "www.google.com "
    ...
    See more | Go to post

  • JFKJr
    replied to Problem with Repeater control in UpdatePanel
    in .NET
    Hello Frinny,

    Thanks for the reply.

    I changed the above "CreateSchedule .aspx" page a little bit as follows:

    1. "CreateSchedule .aspx" page

    Code:
    <asp: Content ID="Content1"  ContentPlaceHolderID="ContentPlaceholder1" Runat="Server">  
    <table> 
    <tr> 
    <td>Select File:</td> 
    <td>
    ...
    See more | Go to post

    Leave a comment:


  • JFKJr
    started a topic Problem with Repeater control in UpdatePanel
    in .NET

    Problem with Repeater control in UpdatePanel

    Hello Guys,

    I have been trying to solve the following problem from past 3 days with no luck.

    This is what I am trying to do:

    I want to allow user (Professor) to choose a course material using "asp:FileUpload " control, upload into the database by clicking "asp:Button " control and allow Professor to view the files he/she uploaded using "asp:Repeat er" control.

    ...
    See more | Go to post

  • JFKJr
    replied to Problem with Databound textboxes
    Hello missinglinq,

    Thanks for the reply.

    I want the selected date to populate in the same textbox on all of the records in my form.

    Please let me know how to solve this issue.

    Thanks a million.
    See more | Go to post

    Leave a comment:


  • JFKJr
    started a topic Problem with Databound textboxes

    Problem with Databound textboxes

    Hello everyone,

    I created an Access VBA form, which contains a date textbox and a calendar image. The textbox is bounded to "Date" field of "UserProfil e" Table.

    Whenever a user clicks the calendar image, a popup calendar will be opened and the user can choose date to enter it in the focused textbox.

    But, I want to enter the chosen date in all the bounded date textboxes present in the...
    See more | Go to post

  • Hello guys, sorry to ask you the whole code for the program. I know it is a lot of work.

    I got tired searching the code on internet, lost hope and left with nothing but to get help from you guys.

    Anyways, at last I succeeded in developing c# code to upload files as blobs into the sql database.

    Now, I am trying to display the files which I uploaded in a <td> cell of a table. And I created a store...
    See more | Go to post

    Leave a comment:


  • Hello mldisibio, thanks for the reply.

    Please open the following article, which shows an efficient way to upload files as blobs into sql database and the code in the article is working perfectly fine.

    http://www.eggheadcafe.com/tutorials...loading-f.aspx

    But the problem is, the code is in vb.net and I would like to implement it in c# and unable...
    See more | Go to post

    Leave a comment:


  • Thanks a lot for the articles.

    The article shows to upload a binary file (say, "smith.bmp" ) into sql database using the following code:

    int newID = AddEmployee("Sm ith", "John", "Sales Representative" , hireDate, 5, "smith.bmp" );

    But, how to pass binary file path to the above function "Add Employee"?

    I am uploading the binary file...
    See more | Go to post

    Leave a comment:


  • How to upload/download files as blobs into sql database using C# and ASP.NET

    Hello everyone,

    I am a new beginner to ASP.NET, C# and I am trying to upload/download files as blobs into sql database.

    I searched a lot for the code on google, I found only vb.net code but not c# code.

    Please help me with the code. Your help/idea will be greatly appreciated.

    Thanks a million in advance.
    See more | Go to post

  • Thanks for your suggestion.

    Using "Server.URLEncod e" in page1.aspx and "Request.QuerySt ring" in page2.aspx I am able to retrieve the course value with special characters....
    See more | Go to post

    Leave a comment:


  • Unable to retrieve parameter value with "+" sign from URL using Request object

    Hello everyone!

    I am a new beginner to ASP.NET, I have created two pages page1.aspx, page2.aspx and I am trying to pass course name value to page2.aspx from page1.aspx using the following URL:

    page2.aspx?cour se=C++

    But when I use the request object in page2.aspx in order to retrieve "course" value using the following code, I only receive C instead of C++

    CourseLabel.Tex t = Req...
    See more | Go to post
No activity results to display
Show More
Working...