|
When pages render differently in Internet Explorer 6 and Firefox, it's almost always Firefox that renders them correctly. It's a common misconception that it is Internet Explorer that is the standard just because it's the most commonly used browser at the moment, while the truth is that there are several bugs in IE 6 that makes it render pages incorrectly.
When it comes to form fields, you will never get them to render exactly the same in different browsers and in different operating systems, as it's not defined in the standard exactly how form fields should be rendered. One method that I have had some success with is setting the width of the field to 100% and putting it inside an element with an absolute width.
---
Year happy = new Year(2007);
|
|
|
|
|
hi, thanks for reply.
I have faced Java Script Problems with FireFox.I need to Row visible and Row Visible false using Java Script.My JavaScript Segment is given below.This is working fine with IE. But this is not wroking correctly with FireFox.
Can you please tell me what is the wrong in there?
var row1 = document.getElementById(controlname);
if(row1!=null)
{
if(i<=datarows)
{
row1.style.display = 'inline';
}
else row1.style.display = 'none';
}
Thanks in advance...
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
---
Year happy = new Year(2007);
|
|
|
|
|
I want to select some criteria on on page and according to that criteria second page should be displayed.
Means there are some drop down lists on one page in which some columns of database tables are retrieved and based on that on the next page it should show that critera as well as should have provision to add some data so that it will again send back to the database in proper table.
There are five tables with one unique id and the description or name and there is one table having seven fields or column to save its unique id, five ids from the previous database tables and the description field which has to be filled after selecting criteria.
With Regards
Rajkumar C. Tambe.
M.Tech (CAD/CAM)
|
|
|
|
|
You can store information in Session or Cache.
But put there only the required information, in order to save the memory.
For more info, take a look at:
[^]
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Try taking a look at cross page posting if using framework 2 - might help
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi All.
i need the code to download an exe file using asp.net and C#.
and make the option to save and run after the exe file download.
thanks
srinandan.
|
|
|
|
|
WebClient Client = new WebClient ();<br />
Client.DownloadFile("http:\\blabla.com\file.exe", "file.exe");
To run it, use the ProcessStart class :
http://www.csharp-station.com/HowTo/ProcessStart.aspx
|
|
|
|
|
how to convert any web page like, php or asp or aspx to html page
Ganesh
|
|
|
|
|
When page gets rendered at browser or client side, just save it as desired .html file.
Regards,
Prakash Kalakoti
|
|
|
|
|
Hi,
I want to store ViewStates ViewState.Default, ViewState.BrowserOnly, ViewState.AvatarOnly, ViewState.TextOnly in the variables.
Eg.
if(this.ViewState == ViewState.TextOnly)
{
ViewState V1 = ViewState.TextOnly;
}
But I am not able to find the namespace and assembly for 'ViewState' class.
What to do in this case ?
#Abhi#
|
|
|
|
|
Hi! I am using vb.net. In this scenario I would like to fetch the price value and display it in the label.
Here is my gridview:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="AccessDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" />
<asp:BoundField DataField="Ingredients" HeaderText="Ingredients" SortExpression="Ingredients" />
<asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" DataFormatString="{0:c}" HtmlEncode="False"/>
</Columns>
</asp:GridView>
<div class="ForumSig">thanks in advance. Much appreciated.</div>
|
|
|
|
|
You will need to use the OnItemDataBound property event. I used a Datagrid, Not sure about gridview.
When you set OnItemDataBound="Somename"
In your code-behind you should code this:
Protected Sub Somename(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)<br />
<br />
Dim VariableA As Integer/Double<br />
<br />
e.Items.Cells(3[in this case]).Text = VariableA
Then do whatever you want with the variable really.. that's it
|
|
|
|
|
Dear All,
i am bit new to the dotnet world. i am making web application using asp.net ,C# (Visual studio 2005).
i have login form where login_authentication i have writted following code
setting = ConfigurationManager.ConnectionStrings["databaseconnection"];
if (setting != null)
{
// some code
try
{
//SOME CODE
rdr = cmd.ExecuteReader();
if (rdr.Read())
{
Session["member"] = username;
Session["brid"] = rdr["branchid"];
cmd1 = new SqlCommand("Sp_after_ext");
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Connection = conn;
cmd1.Parameters.Add("@user", SqlDbType.VarChar);
cmd1.Parameters["@user"].Value = username;
cmd1.Parameters.Add("@userpass", SqlDbType.VarChar);
cmd1.Parameters["@userpass"].Value = pswd;
cmd1.Parameters.Add("@brid", SqlDbType.VarChar);
cmd1.Parameters["@brid"].Value = rdr["branchid"];
cmd1.Parameters.Add("@sid", SqlDbType.VarChar);
cmd1.Parameters["@sid"].Value = Session.SessionID;
rdr.Close();
cmd1.ExecuteNonQuery();
Response.Redirect("welcome.aspx"); //Server.Transfer("welcome.aspx");
}
else
{
Login1.FailureText = "Your login attempt was not successful. Please try again.";
}
}
catch (Exception ex)
{
Response.Output.Write(ex.ToString());
}
where this line give me error Response.Redirect("welcome.aspx");
states as THreading was being aborted.
please guide me where i am going wrong
thanks
regards
imran khan
|
|
|
|
|
I suggest you just throw the exception.
Regards,
Prakash Kalakoti
|
|
|
|
|
Response.Redirect causes a ThreadAbortException to be thrown. That's how the framework knows to stop processing the page and do the redirect. If you're going to call Response.Redirect within a try/catch block, you need to explicitly catch the ThreadAbortException and rethrow it.
try
{
Response.Redirect("welcome.aspx");
}
catch (System.Threading.ThreadAbortException)
{
throw;
}
catch (Exception ex)
{
Response.Output.Write(ex.ToString());
}
Jon Sagara
I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible.
--Mr.Prakash
Blog | Site | Articles
|
|
|
|
|
Dear all
I used to use repeater controls in vs2003 with no problem
No when i'm usin the same code wth vs2005 i get errors on databinder.eval(container....
there is a problem with teh "container"
How can this be solved
And is there any sample or example for repeater control on visual studio 2005?
I would appreciate quick response
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
guess i got it
instear of container.dataitem we use container and dataitem.something
Thanx anyway
Best Regards
3ala2
|
|
|
|
|
Hi,
I am using LDAP to add users into Active directory. But even if i add same email id's for different users its accepting. but i have to avoid that. It should not accept same emailid for different users. Please help me how to validate this.
Code using to add users:
public bool AddEmployee(string Path, string employeeId, string employeeName, string newFirstName, string newLastName, string password, string designation, string mobilePhone, string officeEmail, string personalEmail, string reportTo, string newEmpStreet, string newEmpCity,string newEmpCountry, string newEmpPinCode, string dateOfJoin,string personalPhone)
{
DirectoryEntry oContainer, oNewUser;
try
{
//Bind to the parent container
oContainer = new DirectoryEntry(Path);
//add this to ads
// oNewUser = oContainer.Children.Add("CN=" + strFirstName + " " + strLastName, "user");
// oNewUser = oContainer.Children.Add("CN=" + employeeName + " " + employeeName, "user");
oNewUser = oContainer.Children.Add("CN=" + newFirstName + " " + newLastName, "user");
//SAMAccountName is required!
oNewUser.Properties["sAMAccountName"].Add(employeeName);
oNewUser.Properties["sn"].Add(newLastName);
oNewUser.Properties["givenName"].Add(newFirstName);
// oNewUser.Properties["initials"].Value = "T";
oNewUser.Properties["description"].Value = employeeId;
oNewUser.Properties["title"].Value = designation;// "sample-Operation";
oNewUser.Properties["physicalDeliveryOfficeName"].Value = "40/5802";
oNewUser.Properties["telephoneNumber"].Value = mobilePhone;// "(425)222-9999";
oNewUser.Properties["mail"].Value = officeEmail;// "vts@vts.com";
// oNewUser.Properties["Manager"].Value = reportTo;
oNewUser.Properties["mobile"].Value = personalPhone;// "";
oNewUser.Properties["streetAddress"].Value = newEmpStreet;// "4 th street";
oNewUser.Properties["postOfficeBox"].Value = newEmpStreet;// "dd-12";
oNewUser.Properties["l"].Value = newEmpCity;// "thennur";
// oNewUser.Properties["st"].Value = "trichy";
oNewUser.Properties["postalCode"].Value = newEmpPinCode;// "620017";
oNewUser.Properties["c"].Value = newEmpCountry;// "IN";
oNewUser.Properties["url"].Value = personalEmail;
oNewUser.Properties["pager"].Value = dateOfJoin;
//This will enable the account:
oNewUser.Properties["userAccountControl"].Add(544);//544
//Save the Changes
oNewUser.CommitChanges();
//Set Password
oNewUser.Invoke("SetPassword", new string[] { password });
return true;
}
Thanks in Advance,
Regards,
Prya
|
|
|
|
|
I'm using Gridview for display some student details, i need allow them to edit the data i have set Edit,Update,Cancel command in CommandField and seted the update coding for event also,but my problem is when i edit the edit button it is allow me to edit that purticular cell(that mean its not view text box in the gridview),so what should i give the coding for in RowEditing event.Pls help me to do this
Thanks.
|
|
|
|
|
where does exactly diff comes
submit button
Input button type
|
|
|
|
|
Ok, first let me try to write your question for you:
What is the difference between a button (input tag) with type="submit" and one with type="button"?
Is that what you tried to write? I'm not completely sure, as what you wrote completely lacks any grammar, so I mostly based it on the words "diff", "submit", "button", "Input" and "type" from your post.
If it was, then the answer is that the "submit" button is used to submit the form that it is placed in, while the "button" button is used to run the Javascript in it's onclick event.
---
Year happy = new Year(2007);
|
|
|
|
|
How can i open new page in new window without close the parent
MD_NADA
|
|
|
|
|
set the attribute target = _blank...
<< >>
|
|
|
|
|
Thanks for help
but it works with hyperlink
i want 2 write code under button
MD_NADA
|
|
|
|