|
Dear,
I have trouble with crystal report, when i run it on my pc it work normal when i publish to server it show Submit Query.
anyone please help me
Socheat
|
|
|
|
|
Hi,
I am using Strongly Typed Dataset(.Xsd) to keep the values fetched from the database. And i am using three tyre architecture in my project.
I am using this Typed dataset not only to fetch the records from database and also to store the new values into the database.
I am getting a problem while i am trying to assign NULL for an integer field.
if (txtExperience.Text.Trim() == "")
row.Experience =(Int32)SqlInt32.Null; //row.SetExperienceNull;
//DbNull.Value;
else
row.Experience = Convert.ToInt32(txtExperience.Text);
I am getting the error below
Data is Null. This method or property cannot be called on Null values in strong typed dataset
I dont know how to pass the null value.
Pls help me!
Tnx in Advance.
|
|
|
|
|
Hi,
I have records in hidden field that are assigned to array that contains phone numbers.
I am getting each phone number and fire store procedure so that sms will send to that number.
My Application is too slow because if I send 1000 sms.
How can I Do ?
because of for loop it takes time? or any other solution to increse the speed of the application
Thanks
sjs4u
|
|
|
|
|
Hi,
I hope you don't build an automatic sms spam application
What you could try is to use a seperate thread to send the sms. So your application will not freeze, the user can use the app while it sends the sms in the background. Search with google and keywords "Consumer Producer pattern".
Regards
Sebastian
|
|
|
|
|
when i click on some link to open a aspx page ,it load master page .as there is same master page in all of my aspx pages ,how could it possible to load master page onece and view on all the aspx pages
|
|
|
|
|
One of the things you can do, is to cache the controls you have in the master page using OutputCache directive on top of the master page. That way all the controls in the master page are cached for whatever the time you want them to be.
Bhaskara
|
|
|
|
|
hello i m creating a dropdownlist binded from database...
now i m having a link to Add More to add more dropdownlist these dropdownlist are having their option from database...i successfully done that but on change event of dropdownlist i want to create child dropdownlist binded from database... u can see the example here[^]
please tell me how to solve this problem...the first dropdownlist displays category and the second one subcategory....
|
|
|
|
|
Hi,
u can do this way
Bind the child DropDown list in the Selectedindex changing event of
the parent DropDown list
Try and let me know the result
happy coding
|
|
|
|
|
The reply given by Sunitha is right.
But with this do take care that you write your code in If(!Page.IsPostBack) while filling the first dropdown on page load.
|
|
|
|
|
|
Hello
i want to cache aspx page per user.
how could be done??
thanx in advance.
Sujit
|
|
|
|
|
One way is to pass sessionid in query stirng and put varybyparam with sessionid as key.
But as we all know passing sessionid in query string is a security threat.
|
|
|
|
|
any other technique.
Sujit
|
|
|
|
|
Simple way is to use ASP.NET_SessionId cookie.
Try using VaryByHeader="ASP.NET_SessionId".
|
|
|
|
|
You may save the output of the page in the session object then get it from the session object when the user requests the page
|
|
|
|
|
Hi,
Can any one know the take printout the treeview controls data in asp.net. Is there any print option for treeview control. I want to print the following sample tree format,
+sample1
-sample2
+sample2
-sample2.1
-sample2.2
-sample2
+sample3
+sample4
-sample4.1
-sample4.2
-sample4
Thanks in advanced,
|
|
|
|
|
Can u not simply loop through the nodes and print the data out?
Bhaskara
|
|
|
|
|
Plz help out 'coz i am familiar with data reports in vb6.0 but not with Crystal Reports in asp.net and it is urgent 4 me .
Thanx in advance...............
|
|
|
|
|
Visual Studio has a control called CrystalReportViewer that you can put on the page.In the properties for that control you will be able to browse to the location where you have .rpt files.
Bhaskara
|
|
|
|
|
I have an option for export to excel in my webpage.When i click on that button, the save dialogbox appears but it remains hidden behind the webpage. So one have to minimize in order to enter filename and path.How can i put the dialogbox on top.
Thanks in advance
regards
Bibhu
|
|
|
|
|
i have a xml file called combo.xml and a combo box cmb,when i click on the combo box i want to load the xml file to it,code is like some what
function abc()
{
(i want the code here to load the combo.xml file to the combo box cmb)
}
--Select Category--
modified on Friday, January 23, 2009 12:36 AM
|
|
|
|
|
Hope this helps
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML("<root><value>a</value><value>b</value><value>c</value><value>d</value></root>");
for(var i=0;i<xmlDoc.selectNodes("root/value").length;i++)
{
document.getElementById("Select1").options[document.getElementById("Select1").options.length] = new Option(xmlDoc.selectNodes("root/value")[i].text,xmlDoc.selectNodes("root/value")[i].text,false,false);
}
Take care to load it on the first click alone
|
|
|
|
|
Thanks for the reply,but the actual problem is i have the xml file in the same folder and that will be expanded sometimes.If that is the condition i have to change the code every time.To avoid that what i can do?.And in this solution when i am clicking the combobox in the second time it is getting duplicated.I can add the values in another way without duplicating like this
var y=document.createElement('option');
y.text='itemdisplayed in comboBox';
var x=document.form1.cmbBoxname;
x.add(y);
x.add(y,null);
one condition is there, suppose
if(condition)
{
load the combobox with a xml file;
}
else
{ load with another xml}
that i want .
modified on Friday, January 23, 2009 3:23 AM
|
|
|
|
|
Hi all,
i have multiple update panels with buttons .i open a popup which is a new page when i click on the button using javascript code.All update panels open the same popup.I need to update the parent which opened this popup once i close the popup.I also know how to refresh the update panel when i close the popup
What i was unable to find out is how to find out which button(which ) has opened this popup.so that i can update that specific update panel
The sample code is shown below
<div id="parentContainer" onclick="__doPostBack('ParentUpdatePanel', '');" />
<asp:updatepanel id="ParentUpdatePanel" runat="server" updatemode="Conditional" xmlns:asp="#unknown">
<contenttemplate>
<asp:label id="lblparenttime" runat="server"></asp:label>
<asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup();" />
</contenttemplate>
</asp:updatepanel>
<div id="Div1" onclick="__doPostBack('ParentUpdatePanel', '');" />
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional" xmlns:asp="#unknown">
<contenttemplate>
<asp:label id="Label2" runat="server"></asp:label>
<asp:linkbutton id="LinkButton1" runat="server" text=" lcick me to open popup" onclientclick="return showpopup();" />
</contenttemplate>
</asp:updatepanel>
Any help or suggestions are appreciated
Thanks in advance,
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Did you try passing the div id in the method showpopup
<asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup('div1');" />
|
|
|
|