|
Are you sure you want this as a web app? Sounds more like a windows service to me. Before you say yes, do some research on how web applications work. Then come back with some serious questions
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
Hi,
I Installed the web application ,but I am not able to access the application
with IP address (http://10.22..../showRegion)of the system where as I am able to browse with IIS(http://localhost/Showregion/Default.aspx).Please any body help me.
Thanks in advance
ranjith
|
|
|
|
|
Do following thing
1. Open your IIS manager
2. right click your website and go to properties
3. go to website tab
4. in that type your ip address
and than try to browse your web application
hope this will work for you
|
|
|
|
|
Thank you pranay for your quick reply,
I opened the wesite tab but in that ip address drop down list is in disabled mode.
|
|
|
|
|
sorry i can't not reply on this moment because i m out of office and i am not able access iis manager
i think you try to enable that ip address tag will resolve your problem.
|
|
|
|
|
Hi,
I have button and list box in my page which is having 10 records,
When i select any rows from the list box i want to disable the button.. I need to do this from Client side , so what is the event to call the java script fnction. Please reply to my question..
regards,
kannak........
kannak
|
|
|
|
|
Server controls ou Html controls ?
|
|
|
|
|
You have to attach an javascript function on
onclick event,on every listbox item, which will disable your button.
Cheers!!
Brij
|
|
|
|
|
foreach(ListItem lItems in testListBox.Items)
{
lItems.Attributes.Add("onclick", "DisableButtonContol();");
}
Hope this helps...
|
|
|
|
|
How can we create a javascript grid?
|
|
|
|
|
Hi All,
I have created dynamically some buttons in my page,
but the thing here is, my event handler for the button s not working.
My coding is (aspx.cs page)
Button bt = new Button();
bt.text = "Test"
bt.Click +=new EventHandler(bt_Click);
protected void bt_Click(object b, System.EventArgs e)
{
}
i hope this is correct..
but its not working,debug also not firing, post back is firing(page load) correctly..
Thanks in advance help me..
|
|
|
|
|
(aspx.cs page) :
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
Button bt = new Button();
bt.ID = "Button1";
bt.Text = "Test";
bt.Click += new EventHandler(bt_Click);
this.form1.Controls.Add(bt);
}
protected void bt_Click(object b, System.EventArgs e)
{
Response.Write("Yahooo!");
}
|
|
|
|
|
Add a line to your code and it should work.
testDiv.Controls.Add(bt);
thus in total:
Button bt = new Button();
bt.Text = "Test";
bt.Click += new EventHandler(bt_Click);
testDiv.Controls.Add(bt);
|
|
|
|
|
Hello friend,
I am sending mail using createuserwizard. The mail is sent but it appears in the "Spam".
How can I define my mail to appear in inbox and not in spam folder
Thanks
Amit
|
|
|
|
|
|
Thanks...
Amit
|
|
|
|
|
The best option is go to the spam box.And click on not spam.So next time when the message comes from that sender it will come directly come to your inbox instead to spam.
Cheers,
Eliza
[url=http://www.mindfiresolutions.com/][b]Mindfire[/b][/url]: India's Only Company to be both Apple Premier & Microsoft Gold certified.
|
|
|
|
|
Hi Guys,
Can you someone advice me handling database in asp.net
Which is the best practice either closing database & recordset (i.e. sqlcommand,sqlreader etc) connection
as soon as getting the required data or just closing the recordset(i.e sqlreader, sqladapter) and retaining the database connection(i.e sqlcommand)
Thanks in advance.
|
|
|
|
|
|
thank Rana..
My question is
Is it fine to close the database connection once the transaction completed?
or
Is it fine to keep the database connection until closing the appln.?
Kindly clarify.
|
|
|
|
|
Of course. You are right.
It is the new technology with ADO.NET. We now work with Disconnected Data Architecture.
We connect only when actual database is needed. We can create a replica of the original database (with relations) in our DataSet .
Though there is also an option to use DataReader which works similar to ADO.
So call :
Connection.Open()
Command.ExecuteNonQuery()
Connection.Close()
As all of them are Disposable, you can use Using Block.
|
|
|
|
|
|
i think its better to close connection as your task of fetching record is completed because its feature of ado.net disconnected framework
for that below code is better tech.
the best way is use of using block
using(connectionobject)
{
// perform database related transaction here
}
its close your connection once it get executed successfully
or
use
try
{
}
finally
{
connectionobj.close();
}
|
|
|
|
|
thank u Rana..
Now I'm clear..
|
|
|
|
|
Hi Peoples,
I am doing an asp application in which i have to do some validation with some values in the page as
text box and buffer by means of datatable,
but when i click the button my as its coming to the page load(post back)
my data table are getting cleared... its becoming null, even though i checked
!Ispostback,
how to do this, how to do that button click in the means that i should use all my values.
thanks in advance..
|
|
|
|