|
Assalam-o-Alaikum dear Naveed thanks for reply me yaar. please give me some idea about link or some code to do this....thanxxxxx....
Feroze
|
|
|
|
|
Feroze its v.easy and simple
for example "Download my CV"
Naveed Kamboh
|
|
|
|
|
You can stream the file right?
|
|
|
|
|
Hi,
I want to share this problem. I have a datagrid that will help me Insert data into sql database. So I made a button On my form so that when I press the button a new row on datagrid should be created and I could be able to insert data. But with this code below I've failed could someone help me and tell me where I'm going wrong:
private void Page_Load(object sender, System.EventArgs e)
{
if (! IsPostBack)
{
Fill();
Bind();
}
}
DataTable table = new DataTable();
private void Fill()
{
SqlDataAdapter adapter = new SqlDataAdapter("select * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
dgis.DataSource = table;
dgis.DataBind();
}
private void InsertEmpty()
{
table.Rows.InsertAt(table.NewRow(), 0);
}
private void bttnew_Click(object sender, System.EventArgs e)
{
// inserting
dgis.EditItemIndex = 0;
// modify text
EditCommandColumn ecc = (EditCommandColumn) dgis.Columns[6];
ecc.UpdateText = "Update";
// fill table, insert empty row, bind to datagrid
Fill();
InsertEmpty();
Bind();
}
private void dgis_ItemCommand(object source,System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
// stop editing
dgis.EditItemIndex = -1;
switch (e.CommandName)
{
case "Insert":
break;
case "Update":
break;
case "Cancel":
break;
case "Edit":
// begin editing
EditCommandColumn ecc = (EditCommandColumn) dgis.Columns[6];
ecc.UpdateText = "Insert";
dgis.EditItemIndex = e.Item.ItemIndex;
break;
}
// fill and bind
Fill();
//InsertEmpty();
Bind();
}
Thanks.
|
|
|
|
|
A popup window on a form does not move when I scroll up or down the web page. How can I correct this so that the popup window moves with the rest of the form when scrolling.
|
|
|
|
|
|
after i made my website and aspx pages
and i upload the website
i recive this error
Server Error in '/' Application.
-----------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
----------------------------------------------------------------------------
so can any one solve this problem
or tell me what shall i do ?
thanks all
bye
Ahmed EL Gendy
|
|
|
|
|
It seems that there is an error in your code. To view this error from the server, make sure the custom error attribute is set to Off in your web.config file like,
<customErrors mode="Off"/>
thanks,
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Hi, I've recently discovered the beauty of serialization and my problem is that I want to access the parent member set by the serialization and get the value, this upon creation of course. I'm using three classes, the Parent-class, the Children-class and the ChildCollection-class. Now, I want the childrens created to have the same last name as the parent. When I try to use base.value it's null/empty. Anyone have any suggestions on how to solve this?
Parent class
<br />
[Serializable()]<br />
public class Parent<br />
{<br />
private string _strName;<br />
private string _strLastName;<br />
private ChildCollection m_Children;<br />
<br />
[XmlAttribute("name")]<br />
public string Name<br />
{<br />
get { return _strName; }<br />
set { _strName = value; }<br />
}<br />
<br />
[XmlAttribute("lastName")]<br />
public string LastName<br />
{<br />
get { return _strLastName; }<br />
set { _strLastName= value; }<br />
}<br />
<br />
public Parent()<br />
{<br />
m_Children = new ChildCollection();<br />
}<br />
}
The ChildCollection class
<br />
public class ChildCollection : CollectionBase<br />
{<br />
public Child this[int index]<br />
{<br />
get { return (Child)this.List[index]; }<br />
set { this.List[index] = value; }<br />
}<br />
<br />
public void Add(Child child)<br />
{<br />
this.List.Add(child);<br />
}<br />
<br />
public void Add(string name, string lastName)<br />
{<br />
this.Add(new Child(name, lastname));<br />
}<br />
The Child class
<br />
[Serializable()]<br />
public class Child : Parent<br />
{<br />
private string _strLastName;<br />
<br />
[XmlAttribute("name")]<br />
public new string Name<br />
{<br />
get { return _strName; }<br />
set { _strName = value; }<br />
}<br />
<br />
[XmlAttribute("lastName")]<br />
public new string LastName<br />
{<br />
get { return _strLastName; }<br />
set { _strLastName = base.value; }<br />
}<br />
<br />
public Child() {}<br />
}<br />
|
|
|
|
|
What you are doing doesn't really make sense. You don't have a public property for your Childred collection on your Parent class. You are defining Name and Lastname again on your child class when they are already defined in your Parent class that you are inherting from. If you are trying to serialize your parent class the child collection would be null since there is no public property.
I guess I would take a step back and think through what you are trying to accomplish with this design. Normally your base class would have public properties that would be shared with all children. Then the children would introduce new properties.
Now if your Parent class was in interface instead, then you would have to implement all of the public properties.
Anyway, I am not sure if any of that is helpful.
Ben
|
|
|
|
|
It was just to be clear with things, I do know I do not have to declare the same properties again, and the private variables should be protected. But you do understand the concept? Or else, don't bother answer. Well the real class have other properties, this is just and examble!
|
|
|
|
|
hi friends
Now i am developing one site.i need to set alert frequency,it use to send the
message through mail(here option is daily,weekly,monthly) to client..
if u have any doubt plz refer this link:
http://www.99acres.com[^]
how can i achieve this.plz send me code and related links;
regards
saravanan
|
|
|
|
|
You may need a Windows service to poll and send an email.
|
|
|
|
|
Hello
After log in to the application the textbox to disply the name of the person log in the application(automatically).And after selecting the date from the calender the label to display trhe week number(automatically).on the next web page
BoipeloMothusi
|
|
|
|
|
Was there a question in there or is it just me?
|
|
|
|
|
Yes, but you have to use your decoder ring from Ovaltine.
|
|
|
|
|
After log in to the system the textbox on the next webpage to display the name of the person log on to the system
OlgaM
|
|
|
|
|
Create a DTO UserProfile which contains getter and setter properties for all user related information
In the login page, Create an instance of UserProfile and set all needed fileds and store it session(that helps to use userprofile through out the application.
Write a user control to show username and date. and use it in all the pages
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
Sir/madam,
I was trying to run the website and I got the following error.
Unable to connect to the Visual Studio Local Host web Server.
Please help.
Thanks and Regards
Pankaj
|
|
|
|
|
Where you trying to run the website through Visual Studio? Sounds like the built in web server isn't installed/configured/running or something.
|
|
|
|
|
Hi all,
I want to design an application to handle a certification exam for some people using asp.net 2.0.First i do created a login page/register to get the information of the candidate going to appear the exam.After validateing the credentials i want to let the exam seeker to apper a page something like
http://www.4futureengineers.com/tests/csharpetest.htm[^][^]
i want to keep both prev and next buttons,a button to bookmark the question to refer latter and a submit button to provide the result......same as Microsoft certification exams does.
i want to expose single question at a time.
when i am clicking next i want to store the answer...and update it in the database....Plz send approprete code or URLsto do.
|
|
|
|
|
Hi, I have the following problem;
I want to set a background-image for my masterpage. If i do the following, the background-image shows upp as it should, no problem here.
But if I take out the style tag and put it in my css file, it doesnt work..
website
|
- Images (folder)
--- bg_tile.gif
|
- Styles (folder)
--- masterpagelayout.css
|
- Masterpage.master
-----CSS file------
body
{
background-image:url('Images\bg_tile.gif');
background-repeat:repeat;
margin: 10px;
padding: 0;
}
------Code---------
<title>Untitled Page
Anyone have any idea why? I have tried changing the url in the css file without any luck. But if I for example add background-color: #330033 to the body tag in the css file it shows on the page..
|
|
|
|
|
The url in the style sheet is relative to the location of the style sheet file, not the page where it's used.
Also, a virtual path uses slash, not backslash.
background-image: url(../Images/bg_tile.gif);
---
single minded; short sighted; long gone;
|
|
|
|
|
Beat me to it
|
|
|
|
|
The CSS url() statement is relative to the CSS file, not the page referencing it. So you would in fact want:
background-image:url('../Images/bg_tile.gif');
|
|
|
|