|
add a random numder like doc_url_randomNumber.
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
But that means there are two files the exact same within the database, what I want is to have only 1 version of the url which means, one version of the file I have uploaded.
To explain a bit more, when I upload a file e.g. example.gif to a folder I automatically create a url e.g. http://localhost/folder1/example.gif
Now, if I upload a file with the exact same name to the exact same folder I want a message to be displayed saying, there is already a file with this name in this folder.
|
|
|
|
|
Just loop through that folder and compare the file names with your new filename. upload only when result is "no match found".
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
Very simple! You can handle that as below:
string filePath = Server.MapPath("~/folder1/example.gif");
if (File.Exists(filePath))
{
//show a message to the user
}
|
|
|
|
|
How would I loop through a database to check all entries in a single column before submitting?
Sorry if these are easy questions, still learning .Net but everything I learn gets stored in a safe place for future reference
Thanks for your continued help!
|
|
|
|
|
|
ViewStateUserKey = Session.SessionID.ToString();
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
Hmmm, I tried that but I still receive the same error message when I postback? The session.sessionID.ToString() produces a different value each time I postback...thus displaying the same error message.
|
|
|
|
|
Hi
I have a stored procedure that takes an XML as a parameter. The problem is that anyone could call it passing in any XML. How do i write the stored procedure so that the XML that it takes in as a parameter is based on a specific schema?
Thanks
Neil
|
|
|
|
|
you are not a new member here. What's up with the cross posting?
|
|
|
|
|
Hi All,
How can i take the dynamically created control id from client side??
Note:
dim txt as new textbox
dim plcholder as new placeholder
plcholder.control.add(txt)
now i can create dynamically text box sucessfully, But i want to take this id from Client side like as below
var txtid = document.getelementID("<%=txt.ClientID >") is it possible? or else any other way to take this id?? if anyone knows plz answer me........
kannak
|
|
|
|
|
Request.Form["ctl00$plcholder$txt"]
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
or you can also use <%= textboxid.ClientID %>
Government Dyal Singh College Lahore.
|
|
|
|
|
Hi,
Its working fine,, Thanks you...
but i used to take textbox id like
document.getelementID(ctl00$plcholder$txt)
working packka....
kannak
|
|
|
|
|
hi,
I have a user web control(MyControl.ascx) which includes an asp label:
<asp:label id="lbl" runat="server" text="Label" onclick="javascript:change()" xmlns:asp="#unknown">
change() is a javascript function which is supposed to change the label's backColor
I add this contorl(MyControl.ascx) to an aspx page 4 times, and when I click on any of the 4 labels I get only the fourth labled changed
anybody has any idea what the problem can be ?
|
|
|
|
|
Can you post the change() function?
Without seeing it I'd suggest changing the method signature to
function change(obj)
{
obj.style.background-Color = 'Red';
}
and change the onclick event to "javascript: change(this)".
Without knowing exactly what your change function is doing I can't be sure if this will work tho.
|
|
|
|
|
function change()
{
document.getElementById("<%=lbl.ClientID %>").style.backgroundCOlor = 'red';
}
|
|
|
|
|
If you're adding a user control with embedded javascript 4 times the same function (change) will be added to the page 4 times so when you click the label the browser won't know which one to call so is using the last one. You can either change the user control so that the function name is different each time (by appending the ClientID of the control possibly) or change the function so that it accepts the label object as a parameter (as in my previous example) so it won't matter which function is called.
|
|
|
|
|
hi,
I have File Upload Control inside a panel on my website.I have also set the default button for the Panel. When the control is on a browse button I want that when I click the enter key on a keyboard it should display the browse window, but I am not getting the result????
How should I go???
|
|
|
|
|
place control outside panel and check if it works...
Government Dyal Singh College Lahore.
|
|
|
|
|
I have already tried it...
but i am not getting an result..
|
|
|
|
|
You can capture enter key, and do what ever you want by using below code.
function Keycheck()
{
if (window.event.keyCode == 13)
{
alert("Enter Key");
}
}
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
Hi,
I am doing Email application, in the Email body field i wanna use HTML tags. Is there any keywords are there. Please give me some idea about this. I am using vb.net with c# language.
Thanks in advance
With Regards,
Samson
|
|
|
|
|
|
i have used rdlc report i have installed .net freamwork but iam getting error one of dependacy is missing
i need dll required for rdl
|
|
|
|