|
Use Regular expression validator and provide the validation expression something like:
[a-zA-Z0-9]+
Hope this will help.
|
|
|
|
|
I created a masterpage.But i am not able to drag or change the size of a contentplace holder.I checked the positioning options and set it as absolute.But still it is not working
|
|
|
|
|
How to lock code execution without specifying lock() on particular variable?
I neet to lock the function call.
...
SomeFunction();
...
Чесноков
|
|
|
|
|
Why, are you multi-threading? If so then lock is the correct way to go, otherwise your question makes no sense.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Well, I call unmanaged function from dll, and its declaration is static using PInvoke.
If several clients connect to the site and call it all at once, will it crash?
Чесноков
|
|
|
|
|
I think Lock Statement is essential when you are calling the same function from different threads. ASP.NET is multi threaded environment and IIS runs each thread in each Session it creates.
I believe lock construct is same as
try
{
Monitor.Enter(
}
finally
Monitor.Exit();
You can use Monitor.TryEnter rather than Monitor.Enter as you can give the extra parameter which indicates how much to wait, which results better performance to your website, and also the website wil not crash even if you are accessing a shared variable.[At least you can overcome the deadlock situation]
|
|
|
|
|
I've got the folder in the project, and the files are not added to the project, since during debugging its contents vary, the site creates or removes some of them during execution.
But how in the same mode as \bin folder contents are all copied during publish operation to the target dir, enable the same coping of all that folder contents during publish operation?
Чесноков
|
|
|
|
|
Dear all,
Can any one tell me how to open OUTLOOK MAIL Window
When i click EmailID in my aspx page,
Iam using the folling code
<asp:hyperlink id="hyp" runat="server" navigateurl="mail:sgsdg@gmail.com"/>
Above code is working when i have outlook in my local machine,
If i don't have OUTLOOK in my machine it is showing pop message(error),
If we Install MS OUTLOOK in My LIVE SERVER whether that will work?
Is there any other solution for this?
regards
kish!!!!
|
|
|
|
|
It will open the default mail client of the client machine.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
It has nothing to do with Server.
I will open default mailclient on client machine.
|
|
|
|
|
Image1.ImageUrl = TextBox1.Text;
//textbox receive path of the image for example textbox=c:\Blue hills.jpg;
//but image is not show in the image control
|
|
|
|
|
At this point, is the image on the server or the client's machine? i.e. has the image been uploaded yet?
Also, you shouldn't double post, sometimes causes friction around here!
|
|
|
|
|
the image must be inside your project... outside images that is c:\Blue hills.jpg will never been considered....
|
|
|
|
|
how to make database connectivity globally?
behind asp.net form i will write only insert query .
the code for insert query should be global?
|
|
|
|
|
in one of my application, a user connect to deterrent databases that gets chosen on the login Screen. Now i change the Connection string Dynamically. In my Data layer i will have something like this
private string GetConnectionString(string DB)
{
string connString = ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString;
if (DB != null)
{
return connString.Replace("oDirectv3", DB);
}
else
{
return connString.Replace("oDirectv3", "oDirectv3");
}
}
and my Connection String will look like this
<add name="DBConnectionString" connectionString="Data Source=VUYISWA\SQLEXPRESS;Initial Catalog=oDirectv3;Persist Security Info=True;User ID=V;Password=wow" providerName="System.Data.SqlClient"/>
So what ever sql statement you run to the database will Correspond
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i am using controls
1- image control
2- file upload
i try to upload a file in image control that display in image control as the file uploaded. and save it in database on submit button event
|
|
|
|
|
and what happens when you try?
|
|
|
|
|
your question is
1) you will upload a image file in fileupload.
2) when you press save button it should save in database as well as that image must be shown in the image control.
is that correct...
|
|
|
|
|
Hi,
I need server component that can retrive and sign word 2002 and 2003 documents. Installing ms word on server is not an option, so I can't use this samples:
http://msdn.microsoft.com/en-us/library/aa140281(office.10).aspx
I spent some time googling and there are many word processing components, but none supports digitally signing.
|
|
|
|
|
I have a wizard control in my form, which has four steps. The first step contains text boxes and list boxes, second tab contain CheckLisboxes, Third tab contains a set of RadioListbuttons and fourth tab contains a treeview control.
Issue is, while navigating to Previous and then to Next or back, the values which are selected in these controls are not maintaining. Especially in Checklistboxe and RadiolistButtons. Values are maintaining in text boxes. Any idea why it is happening? Even though I put Enableviewstate of each control as true, the state is not maintaining and the values are disappeared.
Can anybody please help me on this?
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
you have to maintain the values in viewstate and rebind the values from the viewstate when navigating to next or back....
|
|
|
|
|
hi all
i'm new to web services
i've uploaded my web service files to a remote ftp
in the add web reference window when I try to select my file I get in the 'web service found at this URL'
the following message: 'Default credentials are not supported on an FTP request.
Parameter name: value '
what does it means?
what should I do?
Thanks
|
|
|
|
|
i m using asp.net 2.0.i take a check box..when i check the check box that time checkbox_changechecked event is calling..but when i unchecked the check box then these event is not calling...now wht cani do?
|
|
|
|
|
Does it postback when you change the CheckState ??
Well, I think it should be calling, Please let us look at the code to help.
|
|
|
|
|
I do not know SharePoint other than using it to checkin/checkout files to share point and do not know about Lists, Document workspace etc.
I have a windows C# application. I need to pick files (*.doc/*.xls/*.pdf/etc) from my local machine and store them in share point site portals shared area (suppose C:\xyz). This should be done remotely and should be done by the exposed web services of share point and not using SharePoint's dlls (Microsoft. SharePoint).
I also should have the ability to store the link/path where the file was uploaded and also should be able to launch the files by clicking on the link visible to user in my application.
http://www.csharphelp.com/archives4/archive602.html
I have got some help from the above link but the example present there is not working properly because it needs some inputs and then it returns outputs. Since I am not able to understand its terms and so I am not able to pass appropriate values to it as input.
Any help will be appreciated.
Thanks in advance
Email: izharindelhi@gmail.com
Thanks And Regards,
Izhar Arman
|
|
|
|