|
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; }
|
|
|
|
|
Hi,
Can someone tell me how to put one page in frame from
event in another frame.
There is a frameset on the page with 2 frames (top
bottom) I have a paging done in top frame and when i click
on that link some aspx page should be displayed in bottom
frame.
Any suggestions on how it can be done?
Thanks and Regards
Anu
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Hi,
You are using two frames... suppose one's name is frame1 and another is frame2.... then in the frame1 you take a link and use target=frame2 as a link attribute. Then the result display at frame2.
|
|
|
|
|
i use .net 2005,when i drag and drop 1 item, and add event into it, i cant see any code of design and delegate of it, but in .net 2003 i easy to find it, any body can help ?
|
|
|
|
|
While we connected server application with all the clients if any of the client was disconnected with the server application how can we identify the disconnected client. The details of disconnected client must be saved in eigther xml or in database.
Prashant
|
|
|
|
|
How are you connecting the clients to the server?
---
b { font-weight: normal; }
|
|
|
|
|
Everytime that a client login, you must to write the coduser inside a database table called users_connect for example, and create a proccess who read the table every minute for example.
already know whos connect, when the client disconnect you write a time stamp asocciated to the coduser inside the datebase table.
keep Learning and you never will be out of date...
|
|
|
|
|
hi guys! i´m getting crazy about a form with no checkall function,instead u have to check one box at a time.
Question: is there a way to create a code so that everytime this form loads it automatically checks all its checkboxes (note: this forms loads from its server and is in a.s.p) so i can´t change its code coz i´m an end user not the admin.
please excuse me if i told any nonsenese coz i know almost nothing about programming.
tks in advance.
|
|
|
|
|
Not unless you create your own browser.
---
b { font-weight: normal; }
|
|
|
|