|
Button button1 = (button)sender;
button1.attribute["ID"].value ?
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
No that's not possible..because gridview is the sender....because image button is inside the gridview..i tried but it makes error....
regards
alex
|
|
|
|
|
Sorry, I guess I usually used an item template column.
You should still be able to determine the gridviewrow and use its findcontrol method. If that doesn't work you could pass both values as the command argument and use string.split. I'm sure you can figure it out.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
Thanks man finally it works..i used both values in the command arguement and split it out...
thanks once again.
regards
alex.
|
|
|
|
|
r widgets and webparts same ?
plz help me...........
|
|
|
|
|
Yes, a WebPart is a Widget, created for ASP.NET, MOSS...
Calin
|
|
|
|
|
To create a webpart, in Toolbox, go under WebParts tab and use WebPartManager and WebPartZone and add something to it, or by inheriting from System.Web.UI.WebControls.WebParts.WebPart class and override CreateChildControls() to add controls.
Calin
|
|
|
|
|
thank u calin,
can u plz suggest any link to develop widgets
|
|
|
|
|
Hi all,
I have a treeview control, loading data using an xml file, and have a trigger [TreeView1_TreeNodePopulate] in the codebehind. Don't know for some reason it is not getting fired. Even though I'm raising an error in my trigger, it seems it doesn't work.
Could anyone help me find this PLEASE?
Here is my aspx:
<asp:treeview id="TreeView1" runat="server" datasourceid="BookXmlDataSource" xmlns:asp="#unknown">
<databindings>
<asp:treenodebinding datamember="Book" textfield="Title" />
<asp:treenodebinding datamember="Chapter" textfield="Heading" />
<asp:treenodebinding datamember="Section" textfield="Heading" />
</databindings>
</asp:treeview>
<asp:xmldatasource id="BookXmlDataSource" xmlns:asp="#unknown">
DataFile="Book.xml"
runat="server">
</asp:xmldatasource>
codebehind:
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
TreeView1.TreeNodePopulate += new TreeNodeEventHandler(TreeView1_TreeNodePopulate);<br />
}<br />
<br />
protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e)<br />
{<br />
throw new Exception("alsdjfla");<br />
}<br />
Thanks A LOT.
Muthu
|
|
|
|
|
set PopulateOnDemand = true
Calin
|
|
|
|
|
I tried this. But still it is not working. Thanks for the quick response.
|
|
|
|
|
Im trying to print to a printer shared on a network , keep on getting this error
Im allready using impersonation on the server where the web app is hosted
If anyone can please give me pointers , I am able to print to some printers on the network,
is there maybe some settings on the client pc a need to change for the printer or something ,
Im realy stuck on this one
|
|
|
|
|
Hello All,
I am trying to delete rows from database . For this i am using following code...
When i debug my web service it shows me row.count decrease or increase when i delete or add row in "dtimages" databale respectively.
But when i finaly update my dataset "ds" using dataadaptor then row deletion changes are not shown in DB but row addition has been successfull.
<b>Please help as soon aspossible.</b>
<code>using (SqlDataAdapter dataAdapter = new SqlDataAdapter(ol_DB.lfnGetCommandObject("Select * from property_image where property_nbr = " + Prop.property_nbr)))
{
using (SqlCommandBuilder cmdBuilder = new SqlCommandBuilder(dataAdapter))
{
DataSet ds = new DataSet();
dataAdapter.Fill(ds, "property_image");
DataTable dtImages = ds.Tables["property_image"];
int AllRowCount = dtImages.Rows.Count;
int RwCount = -1;
int cntImages = 0;
int pdfImages = 0;
foreach (DocumentPropertyProperty_image allImage in Prop.Images)
{
if (allImage != null)
{
if (allImage.Img_Org_Name != null)
{
if (System.IO.File.Exists(FeedFolder + "\\" + allImage.Img_Org_Name))
{
try
{
DataRow[] drSelected = dtImages.Select("Img_Org_Name = '" + allImage.Img_Org_Name + "'");
if (drSelected.Length > 0)
{
RwCount++;
lfnUpdateImage(drSelected[0]);
if (allImage.img_file_type == 0)
cntImages++;
else
pdfImages++;
}
else
{
RwCount++;
if (allImage.img_file_type == 0)
{
lfnAddImage(Prop.property_nbr, allImage, ref dtImages, cntImages + 1);
cntImages++;
}
else
{
lfnAddImage(Prop.property_nbr, allImage, ref dtImages, pdfImages + 1);
pdfImages++;
}
}
}
catch (Exception e)
{
Remarks += e.Message + "\r\n";
}
}
}
}
}
for (int rcnt = AllRowCount-1; rcnt > RwCount ; rcnt--)
{
DataRow drw = dtImages.Rows[rcnt];
//drw.Delete();
//drw.AcceptChanges();
dtImages.Rows.Remove(drw);
//dtImages.Rows.RemoveAt(rcnt);
dtImages.AcceptChanges();
}
dataAdapter.Update(ds);</code>
|
|
|
|
|
Hi,
i have a one integer type field in table. it allows null values.
i want to pass null to the integer field?
how can i pass null values to integer type?
Regards
Keyur Satyadev
|
|
|
|
|
|
Are you talking about normal integer or integer Database type.
If you are talking about Database integer field, pass DBNull.Value from your application.
If you are talking about int of application end, you cannot assign null to value type data. Rather you can assign default value to integer.
do int i = default(int);
Hope it helps
Abhishek Sur
|
|
|
|
|
i want to pass the value null to my database but as you know
integer can not accept the null values. what should i have to do so that
integer can accept and allow to pass null values.
in my application integer is not accepting the null as integer.
it not allow to convert.
if i m convert the value it will treated as 0 for null.
Regards,
Keyur Satyadev
|
|
|
|
|
|
try to use DBNull or sommething like that....
|
|
|
|
|
Hi friends, i am asked to do my final year college project on COLLEGE INFORMATION SYSTEM maintenance s/w. The part of which requires me to develop a module which automatically downloads the marks of all the students in the dept, as soon as the result is announced by the university and then produce an analysis report on no. of passed students, distinction students,etc ...
Can anyone give me any idea on how i could achieve it. I need your help desperately cause deadline for the project submission is march 6 2009. Pl reply as soon as possible.[:'(][:'(][:'(]
|
|
|
|
|
ssmithraa99 wrote: i am asked to do my final year college project
ssmithraa99 wrote: deadline for the project submission is march 6 2009
My final YEAR project took all of my final YEAR. That's why it is called a final YEAR project.
Oh, well... first start with your inputs, what format is the data in and so on. Then have a look at your outputs, what format are they in, etc. Now trying and figure out what you need to do to the input to transform it to the output.
|
|
|
|
|
After you fail your course, spend your time working at McDonalds reflecting how your life would have turned out if you'd not waited until the last minute and asked strangers online to do this for you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi can any one help me..
I need to disply a girdview with empty datasource .
and with messege "No Items" in the position of first record.
footer with textboxs to insert the record into gridview.
|
|
|
|
|
It cane achieved in different ways in-order to logic.
a) Generate the header with column defination and add a blank datarow to dataset with required stucture badis on condition if your query doesnot returned any record.
2) In order to effective go with ajax.
|
|
|
|
|
it is very easy.
just set the empty data template of gridview.
for eg.
EmptyDataTemplate
No Rows
/EmptyDataTemplate
Regards
Keyur Satyadev
|
|
|
|