|
This is insane. Why would a page, when you load it, read an excel sheet and store it in a DB ? You'd only have to do this once, right ?
Your code is a nightmare on many levels. What are you trying to do ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Now I am developing a website in asp.net with visual basic
my databases in MS SQL-Server 2005
my server is WINDOW S2003 R2
my web.confg file setting in authorization is
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
my website open in client system
ask the username and password (server password)
supply the username as "administrator" and password="xyz"
then the site is open
now we want is..
the site open without asking for username and password in the client system
please give me a solution for above problem is rectified
thanking you in advance
abglorie
|
|
|
|
|
What is the Authentication Settings in Virtual Directory ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
In IIS ,under project properties check the anonymous access checkbox option .... so that it will never ask the username and password when you open in client system
S Kumar
|
|
|
|
|
already enabled anonymous access checkbox
my website description is XYZ
IP address is (all unassigned)
TCP port is 150
|
|
|
|
|
i have three fields ....
i want something like this
image image image image
name name name name
i m using datalist
wat this showing like this
image
name
image
name
....
....
which control suit for my requirement.....
|
|
|
|
|
can you put some code of it or you must better view the properties of it
and by the way it provies you to change the column position.
|
|
|
|
|
i am using this in my source
<asp:DataList ID="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
<ItemTemplate>
<tr>
<td>
<asp:Image ID="Image1" ImageUrl='<%#"~/Images/EmpOM/"+Eval("TE_VC50_EmpImg") %>' runat="server" Width="132" Height="160"/>
<tr>
<td>
<%# Eval("TE_VC50_EmpName")%>
</td>
</tr>
<tr>
<td>
<%# Eval("TE_VC50_EmpDesignation")%>
</td>
</tr>
</td>
</tr>
</ItemTemplate>
</asp:DataList><br />
wat should i change
|
|
|
|
|
A data list won't do that, you need to use a repeater to try to build a table that conforms to your data layout.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
actually i m binding dat from database and i have three fields... in rep data also come like that.. wat i want in one row..
|
|
|
|
|
|
OK, so do what I said.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
As CG suggest, you can go for Repeater, or you can also use XSL.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi
i want to write regular expression for two decimal places,
Exact Like 1.23 or 3.21 only
Thanks
|
|
|
|
|
|
Sorry it's not wrking
Thanks
|
|
|
|
|
Hi
This one should work,
^\d+.\d{2}$
Thanks
|
|
|
|
|
Hi all,
I have datagrid dg1, paging is true and at a time it is displaying 10 records.I want to export this to excel.Whatever the data is displaying the datagrid at a time that will only export to excel.I dont want to display all the data from database.Is there any solutions .
I am using C#.
Thanks is advance
|
|
|
|
|
Just write a CSV, Excel will open that fine.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Here is the coding for to display the gridview items to the excel when the button is clicked.
Using System.IO;
Using System.Text;
Button1_Click()
{
String attachment="attachment;filename=Gridview.xls";
Response.ClearContent();
Response.AddHeader("content-disposition",attachment);
Response.ContentType="application/ms-excel";
StringWriter sWriter=new StringWriter();
HtmlTextWriter htwWriter=new HtmlTextWriter(sWriter);
Gridview1.RenderControl(htWriter);
Response.Write(sWriter.ToString());
Response.End();
}
public override void VerifyRenderingInServerForm(Control control)
{
}
|
|
|
|
|
hi.
on my project i need to carry the value of datagrid to next page.
the datagrid i have is edited by me and i want the value of link to next page
(the datagrid contains a linklabel and a imagebutton)
i tried it with sessions but dont know about fecthing value of selected row
|
|
|
|
|
If you want to carry a value to the page you're linking to, just put it on the query string. Don't abuse the session object.
And try posting code when you want help, so we can see what you're trying to do, and where it's broken.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
maybe i dont put the clear message
well i have a datagrid view extracting values name(linklabel) and imagename(imagebutton) from database
the paging is enabled i just want the value of linklabel to get fecthed for use in next page.
|
|
|
|
|
OK, I think you need to drop your tools, buy a BASIC ASP.NET book and READ it. You need to do EXACTLY what I said. Your link to the next page should put whatever you want to pass, on the URL. If you want to pass lots of things, you're better off passing an Id and reading the whole record from the database, in the page.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|