|
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
|
|
|
|
|
I have the following code:
IWshRuntimeLibrary.WshNetwork myWSHNet;<br />
myWSHNet=new IWshRuntimeLibrary.WshNetworkClass();<br />
myWSHNet.AddWindowsPrinterConnection(@"\\ZEUS\HEAD013", "", "");<br />
myWSHNet.SetDefaultPrinter(@"\\ZEUS\HEAD013");<br />
I get the WSH Network object fine, and the new printer is created without any problems. What doesn't work is setting it to be the default printer. Anyone any ideas why?
|
|
|
|
|
Hello,
Does anybody know of some good (and maybe quite simple ) tutorials or examples of using ASP.NET 2.0 to make features from social networking sites like MySpace or Facebook? Things like adding/approving friends, joining groups, etc.
If anyone does, I will be very grateful!
Jack.
|
|
|
|
|
Any body tell me how to connect to the Active directory of a domain and authenticate a user from the asp.net webapplication.pls let me know .its an urgent requirement for me.
with thanks®ards
Madhu
|
|
|
|
|
|
i want to add first column and second column values to third column as a result(100+100=200) using gridview (asp.net using vb.net)and it should be updated into datatable.
can any one help me how come is possible with code example.
tahanks
S.A.Rahman
|
|
|
|
|
Hi,
Add Three template fields(for example label) to the grid view.
Bound the first 2 template fields to your table fields.
Then add "RowDataBound" Event handler to the grid view.
Add following code snippet into your RowDataBound event handler
Dim gr As GridViewRow = e.Row
If (gr.DataItemIndex <> -1) Then 'Not a header cell
Dim cell1 As Label = gr.FindControl("Label1") 'First cell's label ID
Dim cell2 As Label = gr.FindControl("Label2") 'Second cell's label ID
Dim cell3 As Label = gr.FindControl("Label3") 'third cell's label ID, here store result
'You want to convert the "cell1.Text, cell2.Text" to integer for addition
cell3.Text = cell1.Text + cell2.Text 'change this to your expression
End If
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi
I am getting the system time.I check for a particular condition and depending upon that condition i should display time in either 12 hour format or 24 hour format along with PM or AM.
Can anybody tell me how to get time in 12 hour format and 24 hour format?
It's very urgent.
Thanks,
Riz
|
|
|
|
|
Are you looking for something like this:
dateTime.ToString("yyyy/MM/dd HH:mm:ss")
Ben
|
|
|
|
|
Do u know any code which can give me the time in either 12 hour format or 24 hour format?
It's really urgent.
|
|
|
|