|
Gagan Deep Garg wrote: Not change the index. Insert the value in same index
Insert inserts a value at the index specified, and everything else moves around to accomodate it.
If you want to change a value at a specific index use the indexer notation
Something like this:
MyDdl.Items[index] = newValue;
|
|
|
|
|
ok, there's some confusing word here...
do you want to "insert" or make the list (i to nowrec) to exist in your dropdownlist ?
if you want to "insert" there's nothing wrong in your code. the result from your code is : your ddl (dropdownlist) will have the list with nowrec is first in dropdownlist's list.
if you want to make the list exist then you just have to change the code to
"ddlequipmentno.Items.Add(i.ToString())"
hope it works...
|
|
|
|
|
thanks for ur code i have done my requirement
and i think it will solve ur requirement as well ....!
Try it.....!
for (Int32 i = 1; i <= Convert.ToInt32(NowRec); i++)
{
ddlequipmentno.Items.Insert(0,newrec.ToString());
}
|
|
|
|
|
Hai,
Qn:---Can i pick any date using calender without navigation??Is it possible by using calender control.If possible give me an idea.Because navigation letting my application slow.
Please can any body respond to my question,i wil be grateful to u.
please give me some examples.
Thanks in advance.
If not possible what might be the solution for my problem.
I know using of a calender and other options with calender.
but my above question,please..any body
kissy
|
|
|
|
|
Kissy16 wrote: Because navigation letting my application slow.
Navigating in the Calendar control will not be slow. Probably the Page which the calendar present is heavy.
Kissy16 wrote: If not possible what might be the solution for my problem.
Best solution is use JavaScript calendar which are available free in internet. Or else use JavaScript and DropDownList controls (Date/Month/Year) to make a nice DatePicker.
|
|
|
|
|
thanks for ur answer.Can u plz suggest me the examples where can i get??
plzzzz
kissy
|
|
|
|
|
Sorry for saying this, GOOGLE it.
|
|
|
|
|
|
Hi,
I m newbiew to Asp.net(vb).
I have a menu control which include some items like Home,Search etc.
The Search Item have some subitems.The problem is that the dynamic part(subitems of search) of menu is hided by another control which is just placed under of menu control,
I want to show it just like Message Boards of Code Project(See Above) it shows its subitem above all the controls.
I hope someone will understand my problem and help me to solve it
Looking forward for your response, Thans with anticipation
|
|
|
|
|
~V~ wrote: problem is that the dynamic part(subitems of search) of menu is hided by another control which is just placed under of menu control
Is that control is a DropDownList(ComboBox) control? If so, you can't. Because DropDownList (ComboBox) is windowed control which have the first preferences that other HTML controls. This is a known IE bug, which is said to be fixed in IE 7.
|
|
|
|
|
Thanks for your response Sir,
But i m using Menu Control not Dropdownlist
|
|
|
|
|
You haven't understand my response clear. Read it again. I asked you, "What is the control which is overlapped on your Menu Control? Is it a DropDownList?"
|
|
|
|
|
|
Then, set z-index to the image lesser than the Menu.
|
|
|
|
|
It worked!
Thanks a lotttttttttt
|
|
|
|
|
I have a asp.net page which i open it inside a form with fixed layout.
Once the form is loaded the inside controls exceeds the form size, and i am not able to access the controls.
I disabled the body scroll=no, since this is an requirement.
Is there any other way to bring the controls inside the form without altering the form size.
thanks in advance.........
|
|
|
|
|
How about a scrollable DIV encompassing the form? So you get a little scrollbar for the DIV alone?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
superb that works....
any idea how to disable the Verticle scrolling inside the div element?
Million advance thanks..
|
|
|
|
|
style = "overflowY :hidden;overflowX:auto"
|
|
|
|
|
hello,
I want to call an ASP page and retrieve the response.
This can be done with HttpWebRequest,
but this request seems to be launched as a different session ?
I want to avoid posting a form or working with the querystring,
so everything is stored in the session.
anyone has an idea what I should do?
gr,
Niko
<< Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>
|
|
|
|
|
I think you need to pickup the cookie and other Request Headers and emit the same along with your WebRequest.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Vasudevan Deepak K wrote: I think you need to pickup the cookie and other Request Headers and emit the same along with your WebRequest.
Can ASP.NET cookies/Request Headers sharable with ASP or other ASP.NET application? If so, where is the security then?
|
|
|
|
|
|
hello,
Thanks for your answer.
found some other
http://forums.asp.net/p/945319/1145830.aspx[^]
only cookie ASP.NET_SessionId needs to be replaced.
for the moment, can't get this to work correctly...
<< Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>
|
|
|
|
|
hi friends
how to ping the IP address using .net
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|