|
I'm currently doing it in the ItemCreate event, with success, thanks.
It was even after the DataBind call that the Columns collection was empty. I wonder if the call is asynchronous?
|
|
|
|
|
i m using sql server2000 and ASP.net2005. i create report using reportviewer. and set its processing mode to [server].print option is visible in design time but not show in run time. please help me its very very urgent. my client is wait for it. he have to print the report immediate bases. if i export report in excel or pdf its format will disturb. but i want to print directly from reportviewer. please help it very very urgent.
Amit Gautam
|
|
|
|
|
How it can be possiable please help me
Anu Gaur
|
|
|
|
|
Google, double-poster.
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi All,
I would like to take only Date part of DateTime variable?
Eg. 2008-09-18 12:00:01.000' i only needed 2008-09-18
Please advice
Thank you
Kibrom
|
|
|
|
|
DatTime has a ToShortDateString() method. You can also access the Year ,Month & Day properties directly.
All this you could have found out yourself by reading the actual documentation for the class.
|
|
|
|
|
Use the Date property of the DateTime structure.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
How we can import MS access database table's data into Sql server 2005 in ASP.net with C# (in Web application) .
Please send me response on my mail id anu.gaur.iec@gmail.com
Anu Gaur
|
|
|
|
|
Putting your email address in your post is not a good idea.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I am having a gridview. I want ot put the data from the gridview to the business object and store it in aarraylist. and then pass the array of objects to store data in the database.
I am not getting the value of the gridview column in the object . I am doing like this
for( i=0;i<gridview1.rows.count;i++)
{
classABC objectABC=new classABC ();
objectABC.ItemBaseId=Convert.ToString(GridView1.Rows[i].Cells[2].Text);
objectABC.Catalog = Convert.ToString(GridView1.Rows[i].Cells[3].Text);
objectABC.Series = Convert.ToString(GridView1.Rows[i].Cells[4].Text);
arr.Add(objbom);
}
Please tell me how to do this?
|
|
|
|
|
try the change shown
for( i=0;i<gridview1.rows.count;i++)>
{
classABC objectABC=new classABC ();
objectABC.ItemBaseId=Convert.ToString(GridView1.Rows[i].Cells[2].Text);
objectABC.Catalog = Convert.ToString(GridView1.Rows[i].Cells[3].Text);
objectABC.Series = Convert.ToString(GridView1.Rows[i].Cells[4].Text);
arr.Add(objectABC);
}
Bob
Ashfield Consultants Ltd
|
|
|
|
|
not getting what you are telling.
will you please elaborate it
|
|
|
|
|
You have
arr.Add(objbom);
but it should be
arr.Add(objectABC);
as objbom isn't even defined.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
ya I tried with that also.
But am not getting the value that are in the gridview cells.
the gridview value is coming null.
Am I doing some mistake while setting gridview text to the object?
|
|
|
|
|
I don't know. Have you tried debugging to see what values you are getting?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Google is ur friend use it.
|
|
|
|
|
I am working in SQL Server/asp.net Database
How to using val() in sql?
mycode datatype is string
values as "MS12", "MW10", ...
My query is "Select * from FILE1 where val(substring(mycode,3,2))=10"
Sql say error as val is not recognised function name
Kindly tell your suggesions.
Thanking you
abglorie
|
|
|
|
|
Re: Please Dont Cross Post
|
|
|
|
|
How to using val() in sql?
mycode datatype is string
values as "MS12", "MW10", ...
My query is "Select * from FILE1 where val(substring(mycode,3,2))=10"
Sql say error as val is not recognised function name
Kindly tell your suggesions.
Thanking you
abglorie
|
|
|
|
|
which database you are working? Please specify
Abhishek Sur
|
|
|
|
|
sql2000 database is using
|
|
|
|
|
abglorie wrote: Sql say error as val is not recognised function name
Thats because it isn't. Bet you copied this from excel or Access. Just look up substring in sql help.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
write like this
Select * from FILE1 where Cast(substring(mycode,3,2) as int)=10
Abhishek Sur
|
|
|
|
|
Hi All,
I've created a tab container with tab panels. The page in which I created the tab container is a content page.When I run the application I am not able to view the tabs.If I create these tabs in normal pages I have no problem.
code is given below.
]]>
<asp:content contentplaceholderid="SiteContentPlaceHolder" runat="server" xmlns:asp="#unknown">
<asp:scriptmanager id="ScriptManager1" runat="server">
<ajaxtool:tabcontainer id="TabContainer1" runat="server" activetabindex="0" xmlns:ajaxtool="#unknown">
<ajaxtool:tabpanel id="TabUsers" runat="server" headertext="Users" font-underline="False">
<contenttemplate>
<asp:textbox id="TextBox1" runat="server">
<asp:button id="Button1" runat="server" text="Button">
<ajaxtool:tabpanel id="TabQuestionBank" runat="server" headertext="QuestionBank">
Font-Underline="False">
<contenttemplate>
<asp:label id="lblExperience" text="Experiencerfd" runat="server">
<ajaxtool:tabpanel id="TabPanel1" runat="server" headertext="Roles" font-underline="False">
<contenttemplate>
<asp:label id="Label2" text="Exfsdfsdf" runat="server">
|
Thanks for any one who is going to help me
|
|
|
|