473,385 Members | 2,004 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,385 software developers and data experts.

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

11
i want to store value of querystring("id") when page postback
May 12 '07 #1
6 2571
prabunewindia
199 100+
hi friend,
plz explain ur need
do u want to get the data uyou passed thru querystring
then try with this.
string id=Context.Request.QueryString.Get("id");
Prabu
i want to store value of querystring("id") when page postback
May 12 '07 #2
sattu
11
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.querystring("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
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.querystring("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
is your piece of code in (!Page.IsPostBack) ?
May 12 '07 #5
sattu
11
is your piece of code in (!Page.IsPostBack) ?
yes my code in (if not !Page.IsPostBack)
May 14 '07 #6
gomzi
304 100+
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.querystring("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
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"...
22
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
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
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...
0
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"...
3
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...
2
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 *...
0
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,...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.