|
hai friends
in a page i have a panel, in that panel i added a image control
for panel i set both horizontal and vertical scroll bars
when the page is postback then i have to maintain the panel scroll bar position same as it is.
plz help me
thanks in advance
vijay
|
|
|
|
|
use MaintainScrollPositionOnPostback ="true" in page directive
|
|
|
|
|
|
use "split" function ....
Thanks,
Arindam D Tewary
|
|
|
|
|
string s="6/30/2008";<br />
string [] s1= s.split('/');<br />
console.writeline(s1[2].ToString());
|
|
|
|
|
DateTime m = new DateTime(2008,03,21);
int s = m.Year;
Sathya
|
|
|
|
|
|
How to visible false particular column in DataGrid but It is auto generated so that it is not fixed how many columns is there.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
What?
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
I mean
suppose now DataGrid have ID,Name,ResourceId
and I wnat to do visible false ResourceId column
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
in visual studio u can click on smart menu and select "Edit Columns..." or in properties select "Columns" and do what ever you want to do
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
dgrid.Columns[i].Visible =false
Sathiya
|
|
|
|
|
if it is autogenerated or not .. you still be able to set visiblity of a particular column to false(or true) but columns collection. You have to identify index of the column you want to set to false(or true).
After your databind is done, you can write following line to achive that.
datagrid1.databind();
datagrid1.Columns[3].Visible = true;
Thanks,
Arindam D Tewary
|
|
|
|
|
datagrid1.databind();datagrid1.Columns[3].Visible = true;
trying above not showing anything.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Set visible to false..
Sathiya
|
|
|
|
|
My sql server is connected thro windows authentication, how to connect these DB in asp.net
|
|
|
|
|
Hi Reethi,
Try this...
Data Source=<server name="">;Initial Catalog=<db name="">;Integrated Security=True
Sathiya
|
|
|
|
|
its not working, showing errors
|
|
|
|
|
what is the error?
Sathiya
|
|
|
|
|
Data Source=(Server Name/IP/PC Name);Initial Catalog=(DB Name);Integrated Security=True
Sathiya
|
|
|
|
|
am getting the error like "only elements are allowed"
|
|
|
|
|
Use like this
Server=SERVER;Database=ABC;Uid=sa; PWD=12; Connect Timeout=360; pooling=true; Max Pool Size=200
Sathya
|
|
|
|
|
stil i get the error like "login failed"
|
|
|
|
|
Now Start->SQLserver Mgmt Studio-> Login using Windows Authentication. Check whether you can able to connect.
Sathiya
|
|
|
|
|
Understand the question first dear...
If it's "Windows Authentication". There'll be no Uid/pwd. Setting -"Integrated Secruity" to "True/SSPI" will solve the problem.
Sathiya
|
|
|
|