473,748 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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 1634
Mikkeee
94 New Member
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
1430
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 buttons are in one frame, and the content pages are in another (main). I can get read the current page location in the frame "main", but it is not working (getpagenumber)- it should give the current page number, and use that number to tell the...
3
1804
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 there isn't a page to go back/forward...how would I go about doing that??? Pam
10
8063
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
1740
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 the following quirk: When I navigate my browser to another url (a link in the page, a browser favorite...it doesn't mater) and then use the browsers (IE 6) Back or Forward buttons to go back to my filtered page the additional html I had added...
0
1290
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 webservice.htc alot, but now I have to code for Netscape and Mozilla and it didn't work. This was a good thing, the webservice.htc would choke if you sent back things like arraylists so I wrote my own wrapper. No matter what you send (dataset, array,...
8
6522
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 "Forward "How can I implement the back and forward procedure to make them work ? Is there anyone has the same experience like that ? Thanks
1
1825
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 the day's value into a hidden form variable, so that when the user bounces around different months (same page), then comes back to the month with a date selected, the page will remember the day and show the "booked" images for the day already...
2
2134
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, until I press the back and forward buttons in my browser then the AJAX magic is lost alongside with all the data in my AJAX controls when I tried to get back to the AJAX page, can anybody help me solve this issue, I've read that this is the...
4
10102
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 both browsers. In one situation and frame I have a long scrollable list of cars offered for sale. Some list lines are linked to a separate page with images, to be loaded into the same frame as the listing. On closing this image page with <a...
1
2708
by: swethak | last post by:
Hi, How to do the bring front and bring back an images using javascript.
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8252
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.