|
The only thing i can suggest is to add some tracing around the DB logic part and see what it is doing. There is no reason that a DB Query should not work on an event.
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
i am creating a directory using code
<br />
string path="C:/My Documents/";<br />
Directory.CreateDirectory(path);<br />
directory is created successfully and i can view it in my c drive, now if i tries to upload a file using code
<br />
if (FileUpload1.HasFile)<br />
{<br />
path += FileUpload1.FileName;<br />
FileUpload1.SaveAs(MapPath(path));<br />
}<br />
it produces an error message showing "virtual path 'C:/My Documents/fileName' does not exists" while path do exists in my drive. any suggestion about the reason of this error.
Thanks in advance.
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Mappath is used to get the physical path from a virtual one. In your case you already provide the physical path so you don't need to use the beforementioned method.
|
|
|
|
|
thanks, it worked
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Hi All,
I've some textboxes as for Name,Age,DateofBirth but as run this project it leave something yellow background for the Name textbox. And i don't want to have this color by default ....
Can anybody let me know how to do it
|
|
|
|
|
Use the following...
<asp:TextBox id="TextBox1" BackColor=White />
Koushik
|
|
|
|
|
Sorry <asp:textbox id="TextBox1" backcolor="White">
this line of code is not working properly ...........
plz any other way to solve out my problem
|
|
|
|
|
try this textbox.style.backgroundColor ...
<< >>
|
|
|
|
|
This colour may be because of google tool bar's autocomplete property. Try uninstalling this tool bar if it is installed in your machine.
Regards
Sebastian
|
|
|
|
|
Sebastian T Xavier wrote: This colour may be because of google tool bar's autocomplete property. Try uninstalling this tool bar if it is installed in your machine.
You can disable this feature without uninstalling but I think you and I have the correct cause.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
This is due to Google Toolbar's Autofill feature and is not affected by the color you choose. Im not sure what you can do to override this but it must be possible because some sites this doesnt happen on, Im sure at least part of it is based on the name of the control.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
ahem....GOOGLE TOOLBAR....ahem
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Hi All,
Actually i form in which i want to restrict the users to enter his/her name,age to proceed further for it i've used "Required Field Validators". And also it's working properly on localhost but as i upload it it's not throwing the validations as it should do.............
..............................
Plz someone solve my this problem
|
|
|
|
|
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.
|
|
|
|