|
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'
|
|
|
|
|
You can register a startup script which will use javascript to close the window.
If you are using .net 2.0 and C# this code would work:
Type cstype = this.GetType();
StringBuilder tmpSB = new StringBuilder();
tmpSB.Append("<script type=text/javascript>");
tmpSB.Append("window.close();");
tmpSB.Append("</script>");
ClientScript.RegisterClientScriptBlock(cstype, "close", tmpSB.ToString());
If you are using .net 1.1 the call is a little different.
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben, I'll give it ago
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'
|
|
|
|
|
You can't clode a browser window from server side code, so you have to return a page that contains a Javascript that does it.
You can get rid of the redirect by directly returning a page. Example:
Response.Write("<html><head></head><body><script type=\"text/javascript\">window.close();</script></body></html>");<br />
Response.End();
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi
I want to create a popup menu dynamically. The items of the popup will be the folders which i have created in my application.
For e.g. if i have 4 folders namely Folder1, Folder2, Folder3, Folder4
then under the folder option i should have 4 menu items namely Folder1, Folder2, Folder3, Folder4.These should be the popup items.
i.e. I have to create a popup menu by quering the database. The name of the folders are stored in the database.
Does anyone have any idea of how to go about in doing this?
Waiting for ur reply
Thanks
Riz
|
|
|
|
|
Hello,
Am new to Ajax and I had a requirement to develop a progress bar control in asp.net with Ajax
which can use call back functionallity to get the status of loading of page and show it in the UI
any help in this context is welcomed
would be very much help ful a worked out sample is available
Thanks
Krishna
|
|
|
|