hi i have no error. pls tell me what's problem. its imp for me gayatri
Gayatri
hi i have no error. pls tell me what's problem. its imp for me gayatri
Gayatri
hi yes i took input file control. but where i will see that uploaded file. my code is--
if (File1.PostedFile != null) //Checking for valid file
{
// Since the PostedFile.FileNameFileName gives the entire path we use Substring function to rip of the filename alone.
string StrFileName = File1.PostedFile.FileName.Substring(File1.PostedFile.FileName.LastIndexOf("\\") + 1);
string StrFileType = File1.PostedFile.ContentType;
int IntFileSize = File1.PostedFile.ContentLength;
//Checking for the length of the file. If length is 0 then file is not uploaded.
if (IntFileSize <= 0)
Response.Write("<font color='Red' size='2'>Uploading of file " + StrFileName + " failed </font>");
else
{
File1.PostedFile.SaveAs(Server.MapPath(".\\" + StrFileName));
Messagebox.Show("Your file was uploaded successfully");
//Response.Write("<font color='green' size='2'>Your file " + StrFileName + " of type " + StrFileType + " and size " + IntFileSize.ToString() + " bytes was uploaded successfully</font>");
}
}
Gayatri
hi i want upload file on server. and how to download it. gayatri
Gayatri
hi i am using IE 7 browser. i am using javascript for popup window. this is worked on Microsoft internet explorer. but same code not worked on IE7. pls help me my code function openForm() { window.open("NewScore.aspx","Title","status=no,resize=no,toolbar=no,scrollbars=no,width=700px,height=580px,maximize=no,always on top=100 left=400"); } and in codebehind---- btnAdd.Attributes.Add("OnClick", "openForm()"); so pls help me.
Gayatri
hi i took one grid view and it have checkbox. i want when i click on chekbox or checked checkbox that time that rows feilds are display on textbox. regards gayatri
Gayatri
In my Project there were 3 master page. one for login second for Menu third for All WebForms like NewScore. i want Login name in all masterpages. and when login is valid then second menu page will be open. when we click on menu page then webform open that webform i want login name. pls help me its urgent.
Gayatri
its not work. the type name 'aspx' does not exist in the type 'NewScore' this type error come.
Gayatri
how to pass the values form one webform to another webform. using querystring. i am using asp.net with c#
Gayatri
hello sir sir i am using master page in my web application. i am using asp.net with c#. in my webform i have some btn,text label control which is I want to use on master page. how is it possible. pls tell me details code. gayatri
Gayatri
hello i am using master form. and so how to write webform name on internet exlorer title bar. pls help me. gayatri
Gayatri
hello sir i am using master page. then my aspx page is in contentplaceholder. then how to write title. my code this code i write in score.aspx.cs and i used master page for this page. string strMasterPageName = Master.MasterPageFile; this.Master.Page.Title = "Score"; thks
Gayatri
hello how to add form name. where our project name display like Project name Microsoft internet exlorer. ex. chanakya Microsoft internet exlorer in that line how to add form name. thks
Gayatri
hello pls tell me how to hide menu bar in asp.net 2.0 with c#
Gayatri
master page code <@> Chanakya
now error is Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Gayatri
sir i want form tag in my webform. in that web form i used masterpage. so when i take form tag that time i gave error. so i ask you where i put it. when i put it in content.that time i have error. i want to use .js file. the code --- // JScript File function valForm() { if(!valid_required(document.form1.txtFirstName.value)) { alert("First name is required field.") return false } return true } this i want to use in my webform's html source code my code=----- <@> CodeFile="Client.aspx.cs" Inherits="Client" Title="Untitled Page" %>
this code i have run time error--A page can have only one server-side Form tag. so pls help me.
Gayatri
sir please tell me a solution.
Gayatri
hello sir i am using master page in webapplication. and i used c# language. i have one .js file. i want to use it in my application. i want to add form tag because i want to write this code
where i add form tag.bec i used masterpage. pls help me its really urgent. gayatri
Gayatri
hello sir i am using master page in webapplication. and i used c# language. i have one .js file. i want to use it in my application. i want to add form tag because i want to write this code
runat="server"> where i add form tag.bec i used masterpage. pls help me its really urgent. gayatri
Gayatri
it have error. Error 3 Only Content controls are allowed directly in a content page that contains Content controls.
Gayatri
hello sir sir i am using MasterPage in my webform. and i want to use javascript in that webform. then where i write javascript. bec their is no tag. pls help me. gayatri
Gayatri