|
|
i want to save html file to server
by asp.net 1.1,
|
|
|
|
|
ashok kr yadav wrote: i want to save html file to server
by asp.net 1.1,
Uploading file ? Or creating a new HTML file ?
|
|
|
|
|
__doPostBack('PageClick',''); --Java Script Code
it's working with page(without master page)
it's not working with page(with master page)
PageClick is a input control Name
You get the best out of others when you give the best of yourself.
|
|
|
|
|
you override oninit method and initialize all the datagrid events for the page in that method.
hope this helps!!!
Sathy
|
|
|
|
|
Hi,
I have an image control which renders the image perfectly on IE, a mehod SetParams is called to set the properties for control to start function. This works well in IE but throws error firefox stating 'SetParams is not a funtion'.
Can any body help me out, i need to fix this as soon as possible.
Here is the sample code
function ViewDocumentImage()
{
var strURL = "http://localhost//customer_data//images//Assessor_2081210_1.tif";
var nPageCount = 1;
var strDescription = "";
alert( "Inside View Document IMage");
if(window.ActiveXObject){
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription);
}else{
alert(" Inside FireFox");
alert( strURL);
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription)
document.getElementById('objImageViewer').SetParams(strURL, nPageCount, strDescription);
}
}
<object id="objImageViewer" classid="CLSID:EAC4DA12-B6EA-4A51-B455-1B506043C718" style="width:80%;height:80%">
<embed />
src="params.ini"
border="0"
width="500"
height="250"
name="objImageViewer"
TYPE = "application/x-fobs-activex-plugin"
/>
Click Here
Please respond its very urgent for me
Regards
Trinadh
|
|
|
|
|
|
The Knowledge wrote: Can anybody tell me wht extention this page having
http://en.wikipedia.org/wiki/Sanjay_Dutt[^]
PHP. They are using mod_rewrite to rewrite the URL.
The Knowledge wrote: Can a client create web pages oneself whenever he/she wants........
What do you mean ? Creating pages in ASP.NET ?
|
|
|
|
|
What are good tools to use in .NET toe re-write an URL? I have a database with 1000s of products.
modified on Wednesday, February 06, 2008 7:53:49 AM
|
|
|
|
|
|
The Knowledge wrote: Can a client create web pages oneself whenever he/she wants........
No man you can't do like this,
If you want to edit or make some changes at client side then go for javascript using javascript you can do it , but i think you can't create a new web page at client side is what i think
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
If you allow users or at least an administrator to create dynamic pages when you are using portal technics. Basically, you have 1 physical page (Default.aspx). The requested page is provided through a query string such as pageID=2. This means that you request the page with ID 2.
When you load the Default.aspx page, you get the specific page information from a data source and build dynamic the page.
You then can make use of URL rewriting to make it look like you have multiple physical pages, but behind the scenes it is only 1 page with a lot of query strings
I tried to write an article that on my blog that explains this.
Part1[^]
Part2[^]
Part3 (re writing of the code using the Provider Model)[^]
"Dream as if you'll live forever, live as if you'll die today" (James Dean)
|
|
|
|
|
Hi
I have a cs file in my App_Code folder which contains lots of common methods i use throughout my webpage.
Previously I was testing my webpage locally on my machine and the common methods worked
However now I have uploaded them to a web server I get the following message:
The name 'Common_methods' does not exist in the current context
If any1 has any clues let us know!!
cheers
|
|
|
|
|
If ur making a website then be sure that the folder that contain aspx pages that must have a app_code folder with proper .cs file and if u r with web application then no need .dll will contain it ..........................if its running with .net running server
then check out deployment process ............................
hi
|
|
|
|
|
Hi
thanks for replying!!
its a .net application running on a windows server
I have a folder called app_code with a file in called common_methods.cs
I reference it by doing the following in one of my files
Common_methods.SetFocus(Login1.FindControl("UserName"), this);
but it cant find common_methods
why would this be?
|
|
|
|
|
ADD common_methods.cs in your project through solution explorer........after placing in app_code ................
then in any one of ur file ................make object
common_methods obj = new common_methods();
string var = obj.functionname(passparameter,....,.....);
check this out this is the way i know and it works well
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
Hi
thanks for the reply again
Im not really sure what you mean by the above code
why am I making it an object?
Ive got Common_methods.SetFocus(Login1.FindControl("UserName"), this);
it works fine locally but when moved to a web server it doesnt
do i need to reference it in another way?
cheers
|
|
|
|
|
<%@ Page Language="C#" %><br />
<html><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
firstname:<asp:TextBox ID="TextBox1" runat="server"/><br />
<br /><br />
lastname:<asp:TextBox ID="TextBox2" runat="server"/><br />
<br /><br />
<asp:Button ID="Button1" runat="server" Text="Submit" /><br />
<br /><br /><br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" /> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="returnByName" TypeName="myService.Service"><br />
<SelectParameters><br />
<asp:ControlParameter ControlID="TextBox1" Name="firstName" PropertyName="Text" Type="String" /><br />
<asp:ControlParameter ControlID="TextBox2" Name="lastName" PropertyName="Text" Type="String" /><br />
</SelectParameters><br />
</asp:ObjectDataSource><br />
<br /><br />
</div><br />
</form><br />
</body><br />
</html>
I want that when the user clicks the button
the gridview should be filtered by the parameter values in textbox1 & 2.
Shimi
|
|
|
|
|
hi there,
i am creating a project on asp.net. can anyone help me how can i create pop up menus using javascript file.when the mouse is placed on the tabs the pop up menus must pop up.what else can we add in a pop up menu ie a image or hyper link etc.
Thanking you in advance.
Dilip
|
|
|
|
|
hai,
In my page i am having multi select list boxes.I retrieved data from sqlserver to these listboxes..Here my problem is,if i want to see the selected item ,i should scroll down and then only i can see that..Is there any solution to set focus on that selected items without scrolling?...
thanks,
ida
|
|
|
|
|
Hi all,
I am using this code to open a new window on the lostfocus of a text box
<input class="SaveHistory" onkeypress="window.event.returnValue = BacoValidateDate(window.event.keycode)"
id="txtStartdate" onkeydown="SelectStartDate_keydown" onBlur="SelectStartDate_Blur"
title="F2 - Calendar" type="text" maxLength="10" onchange="window.InvalidFlag_StartDate.innerHTML=Empty"
size="10" name="txtStartdate" runat="server"><font size="1"> (<%= strDateStringValue%>)</font>
<script language="VBS">
And
<script language="VBS">
Sub SelectStartDate_clicked
Dim curDate, calurl, d, curDate2
curDate = Baco.txtStartDate.Value
calUrl = "..\..\Calendar.asp"
If Len(curDate) > 0 Then calUrl = calUrl & "?Date=" & curDate
d = window.showModalDialog(calUrl, ,"dialogHeight:320px;dialogwidth:315px")
If Not IsEmpty(d) Then
Baco.txtStartDate.Value = d
InvalidFlag_StartDate.innerHTML = Empty
End If
End Sub
Sub SelectStartDate_keydown
If window.event.keycode=113 Then
SelectStartDate_clicked
window.event.returnValue = False
End If
End Sub
Sub SelectStartDate_Blur
If <%=Request.QueryString("Action")%> = 4 Then
window.location="Mypage.aspx?Res_Id=<%=Request.QueryString("Res_Id")%>&Cycle=" & Baco.txtCycle.value & "&SchCode=<%=Request.QueryString("SchCode")%>&Action=4&StartDate=" & Baco.txtStartDate.Value & "&sCode=" & Baco.txtSchcode.value
'Window.location="solWorkSchedule.aspx"
'window.alert("hai")
End If
End Sub
</script>
But I getting the javascript error msg as "Object Doesnot support this method in the blur event". Can some one help
Dana
|
|
|
|
|
No Problem I have solved it. I have placed some Javascript codings in the Head Part Of the HTML. I removed it to the Bottom of the page(though it should not be done)
Dana
|
|
|
|
|
I have website with 20 pages. One user have the access to all pages and i want to give access for another user for only 10 pages..
What concept i have to use here?
G. Satish
|
|
|
|
|
Could you explain it properly ?
What i understood is that depending on the user type,he would be able to access different pages.
First thing you need to differentiate the users like,
Admin,user..etc
While login Check the Credentials if user is Admin or User
now how to implement this ?...
For that you should have some workflow to your web.
Create a base class that extends UI page and impliment the logic in this base class
now your every page must extends this base class instead of System.Web.UI.Page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
But, i need this at authentication concept. Any authentiction concept is used to give access to the users...
G. Satish
|
|
|
|