473,670 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i want to store value of querystring("id ") when page postback

11 New Member
i want to store value of querystring("id ") when page postback
May 12 '07 #1
6 2596
prabunewindia
199 New Member
hi friend,
plz explain ur need
do u want to get the data uyou passed thru querystring
then try with this.
string id=Context.Requ est.QueryString .Get("id");
Prabu
i want to store value of querystring("id ") when page postback
May 12 '07 #2
sattu
11 New Member
hi all friends plz try to solve my problem

i want to store value of querystring("id ") when page postback
i am doing paging in repeater control
when i send id through anchot tag and recieving at another page
cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging
May 12 '07 #3
sattu
11 New Member
hi all friends plz try to solve my problem

hi all friends plz try to solve my problem
i am doing paging in repeater control
when i send id through anchot tag and recieving at another page
cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging
May 12 '07 #4
filmar
23 New Member
is your piece of code in (!Page.IsPostBa ck) ?
May 12 '07 #5
sattu
11 New Member
is your piece of code in (!Page.IsPostBa ck) ?
yes my code in (if not !Page.IsPostBac k)
May 14 '07 #6
gomzi
304 Contributor
hi all friends plz try to solve my problem



i am doing paging in repeater control
when i send id through anchot tag and recieving at another page
cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging
What operations are you currently doing on the click of the next button.
May 14 '07 #7

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

Similar topics

9
6502
by: Russ Perry Jr | last post by:
I'm using "ID" and "Value" in the generic sense here... Let's say one page I had a <html:select> with a collection like this: <html:options collection="items" property="key" labelProperty="value"/> In this case "key" is what I mean by "ID", and "value" is what I mean by "Value" -- the "Value" is shown to the user, but the "ID" is what I plan to keep, to be saved to a database (as a reference in a table to a common table as a part of...
22
2525
by: David. E. Goble | last post by:
Hi All; I have a few of these; sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" lower I have;
12
4121
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport) {
4
25354
by: Guoqi Zheng | last post by:
On my application, I need to have different action based on the pass in query string. When the query string is not presented, I try to use If request.querystring("id") ="" THEN ...... This is what I did in trational asp, however if I did abov in ASP.NET, I always got an error of "Object reference not set to an instance of an object. " How should I solve the problem?
0
778
by: Dave | last post by:
A web page of mine looks something like: .... code ... <form id="formOne" action="Process.aspx" method="post"> .... a bunch of code ... </form> .... more code ... <form id="formTwo" action="Process.aspx" method="post"> ... a bunch of code ... </form>
3
1720
by: Harvey Triana | last post by:
Hi-- Sample. When i write something like: <input type="button" name="btnSend" value="Send" onclick="callSomeTask(getElementById('myControl').value );return false; /> I can run some cliente code if "myControl" is an Asp Textbox; getElementById('myControl').value get current Text of Textbox If i write a Web User Control, i dont know how to implemente the property
2
3077
by: sattu | last post by:
i have this command on page load event when page first time loaded value of querystring is 1 for Ex. but second time it becomes null i am doing paging in repeater cmd.CommandText = "select * from catinfo where catid=" & Session("id") & ""
0
2696
by: David | last post by:
Hi, I have an asp page which lists records. Each record has an ID appended to it. On the following edit page, I am trying to test against a certain field value, if it is >0 then run the update, otherwise don't. The problem is the data for testing is as follows: Dim arrMetal Dim iLoop
1
1029
by: gimme_this_gimme_that | last post by:
When an achor tag is defined like this - what might be going on? Why would someone assign the id a value associated with a JavaScript method? Or is something else going on? This comes from a Google Groups web page. <a class=st id="watchcomp.lang.javascript@62fc29b86239eb3c">something</a>
0
8386
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
8901
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...
1
8591
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
8660
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6213
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
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();...
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1792
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.