|
Your application might be written poorly. Some tips
1 - Avoid using DataSet/DataTable for reading data. Use DataReader and fill your custom collection classes.
2 - Use paged results
3 - Always call Dispose method on types which implements IDisposable . You can wrap it inside a using block which calls Dispose automatically when scope ends.
|
|
|
|
|
Hello,
I want to close the web page using window.close(),self.close() etc. they all works in IE but not works in Mozilla.
Note: The page is not a pop up window.
So, if guys you have any idea, give reply asap, because it's a developer issue, which was created by tester.
|
|
|
|
|
hi i my pro im using orcale client server
while i m using update query i run properly. but instead of query im using storeprocedure i can not execute it display error like 'invalid sql statement '
if im execute that procedure in my pl/sql it run properly
my code is like
in my sapx.cs file
string Qry = "Exec user_insert_proc('BW100000906','127.0.0.1','acibre','BrettoKumar','09006833242hijklm', 'bretto_be@yahoo.com',2,'abraham','Bretto','Abraham','1','27-Apr-1971','','22-Sep-2008 12:37:55 AM','22-Sep-2008 12:37:55 AM','ttk','alwarpet','620001','chennai','tamilnadu','BW','04411-123456789','0441-123456789','91-98947455711','','','8237536982482857233565195638026419924352543044988390181159607082248527607624911769985440292861738021','22-Sep-2008 12:37:55')";
public string exeQry(string qry)
{
if (Con.State == ConnectionState.Closed)
{
Con.Open();
}
cmd = new OracleCommand(qry, Con);
cmd.ExecuteOracleNonQuery();
Con.Close();
}
it display error like ORA:00900 invalide sql statement
with regards,
bretto
|
|
|
|
|
The error is thrown from oracle. Please check if the query you have prepared is running
on actual oracle console or not.
Abhishek Sur
|
|
|
|
|
brettokumar wrote: 'invalid sql statement '
Error message is clear, isn't it?
brettokumar wrote: string Qry = "Exec user_insert_proc('BW100000906','127.0.0.1','acibre','BrettoKumar','09006833242hijklm', 'bretto_be@yahoo.com',2,'abraham','Bretto','Abraham','1','27-Apr-1971','','22-Sep-2008 12:37:55 AM','22-Sep-2008 12:37:55 AM','ttk','alwarpet','620001','chennai','tamilnadu','BW','04411-123456789','0441-123456789','91-98947455711','','','8237536982482857233565195638026419924352543044988390181159607082248527607624911769985440292861738021','22-Sep-2008 12:37:55')";
What a disaster. Read about SQL Injection and change this to parametrized queries.
|
|
|
|
|
Hello all
I am displaying treeview in a dropdownlist using Ajax dropdownextendar control. But i am facing one problem.
When i click on "+" image in treeview for displaying subnodes then at that time it hide the dropdownextendar and when i click on dropdownlist then it shows me nodes and its subnodes.
As per the requirement when i click on "+" in treeview control image it should show me subnodes without postback or dropdownextendar should not hide the content.
Help Me
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
i an not very friendly with c# so how to write this code in C#:=
Private WithEvents m_MediaConnectWatcher As ManagementEventWatcher
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
C# has no equivalent to WithEvents of VB.
You can work with event handlers instead, like:
private void Form1_Load(object sender, System.EventArgs e)
{
ManagementEventWatcher m_MediaConnectWatcher = new ManagementEventWatcher();
m_MediaConnectWatcher.YOUR_EVENT += new EventHandler(YOUR_METHOD);
}
private void YOUR_METHOD(object sender, EventArgs e)
{
}
Regards
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
but i am not getting .YOUR_EVENT after initialization.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
you need to change the YOUR_EVENT to the event you actually want to handle..
Abhishek Sur
|
|
|
|
|
In the form load you are just connecting the event to your method...the method will be called just when the event are fired.
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
Hi friend
I want the updatepanel progress bar to be displyed at absolute center of the page(Horizontal-vertcal centering). It should be done at unknown height and width. Also It should display when i m scrolling the page in a same manner.
Could you help me how to do it whether using javascript / css alone.
Thanks in advance dude
G Nathan
|
|
|
|
|
Dear All,
Could anyone help me in giving an snippet of code for calling a perl script file from asp.net web appln.
Thanks,
Savee
|
|
|
|
|
hi,
i made a application on asp.net using c# with ajax and javascript. but server is linux server.
is it possible that my application run on linux server?
if possible than what the process?
will there any changes made for application?
etc.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
|
i am little bit confused that what is mono its a application or what is this my application is changed ? what is mono? plz help
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
"Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix"...you can think of it as the assemblies of .net, ported to Linux,etc
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
iam having a textbox where iam entering some text say user id then after entering the userid in the textbox and if user goes for next control then how can i validate that the user id entered is already there in my db.which event of the textbox works better.
|
|
|
|
|
Well, actually in asp.net you don't have an event on the validation of the control like in windows forms, but you can do like the following:
1) Put a custom validator control in your form
2) Set its ControlToValidate to your Textbox
3) Add a function to your code like
protected void ValidateTextboxInDB(object source, ServerValidateEventArgs args)
{
}
4) Bind the event handler to your method like:
<asp:customvalidator id="CustomValidator1" runat="server" xmlns:asp="#unknown">
OnServerValidate="ValidateTextboxInDB"
ControlToValidate="TextBox1"
ErrorMessage="Your error message.">
</asp:customvalidator>
Regards
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
hi caiokf Thanks for ur immediate reply .but how to call this when textbox is lost focus
means when user enters something in the textbox and comes out.
|
|
|
|
|
hi Lakshmi,
set ur textbox autopostback property to true in the properties pane of ur textbox.
and in the textbox textchange event u can validate the userid against the userid in the DB.This is very simple.
T.Balaji
|
|
|
|
|
in one of my project at one palce XMLHttpRequest object is been mase
Request.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
var obj = this;
Request.onreadystatechange = function() { obj.OnReadyState(Request); };
Request.send(PostParams);
i objerved this send method executes the request but how it does work
how it executes query i could not got it
so i need guidence on it
Raghvendra
|
|
|
|
|
Googling AJAX would be a good starting point.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
i had a lots og googling abt how internally it works but could not get it
at each palce i got abt how and where to call it but internally everything was hidden
Raghvendra
|
|
|
|
|
Hello,
I have been reading about setting dynamic page titles in ASP.NET 2.0, in order to modify the "catalog.aspx" page of my web application. Most of the articles on this subject, however, seem to be describing somewhat complicated solutions for creating dynamic site maps, whereas I would just like to set the title of my catalog.aspx page to the name of the current category or product in my catalog.
Although I can see how to set the title property in code like so:
Sub Page_Load()<br />
Page.Header.Title = "The current time is: " & DateTime.Now.ToString()<br />
End Sub
...I can't figure out how to dump the contents of a <%# Container.Name %> -type container into this statement.
I am using a 3rd-party shopping cart package (DotNetCart), that displays categories and products on the http://www.mywebsite.com/catalog.aspx page in typical catalog fashion:
http://www.mywebsite.com/catalog.aspx?CategoryID=200 (The category named "Handbags")
http://www.mywebsite.com/catalog.aspx?CategoryID=200&ItemID=13 (The category named "Handbags", and the item "Canvas Handbag")
In the above examples, I'd like to have the page title change to "My Website: Handbags" and "My Website: Canvas Handbag" respectively.
The third-party vendor's catalog control looks sort of like this (extra tags and declarative controls omitted):
<dotnetCART:DisplayCatalog><br />
<CategoryTemplate><br />
<%#Container.Image%><br />
<%# Container.Name %><br />
</CategoryTemplate><br />
<ItemDetailsTemplate><br />
<%#Container.Name%><br />
<%#Container.ItemID%><br />
<%#Container.Price%><br />
</ItemDetailsTemplate><br />
</dotnetCART:DisplayCatalog>
How would I go about displaying the catalog control's Category and ItemDetails' Names in my page title attribute? Thanks for any advice.
|
|
|
|