|
Please check whether the causevalidation is set to true.
Regards,
A Jabeer Ali
|
|
|
|
|
Hello everyone,
I am using VB.NET 2005 and creating a code file in which i have declared a method of connecting to the Databse. In order to implement that I am getting my Database connection string value from web.config defined like this.
<connectionstrings>
<add name="MySqlConn" connectionstring="Data Source=FAISAL\SQLEXPRESS;Connect Timeout=30;User Instance=False;initial catalog=homezilldb;Integrated Security=SSPI;Persist Security Info=False" providername="System.Data.SqlClient">
In the code file I am using ConfigurationManager.ConnectionString("MySqlConn").ToString(), but its giving me error "Name 'ConfigurationManager' is not declared".
I have already included System.Configuration namespace at the top. but it continously giving me error.
Please guys/gals help me..its urgent..
KHATRI
|
|
|
|
|
You also have to add a reference to the System.Configuration assembly. In 1.1 this namespace existed in the System assembly, but in 2.0 new classes like ConfigurationManager reside in this new one.
|
|
|
|
|
hi
i have need to change the 1st character of the word should in caps along Tostring().
like s="south africa"
should s="South Africa"
Regards,
sri.
|
|
|
|
|
I'm not sure if there is a buit in funtion to do that...
but just give my idea..
- split the s tring into array of words
- capitalize the first character of each word
<< >>
|
|
|
|
|
I think there is no built-in function to do that..
use the following..
s = s.Substring(0, 1).ToUpper() + s.Substring(1);
Koushik
|
|
|
|
|
You can use the proper function which will capitalize the first letter of each word.
|
|
|
|
|
Hi all,
I am new to webservices can u help me any website to learn concepts of webservices.Any suggetions plz welcome.
thank u.
k.ravi sankar
|
|
|
|
|
|
Hi Friend'z...
I have some web pages that i dont want to allow users to see them directly without logging in. How can i do that? if and only if they have logged in, they have to be allowed.
Pl help me ...
shah_tech
|
|
|
|
|
|
I'm using Visual Studio.net 2003. In this no login control.so, pl can u explain me clearly? please.
|
|
|
|
|
- so just create a web form
- drag 2 textboxes for username and password
- do authentication when user clicks on Login button
try these steps..and post specific question if you get problem
<< >>
|
|
|
|
|
Hi,
I hav login page also, but after logout, when we press back button on browser it takes me to previous pages. this is the problem actually.
thanks in advance...
|
|
|
|
|
|
I get a problem on writing a web page using C#.net 2.0. I have added some check boxes to a table cell and a button. When I check on some of the check boxes and the click the button, the table cell's find controls cannot find out the control.... And the web page doesn't know which check boxes have been checked
Many Many Thanks for helping~~
|
|
|
|
|
you have to add controls after each post back...try this...
<< >>
|
|
|
|
|
Thanks for your reply. But if I need to add controls after each post back, then I don't know which check boxes have been clicked by the user.
|
|
|
|
|
so for this issue...you might store checjbox's states in a hidden field, or session, or somewhere else,.. so that you can read and bind these when creating checkboxes dynamically...
Hope you get the idea
<< >>
|
|
|
|
|
Hi,
I think you don't determine cell's ID that you find control.
|
|
|
|
|
Hi,
Thanks for your reply. I have used the debug mode to check the controls in table cell and using the while loop to get the controls one by one. But I still cannot find the check box in the table cell. Please kindly help. Thanks again
|
|
|
|
|
Yes you cannot find the controls which added dynamically as web is stateless env...that's why you have to re-create after each postback...
<< >>
|
|
|
|
|
Hi,
You can use the code in the code behind:
<br />
for (int i = 0; i < TableID.Rows.Count; i++)<br />
{<br />
CheckBox chk = (CheckBox)TableID.Rows[i].FindControl("CheckBoxId");<br />
if(chk.Checked)<br />
else<br />
<br />
}<br />
I hope it help for you
|
|
|
|
|
Need help... When I do comparison betwen a cell contents of the grid and and arraylist I need to disable that particular row in the grid.... Is it possible...
for (int i = 0; i < mylist.Count - 1; i++)
{
foreach (GridViewRow row in grdSelectClient.Rows)
{
if( row.Cells[5].Text.ToString() == mylist[i].ToString())
{
//Code for disabling the row when comparison is equal....
}
}
}
-- modified at 6:32 Monday 7th May, 2007
-- modified at 6:34 Monday 7th May, 2007
|
|
|
|
|
Hi,
I hope you have got the solution by this time but still I suggest you to write the following code inside the "if" block in your code
row.Enabled = false;
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|