|
What have you done so far?
|
|
|
|
|
Hey all! ive been using ASP Ajax Beta 2 now for a few days and its already driving me crazy!!!
First of all, ill be happily dragging controls onto the my design view (scriptmanager, updatepanel, progress and so on) and it all looks good...
I switch to source view and all my ajax controls have the "red line of doom" and my error list says things like:
Error 20 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site.....
Switch back to Design view and it renders ok and builds propperly! And the other problem ive noticed is if i change any properties in design view of any control, and switch back to Source view it has screwed all the markup code up! It does things like put all the code on one line and make it very difficult to work with and i have to tab it all out again!
Does anyone know why its doing this and any solutions?
|
|
|
|
|
Hi Guys,
I wrote an image httphandler that works 60% of the time.
I'm trying to render 10 images on 1 page... ex. MyImage.aspx?id=1 , MyImage.aspx?id=2 etc.
Every now and again (when I'm lucky) all 10 images load, other times only 6 or 5 or some random number of images load.
The ProcessRequest method executes the same amount of random times.
Is there some setting which I should change in the web.config to handle a few simultaneous requests??
Or whats going on??
|
|
|
|
|
Hi friends,
I have to upload and download .txt or .doc file on server.
I uploaded files properly.
But when downloading files, if file is .doc file then it get downloaded correctly,and if I download .txt file that saved .txt file containing some html code.
If I cheched it on server directly it is showing .txt without html code.
This is my code for download.
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", _
"attachment; filename=""" & filename & """")
Response.Flush()
Response.WriteFile(filepath)
Why this is so.
Please help me.........thanks in advance.
Ragards,
Nagraj
|
|
|
|
|
this is my problem and its solution
http://www.iisfaq.com/?View=A538
BUT STILL IT IS NOT SOLVED !!! I'M HAVING IIS 5.1
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
I have solved it
Unable to create a Web application on a LAN that uses a Proxy server
When developing on a local LAN that uses a proxy or firewall to access the Internet, you may need to set your connection options to "bypass proxy for local addresses."
To set your connection option to bypass proxy for local addresses
1. In the Tools menu, select Options.
2. Under the Projects node, select Web Settings.
3. Click Connection Settings in the Options dialog box.
4. In the Internet Properties dialog box, select the Connections tab and click LAN Settings.
5. In the LAN Settings dialog box, select Bypass proxy server for local addresses.
6. Click OK to close all open dialog boxes.
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
Can any one plz tell me how to use the Reportviewer control in asp.net ..it vl be very usefull for me..
the exact requirement is how to get the result of a query into ReportViewer
Thanks in advance for ur helps.....
Bino
|
|
|
|
|
i have a aspx page with many record and a button, while user click the button, a SaveAS window will pop up and ask user when to save the file (save the record to a text file) ? how to make this SaveAs window pop up ?
Best regards,
Chee ken
|
|
|
|
|
hi,
If you want save as window use------
Response.AddHeader("content-disposition","attachment;filename=resume.doc");
Regards,
Pavan
|
|
|
|
|
Thanks. How is the step to save this resume.doc? inside the save function , which step do first ? call this Response.AddHeader("content-disposition","attachment;filename=resume.doc"); first ? then only write the data into the resume.doc? and where to put the temporary file before user can save the file ? if you don't understand what i am saying , can u provide the step for me how to this save file function ? thanks !!
Best regards,
Chee ken
|
|
|
|
|
Hi
I have started using the GridView and SqlDataSource in ASP.NET 2.0. It makes connecting and databinding very easy. But is it not moving away from the n-tier approach, where the presentation layer does not connect directly with the datalayer?
Kobus
|
|
|
|
|
Hi.
Yes, of course it does.
---
b { font-weight: normal; }
|
|
|
|
|
I have two textbox for adding two values and i need to display in 3rd textbox without any button click event.
if i click on 3rd textbox after entering the values in 1,2 textbox,is it give the result in 3rd textbox.If so how?other wise how to that without any button click event/
Like a+b=c
txtbox1=a
txtbox2=b
txtbox3=c
Give an idea
kissy
|
|
|
|
|
you can either do it all client side and use the onblur event on A and B to call a function that checks both A an B for values and if they have values fills C with their sum or you can do it clientside using the autopostback="true" and then using the OnTextChanged event to make the same operations.
|
|
|
|
|
OnTextChnaged event i need to again ButtonClick event should be fallowed.I cant understand how to use exactly.Give me some example.
thanks in advance
kissy
|
|
|
|
|
you can use javscript function when you are setting focus to your third textbox.
<asp:textbox .... onFocus="javascript:alert('hello');>
use your javascript function insteadof alert();
|
|
|
|
|
I dont have idea how to write javascript for this type of problem.Give me with an example so that i can try for that.
Thanks in advance
kissy
|
|
|
|
|
|
write :
<script>
function addTwoTextbox
{
document.getElementById("Textbox3").value =
document.getElementById("Textbox1").value + document.getElementById("Textbox2").value;
}
</script>
and call addTwoTextbox() fn where you declared textbox like :
<asp:textbox id=... runat=... onFocus="javascript:addTwoTextbox();">
|
|
|
|
|
hello
I'm Using SQL Server 2000 for backend with my Asp.net Application.
I want to get the last inserted Id in webpage any one have some suggestion Reagarding this issue.
Dotnet
|
|
|
|
|
use SCOPE_IDENTITY()
here is more on the subject
http://aspnet.4guysfromrolla.com/articles/062905-1.aspx
|
|
|
|
|
Hi everyone,
i am using one RAD datepicker control in one of the step of asp:wizard control.
My problem is that when i am running the page with step where i have put RAD control ,it works fine, but as i am running the previous step and then if i move on to next step ,one javascript error is fired saying "RAD Datepicker control is undefined".
although other RAD control like DateInput control is working in both the situation.
my asp:wizard control is on .ascx User control.
Any solutions ?
Amit Champaneri
|
|
|
|
|
hi
guys i am implementing the customized http handler for a particular page, there are some controls on that page ,when the request for that particular page is made then that particular http handler is invoked but the controls on that page are not visible, this also happens the same if there is no code in process request method of httphandler class, can any one let me know wht's the problem,thankx in advance.
|
|
|
|
|
hello every One,
i m using an control in my webForm.aspx page it is working fine in mozila but not working in Internet Explorer. Following code i m using:
control code :
--------------------------
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="testControl.ascx.vb" Inherits="my.testControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<P>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="TextBox1" ValidationExpression="^([a-zA-Z0-9_ ,]{1,120})$"></asp:RegularExpressionValidator></P>
<P>
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="TextBox2" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></P>
<P> </P>
<P>
<asp:Button id="submit" runat="server" Text="Button"></asp:Button></P>
-------------------------------------------------------------------------------
this is my aspx page where control is called:
<%@ Page %>
<%@ Register TagPrefix="My" TagName="Test" Src="~\allControls\testControl.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Application</title>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Language" content="English">
<meta name="Distribution" content="Global">
<meta name="Robots" content="All">
<link href=styles.css rel=stylesheet type=text/css>
</head>
<body
<form runat=server>
<my:test id="myTest" runat="server"></my:test>
</form>
</body>
</html>
------------------------------------------------------------------------
this is the click event of the sumit(button)
Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click
If Page.IsValid Then
Dim strConn As String = Application("dbStrConn")
Dim MyConn_member As New SqlConnection(strConn)
MyConn_member.Open()
'transaction
Dim MyTrans As SqlTransaction = MyConn_member.BeginTransaction
Try
'Specify the first statement to run...
Dim MySql_member As String = "insert into test ([name],[email])values(@name,@email)"
'Create the SqlCommand object, specifying the transaction through
Dim cmd_member As New SqlCommand(MySql_member, MyConn_member, MyTrans)
cmd_member.Parameters.Add(New SqlParameter("@name", TextBox1.Text))
cmd_member.Parameters.Add(New SqlParameter("@email", TextBox2.Text))
cmd_member.ExecuteNonQuery()
MyTrans.Commit()
Catch ex As Exception
'Something went wrong, so rollback the transaction
MyTrans.Rollback()
MyConn_member.Close()
Throw 'Bubble up the exception
Finally
'Finally, close the connection
MyConn_member.Close()
End Try
End If
End Sub
this click event is working in mozila but not working in Internet Explorer.
thanx
-- modified at 3:30 Friday 17th November, 2006
rahul saini
|
|
|
|
|
Use the "Ignore HTML" option when you are posting HTML code.
---
b { font-weight: normal; }
|
|
|
|