|
I could not find web.config in Visual studio express 2005 projects...Did i missing something..
|
|
|
|
|
Visual Studio Express for Web Developer or C# express?
If you are using Web Developer VS Express then you add web.config to your website from "Add New Item" of LeftMenu..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
i have string variable which has xml data. how to parse this variable to get values using c#.net?
|
|
|
|
|
Hi
Can anyone help me in refreshing asp.net page, which contains grid without page being blank. Grid is connected to database and fetches data from database at load time. I have tried doing it but my page becomes blank at the time of refreshing. is there any way to do this using ajax?
thanx n bye
Ratnadeep
Mumbai
|
|
|
|
|
What do you mean exactly by the page becomes blank? How are you refreshing? is it by clicking on a button in the form or by clicking the "reload" of the browser?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hi Talal Sultan
i m reloading the page using meta tags.
|
|
|
|
|
Ok, so I "suppose" it is the same as clicking on the "load" button of the browser.
Now, does the data appear the first time you load the page and disappear when you reload? If so, could you provide some code about how you are loading the data?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
ratnadeepraul wrote: my page becomes blank at the time of refreshing. is there any way to do this using ajax?
At the time of refresh or after loading ? Page will be blank for a second while it fetches data. To avoid complete page refresh, you can put your grid inside UpdatPanel (Included in AJAX toolkit).
|
|
|
|
|
Hi Navaneet,
can u give me ne source from where i can download ajax toolkit. Is it available for free?
Bye n thanx
|
|
|
|
|
you can set "SmartNavigation=True" in the page directive of your asp.net page
<%@ Page Language="C#" AutoEventWireup="true" "SmartNavigation=True" CodeFile="frmCodeSearch.aspx.cs" Inherits="frmCodeSearch" %>
winnie
|
|
|
|
|
codelinks wrote: you can set "SmartNavigation=True" in the page directive of your asp.net page
Specifically for IE. Is it ?
|
|
|
|
|
|
hi "SmartNavigation=True" isnt working for me, it doesnt allow my page to refresh.
thanx for suggestions
|
|
|
|
|
did u remove the double quotes
just give SmartNavigation=true in the page directive of your asp.net page
winnie
|
|
|
|
|
ya, i saw it by removing double quotes also. But still its not working.
|
|
|
|
|
Hi
I am having problems with my asp page on my remote webserver
Every time i try to use a stored procedure it returns saying a table doesn't exist
If i put in a select query into the command the line the table is there
has anyone got any ideas?
cheers
boyindie
|
|
|
|
|
Two things come to mind:
1: Do you have the requisite permissions on the database objects?
2: Is the page using the correct connection string?
|
|
|
|
|
I have sorted the problem
I was tryin to add to a users table
I am guessin that is a keyword or somthing in mySQL
as i changed the table name to system_users and it works fine now
cheers
boyindie
|
|
|
|
|
|
i have string which has xml data like
<addressrow> <addressid>0 <foreigntablename>tblPerson <foreignkeyid>0 <address1>idb1 idb2 <address2>idb3 <address3>idb4 <state>NY <zip>12436 <addressisvalid>True <datecreated>8/10/2007 1:30:20 PM <countryidf>US
now i have to parse this string and store each attribute values in string array
which method i have to use. please provide some help or code
|
|
|
|
|
Hi i am trying to insert data into a database using store procedure but it gives me this error "An SqlParameter with ParameterName '@Name' is not contained by this SqlParameterCollection" and here is my code
string conString = @"Data Source=DAKESERVER;Initial Catalog=Customer;User ID=sa";
SqlConnection conCustomer = new SqlConnection(conString);
conCustomer.Open();
try
{
SqlCommand cmdCustomer = new SqlCommand("AddCustomer");
cmdCustomer.Connection = conCustomer;
cmdCustomer.CommandType = CommandType.StoredProcedure;
cmdCustomer.Parameters["@Name"].Value = txtName.Text.ToString();
cmdCustomer.Parameters["@Surname"].Value = txtSurname.Text.ToString();
cmdCustomer.Parameters["@Address"].Value = txtAddress.Text.ToString();
cmdCustomer.Parameters["@Telephone"].Value = txtTelephone.Text.ToString();
if (cmdCustomer.ExecuteNonQuery() == 1)
{
lblMessage.Text = "Record inserted";
}
else
{
lblMessage.Text = "record not inserted";
}
}
catch (Exception ex)
{
lblMessage.Text = ex.Message;
}
finally
{
conCustomer.Close();
}
Mamphekgo
|
|
|
|
|
Have u declare parameter @Name is StoredProcedure?
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
yes i did declared it
Mamphekgo
|
|
|
|
|
I am getting following error in production environment
i.e The state information is invalid for this page and might be corrupted error while executnin aspx page.It is working fine in Development environment.
Please any one can give clue about this
|
|
|
|
|
Hi
In my application, I have a ListBox which is to be filled with the values in XML file.
My application goes like this.....
I am getting a State name of USA from the QueryString, with the help of a that QueryString I have to get the Names of Counties of that State, which r in a XML file on to a ListBox.
My XML File looks like this
<USA>
<CountyUSA>
<StateCode>AK</StateCode>
<StateName>Alaska </StateName>
<CountyName>Aleutians East</CountyName>
</CountyUSA>
<CountyUSA>
<StateCode>AK</StateCode>
<StateName>Alaska </StateName>
<CountyName>Aleutians West</CountyName>
</CountyUSA>
.....
.....
<CountyUSA>
<StateCode>AL</StateCode>
<StateName>Alabama </StateName>
<CountyName>Autauga</CountyName>
</CountyUSA>
<CountyUSA>
<StateCode>AL</StateCode>
<StateName>Alabama </StateName>
<CountyName>Baldwin</CountyName>
</CountyUSA>
.....
.....
<CountyUSA>
<StateCode>GA</StateCode>
<StateName>Georgia </StateName>
<CountyName>Campbell</CountyName>
</CountyUSA>
<CountyUSA>
<StateCode>GA</StateCode>
<StateName>Georgia </StateName>
<CountyName>Milton</CountyName>
</CountyUSA>
</USA>
How can I get only County Names of a particular State for this XML file.
Suggest me an Example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|