|
Hi
Do you want to add text boxes at runtime?
If yes
dim MyTxtBox as new TextBox
set watever properties you want using "MyTextBox."
Add MyTextBox to panel,placeholder or to ASP Tables or any other.
eg:
panel1.controls.add(MyTextBox)
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
I'm having problem in setting up the time-interval for my splash screen for a web application. How can i set this, to ensure the splash screen shows up even if application is loaded up faster than expected?
Jazz Morgan
|
|
|
|
|
If you have a form you call a splash screen, how are you closing it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how to play the flash file in iframe? can it be done? i already can upload the file to a specific folder, but it is not show in the iframe which is let the user to select...can anybody help? thanks.
|
|
|
|
|
Hi,
It is possible to play flash file in iframe.
give
src="path of the flash file"
|
|
|
|
|
I am just learning asp.net and I am doing some work for my company who has several asp.net sites already built. The particular site I am having trouble with has some codebehind files it is using. My problem is that I cannot find the aspx.vb files it is referring to. I realize that dll files are created and the site is actually using those files, but I want to look at the code it is using. Where are these files usually kept?
Thanks for the help.
Jim
|
|
|
|
|
The files will be contained in the solution which created the DLL - if you don't have access to them - download REFLECTOR and open the DLL files with that - you can at least see what the code behind looks like even if you don't have access to the original files.
Mark.
|
|
|
|
|
They in the project that was used to create the website. Usually they are stored in some version control system, such Visual SouceSafe, or could possibly be on the developers machine (very bad practice). Ask the person(s) who created the site.
only two letters away from being an asset
|
|
|
|
|
Hi all!
Heres my problem - i have a gridview bound (via sqldatasource) to a simple table... The table consists of 2 columns, an ID column (auto increment primary key) and a NText column...
On the webpage im displaying the gridview and a simple button. When the user clicks the button a new row is created and inserted... For testing purposes, the NText field just contains a random GUID. The gridview is then rebound and it appears in the list, great, that works fine..... however, when the user clicks the "add random" button i want the row they just created to be selected!!...
so far i've got the ID of the last inserted using the Insert Indentity methodology and returning the ID field. The problem is dont seem to be able to set the SelectedKey or SelectedValue on the datagrid, all i can change is the index!!
What am i missing here??
Cheers!
Will
|
|
|
|
|
Perhaps you should try using the selectedIndex property. Both of the SelectedDataKey and SelectedValue are readonly setting them will not affect which line is selected.
Hope that helps.
Ben
|
|
|
|
|
Hello all,
I'm trying to develop a website that uses a mixed authentication system. In other words, I need to have multiple types of users. Some users will authenticate against the database (external users), while others will need to authenticate against Active Directory. Is there a clean way to do this?
Will
|
|
|
|
|
Implementing forms authentication and either using AD or database as appropriate would be the simplest way to go. You could also create a custom HTTPModule that used but that is a little more difficult.
only two letters away from being an asset
|
|
|
|
|
my problem is it always say the "StartAsyncCall" object is undefine..this following is my code. I wonder what i did wrong. I have a button in the aspx page, when click, it will call StartAsuncCall function
[Default.aspx]
[Default.aspx.cs]
public partial class _Default : CodeProject.ScriptPage, ICallbackEventHandler
{
private string text = "Create";
private string xmlString = null;
public string js;
protected void Page_Load(object sender, EventArgs e)
{
js = Page.ClientScript.GetCallbackEventReference(this, "arg", "CallBackReturnFunction", "ctx", true);
StringBuilder newFunction = new StringBuilder();
newFunction.Append("function StartAsyncCall(arg,ctx) { js }");
//Register
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "NewMethod", newFunction.ToString(), true);
}
public void RaiseCallbackEvent(string eventArgument)
{
XMLString = eventArgument;
}
public string GetCallbackResult()
{
return null;
}
public string Text
{
get { return text; }
set { text = value; }
}
public string XMLString
{
get { return xmlString; }
set { xmlString = value; }
}
[my javascipt file]
function XmlWriter()
{
return "testing";
}
function CallBackReturnFunction(arg,context)
{
alert("Got it :");
}
|
|
|
|
|
Here is link to a page in a book Ajax with ASP.NET[^] that seems to cover what you are doing.
FYI though, it is very rude to state urgent in your subject line. If you don't understand why read this[^].
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
I follow that book to do the coding, however, when I try to run it, it said "WebForm_DoCallback()" undefine...I really don't know where did I make mistake. so I wonder can you give me some suggestion?
|
|
|
|
|
The undefined error is javascript, Check to make sure you have defined WebForm_DoCallback() in your javascript code.
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
Don't put URGENT in your title. It is very annoying and will more likely be ignored by the ones who can answer the question.
only two letters away from being an asset
|
|
|
|
|
is there anything like asp.net compilation before deploying the asp.net pages to the server? so that my source codes will not be edited or visible to anybody.
Pls how do i do that.
More so my asp.net makes use of sql server 2005 database. How do i get my database to the webserver?
thanks
t.aransiola
|
|
|
|
|
In the menu Build/Build Solution compiles your codebehind pages into a dll in the bin folder.
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
is it only the dll i will upload to teh web server?
What about the Database? I am using sqlserver 2005.
t.aransiola
|
|
|
|
|
Copy over the bin folder, it will have all of your assemblies in it.
Here is an article covering asp.net deployment. [^]
Regarding the Database, not something I've handled, might try posting on the sql message forum.
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
As to what files you need to copy, most everything but NOT the .cs, .suo, .sln, .proj, and .resx files
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
Actually I believe that with VS 2005 you must create a deployment project in order for the DLL to be built otherwise it does runtime compiling and utilizes a temporary DLL with all of the code and returns the ASPX page without.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Hi all,
I want to use the functionality of using stars in a datagrid as implemented by Gmail. The user can mark the message just by clicking the star and the settings are remembered even if its a client side script. Is it AJAX??? How can i implement this functionality???
|
|
|
|
|
How do you close an IE Window from server side asp.net script?
I have a page that opens a new window using javascript. The page that is display is an asp.net page. The page has a button that when clicked runs the asp.net onclick event server side.
After validating the data and all is well, I would like to close the window. My solution is to redirect to a page that on the body element has the onload event run the javascript command to close the window. This seems alittle messy and was wondering if there is a better way?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|