|
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
|
|
|
|
|
Hi Team,
Functional required is to get the entered value in the dynamic generated textbox.
1)After Page Rendered,Textboxes generated based on Dropdownlist value.
2) if we choose value "2" from dropdownlist then it will create two textboxes dynamincally and the control is add in the hirarchy control
textbox--->tablecell--->tablerow--->table---panelcontrol.
3)after textbox generated i entered value in generated textboxes and try to get the value in server control i'e on buttton click.
but due to postback the dynamic generated control are not found by findcontrol method.
could Anybody help me out from this scenario.
Tarun Singh
Zenta Pvt Ltd.
|
|
|
|
|
It should be there in the contro array of the panel control.. at the worst case add the the instance of the textbox to an arraylist at the same time when you add it to the page...
|
|
|
|
|
Hi Shyam,
Control generated properly and entered value get by javascript also but when i tried to get the value via button click. control not found due to postback event.
|
|
|
|
|
How can i do it in asp.net so that my webpage detect the browser and open the page according to it.
or what id coding to detect the user's browser..
|
|
|
|
|
I think the below script will help you.
script type="text/javascript>
script type="text/javascript">
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
if (ffversion>=3)
document.write("You're using FF 3.x or above")
else if (ffversion>=2)
document.write("You're using FF 2.x")
else if (ffversion>=1)
document.write("You're using FF 1.x")
}
else
document.write("n/a")
|
|
|
|
|
Yea. even Request.Browser property from server side tells you a lot
|
|
|
|
|
Yes,if you go through for serverside conding but if you want to check via client side then, we have go refer script code.
|
|
|
|
|
first of all i would like to suggest that your site must be
run in all the browser. you don't need to detect browser.
for your answer you can use javascript at client side because
it execute on client side thier is no load to server and u can
detect the browser type using in built function.
u have to use inbuilt function of java script. ie.
using getbrowser() method you can get the name and verson of browser.
Regards,
Keyur Satyadev
|
|
|
|
|
I am writing code to pass two parameter to stored procedure in page load.
i am getting maximum one lakh hits in one hour on that page.but my page take time to load so my page miss some hits.is it better if i cut my code from page load and paste on page init event.
is it required to call page load event for calling only stored procedure whome i am passing values from query string.or please tell me how can i improve performance and speed of my page
|
|
|
|