|
can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.
|
|
|
|
|
you have too many ways and this is so easy to config.
one way is you can set a query string and get it at showpage.aspx and set a table at the page_load.
second way is multiview and linq datasource, if you use entity framework, your job is too easy.
|
|
|
|
|
hi.
i have several xml file and want use them from one page.is it possible?
below code dont work
string id = Request.QueryString["id"];
XmlTextReader myXmlReader = new XmlTextReader(Server.MapPath("xml/newsGuestbook"+id+".xml"));
|
|
|
|
|
Is that link you want to access many xml files from one page? If so, yes. In the code you provided please check if the file exists Server.MapPath("xml/newsGuestbook"+id+".xml")
It can happen because, the xml files will not be copied to your bin folder unless you specify it to copy explicitly. You can make it to
1. Copy if newer
2. Copy always
Please try this and check if the file is accessible.
|
|
|
|
|
why google chrome not showing text boxes and its data when i click the print button...
and one more thing css style is not applied when i click the print button ..
please check the following code...
Here iam just try to printing the div content only....
Default.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title> </title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="PrintDivContent.js">
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="PrintableArea" >
<table class="style1">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="UserName"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</div>
<input id="Button2" type="button" onclick="PrintContent('PrintableArea')" value="Print" />
</form>
</body>
</html>
JavaScript file (PrintDivContent.js)
function PrintContent(divName) {
var DocumentContainer = document.getElementById(divName);
var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');
WindowObject.document.writeln(DocumentContainer.innerHTML);
WindowObject.document.close();
WindowObject.focus();
WindowObject.print();
WindowObject.close();
}
Css Style sheet file (StyleSheet.css)
body {
}
.txtboxborder
{
border-width: 1px;
border-style: solid;
background-color: #FFCCCC;
}
Waiting for your reply..
|
|
|
|
|
I am using a checkbox and a checkbox list in one of my web pages.
The UI is like
1) Initial UI
Color -- > CheckBox
Red ---> Checkboxlist items
Green
Blue
Yellow
2) Complete selection
The entire checkbox list can be selected / unselected on checking header checkbox
3) Partial selection
When a item in the checkbox list is selected, the total number of selections is checked and to indicate a partial selection, the background color of the header check box is changed to a dark grey. This is to achieve something similar to three state checkbox.
AutoPostBack property is set to true for all the controls.
In a client server environment, there is a time delay and if we make two continuous selections in the checkbox list, an update of the header control is done for the first selection and by the time UI is refreshed, the second selection is gone.
I also implemented the above one using JavaScript but then also the behavior is same.
How can it be done in a better way?
|
|
|
|
|
You can use JQuery selectable radio button list to achieve this...
|
|
|
|
|
Isuse: best setup deployment method and considering IIS
I have some changes to setup/deploy in a 2010 C#,net webforms application. My problem is the web application was written by a contract shop that went out of business. There are no install/deployment instructions that I can find in my small company. In fact I am the only 'programmer' in my small company. Most of my .net expereince is using Visual Basic.net in 2005 & 2008 for windows and console applications.
Thus since this is my first web setup\deployment project and working with IIS, I am wondering if you have suggestions that I should follow? If so can you tell me and/or point me to a reference that I can use?
If not, i will just go to the Microsoft website and follow what I consider is the 'best' url to use.
|
|
|
|
|
It's a bit of an open question. You can deploy a web application by using the 'Publish' option. I would start with that - pretty simple to use.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
What is the publish option? is that part of one click deployment? can you give me more directions on what the 'publish' option is?
|
|
|
|
|
I told my firend i could help him with his assignment and i already did the register and login pages but i have to do a search with data list and a cart which images will be link to the product. pleas any body that can help me i will be very thankful. the submission day is wednesday
|
|
|
|
|
I'm afraid we don't do homework and neither should you: how is your friend going to learn anything if you complete his work for him?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
This is not homework. I am doing this at a real job where I get paid. I just got stuck with this job. I am a data analyst by choice.
I am looking for another data analyst job until then I am a programmer.
Thus can you help me out?
What is the publish option? is that part of one click deployment?
|
|
|
|
|
I think you may have replied to the wrong message. Right click on the project and select 'Publish'. Follow the instructions - fairly easy.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hi,
The user is using winxp SP3.The user need to have windows authentication.I had checked the web.config file set to Windows.When user access the url the user is taken to form authentication.He need to login with windows authentication.The DB server is
SQL Server is 2008R2, SP1 -- 10.50.2500.0 SP1 Enterprise Edition (64-bit)
They have a Windows 2008 Web Server that has Impact Pro Reporting System installed. That comes with IIS 7 installed. Their workstations are Windows XP and the IE is version 8.
Need help.......
Thanks.
Guhananth.S
|
|
|
|
|
So what do you need help with?
Failure is not an option; it's the default selection.
|
|
|
|
|
Hi,
Any setting to be changed in workstation,win xp.I had resetting the browser option,that did not work out.
On the Webserver,the windows authentication works.But from winxp workstation windows authentication did not work.
Any idea to make windows authentication work on winxp?
Thanks
Guhananth.S
|
|
|
|
|
For it to work, the user will have to be logged onto the same domain as the web server is on. Windows Authentication means that the user has already authenticated on their machine and now is trying to access a network resource (your IIS site). If it is still not working check your web.config and share your authentication section. You may be denying certain users.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Your client computer must belong to the same Windows Domain as does your server.
|
|
|
|
|
Any reason you told us what database is being used?
Because that makes me think you are trying to pass the user's credentials to the database via the web server and that just isn't going to work without some reconfiguring your network to allow it.
In the meantime, check the settings on your web server. Is anything else enabled along with Windows Authentication? If there is, disable it.
|
|
|
|
|
I have two calenderExteners in my aspx page. Named startDate and EndDate and I have one comboBox. If I select Date from calender startDate e.g 20 march 2012 and then in Combox box I select 30 days then my second celander EndDate should show date 20 april 2012 automatically(i.e adding 30 days in statrDate calender's selected date and show in EndDate calender). How can I do that.
Thanks
|
|
|
|
|
i am devloping a project mysql query browser in dotnet with c #.....
i have a datagridview in my form ..
i have to create a table ...
there are many columns like col name ,datatype ,not null,primary key and one col is auto increment .....in auto increment i am using checkbox col ....so i want that when user clicks in one rows aut inc col all other row auto inc col should be uncheck like it happens in mysql query browser but it is not happening in my projcet ....
please if possible provide the code thanx in advance
|
|
|
|
|
Not very clear what you are trying to do and why it has gone wrong. There are plenty of examples of using check boxes in grids - you need to do a porper search on Google. You talk about an auto-increment column: what do you mean by this?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
ok i will ....auto increment coloumn means only one row cell(auto inc col) will be check at a time ......like group radio button works
|
|
|
|
|
Well it looks like from your post that you know you need to supply code for this. Have you written any code to uncheck the other boxes?
If so, it would be benifical to see it to help further. Also let us know if you are getting any type of error messages, or what exactly is happening when you click the auto inc column.
|
|
|
|