473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

how to add forward and back images in c#.net

1
I want to change this code in c#.net..
but i am unable to do this.. i get error when i tried to session in some variable and when try to + it. code id (
Expand|Select|Wrap|Line Numbers
  1. Dim A As Integer = Session("Id")
  2.  
  3.         p.Value = A + 1)
please solve my issue..
complete code is
Expand|Select|Wrap|Line Numbers
  1. cmd.CommandType = Data.CommandType.StoredProcedure
  2.         cmd.CommandText = "[Netx_Image]"
  3.  
  4.         Dim p As New SqlParameter
  5.         p.ParameterName = "@Type"
  6.         p.Value = DropDownList3.Text
  7.         cmd.Parameters.Add(p)
  8.  
  9.         p = New SqlParameter
  10.         p.ParameterName = "Project_Id"
  11.         Dim A As Integer = Session("Id")
  12.  
  13.         p.Value = A + 1
  14.         cmd.Parameters.Add(p)
  15.  
  16.         Dim r As System.Data.SqlClient.SqlDataReader = cmd.ExecuteReader
  17.         While r.Read
  18.             Image1.ImageUrl = r.Item("Images").ToString
  19.             Session("Id") = r.Item("Project_Id")
  20.  
  21.  
  22.         End While
Feb 14 '13 #1
1 1613
Mikkeee
94 64KB
There's a couple of great code converters out there. Try both and see what happens.
http://converter.telerik.com/
and
http://www.developerfusion.com/tools.../vb-to-csharp/
Feb 14 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Chris | last post by:
I have a script that will navigate back and foreward using a form. The files it navigates are named: bg1.html, bg2.html, bg3.html, etc. This is happening in a frameset, where my BACK and FORWARD...
3
by: pmelanso | last post by:
hello, I want to create back and forward buttons on my web page. I didn't have a problem with that... the thing I am having trouble with is I woudl like to display "disabled" images when there if...
10
by: pmelanso | last post by:
Hello, How can I tell if there is a page to go back to in the history or not??? Same with forward??? say something like/// if (there is a page to go back to ) { // DO something }else { }
5
by: Brad | last post by:
I created a base page class which sets a response filter and the filter injects additional html into the response output stream. The filter works fine and everything works as expected except for...
0
by: Ken Dopierala Jr. | last post by:
Hi, I know this post will be considered off-topic. There are a lot of good coders in these groups and I'm hoping someone can help me out. This is what I'm working on. I used to use the...
8
by: Tracey | last post by:
Hi, guys. My application requires functionalities like back and forward navigating button on winforms. And there are many forms linking each other. Each form has a pair of buttons of "Back" and...
1
by: rharmonster | last post by:
I have an asp page that builds a calendar made up of images for each day. When a user selects a day, javascript changes the day selected and the next 2 days' images to a "booked" image. I place...
2
by: verci | last post by:
Hi guys, I'm running VS2005, AP.net 2.0, Windows XP SP2 Ok this maybe a dumb question but here it goes, as a newbie I've just finished my first AJAX enable page, everything works great but,...
4
by: Heinrich Wolf | last post by:
Hi all I have a history.back() problem with FF(2). IE works as expected, while FF does not. The multi frame website setup as a whole with a lot of frame content switching works flawlessly in...
1
by: swethak | last post by:
Hi, How to do the bring front and bring back an images using javascript.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.