|
Hi People. I am currently facing a problem to allow a href on a Databind item. For example, The TextInput stated below will retrieve all the links posted by a user. For instance, if a user posted www.youtube.com or www.friendster.com, it will allow them to click on the Label and proceed to the link in a new window. Could someone advise me how to work on it?
Code
<a href = ""> <asp:Label ID="Label2" runat="server" Text='<%# Bind("TextInput") %>'></asp:Label></a><br /><br />
Learning
|
|
|
|
|
|
What is it with people too dumb to ask in the ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Erm. I am using C# for this particular project. Isn't it?
Sorry if i misintepret.
And just to remind you, you're kinda rude over here. Although you have contributed to this forum alot, it doesn't mean you can use the word dumb .
Learning
|
|
|
|
|
The issue is that your problem is more "web coding" related than it is "c#" related.
I don't do any ASP coding in C#, just WinForms, so I'll ignore such questions. People who know about web stuff are likely to read the ASP forum, and thus are far more likely to give you a useful answer
|
|
|
|
|
Well, considering your question had nothing to do with C#, but everything to do with ASP.NET, wouldn't it have been better to post in a more appropriate forum??
|
|
|
|
|
Hi,
How to get the values in a existing cookie into a windows application.Please reply me if you know solution.
Note: Request.cookie is not working in windows application
Thank you
|
|
|
|
|
You need to find out the location where cookies are stored(depends on each browser). Now read it as a normal file.
|
|
|
|
|
Hi Fellows
now let me ask you another doubt,I hope i'll get solved it quick.
1.i am working(programming)with visual studio 2005.
2.how to change the deployment aspects according to my likeness.
3.In Detail: How to change the place of bitmap and buttons in installation windows.
4.how to change progressbar style/color in installation windows.
Please give me any link that desribs abt Visual studiol deployment specifying the graphical modules
|
|
|
|
|
Your post has nothing to do with C#. Try Visual Studio[^] discussion board.
|
|
|
|
|
How i cam hide menu dynamically
|
|
|
|
|
You didn't notice that we have an ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
HI
here is my code i take 1 txt,1datagride,2 button,1 file dialog box .
on 1 button i open filedialog box select 1 excel file and fetch string in to txt box,and try to open this excel file in datagride view
WHEN I RUN MY PROGRAM A RUN TIME EXCEPTION THROWEN BY OLEDB IE,
Cannot update. Database or object is read-only.
error occures at connection.Open();
my excel file close when program running.
PLZ HELP
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Data.OleDb;
namespace filedialog
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
private void button2_Click(object sender, EventArgs e)
{
string filename = @"textBox1.Text";
String connectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + filename + ";" +
"Extended Properties=Excel 8.0;";
OleDbConnection connection = new OleDbConnection(connectionString);
connection.Open();
//String connectionString="Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source="+filename +";"+"Extended Properties=Excel 8.0;";
OleDbCommand selectCommand = new OleDbCommand("SELECT * FROM [sheet1$]", connection);
OleDbDataAdapter dataAdapter = new OleDbDataAdapter();
dataAdapter.SelectCommand = selectCommand;
DataSet dataSet = new DataSet();
dataAdapter.Fill(dataSet);
// double sum = 0.0;
// We'll make some assumptions for brevity of the code.
System.Data.DataTable dataTable = dataSet.Tables[0];
dataGridView1.DataSource = dataSet.Tables[0];
MessageBox.Show(dataGridView1.RowCount.ToString());
connection.Close();
//openFileDialog1.ShowDialog();
//openFileDialog1.ShowDialog();
// return sum;
// directorySearcher1.FindAll();
}
private void button3_Click(object sender, EventArgs e)
{
OpenFileDialog FD = new OpenFileDialog();
FD .Filter="Excel|*.xls";
if (FD.ShowDialog() == DialogResult.OK)
{
textBox1.Text = " " + FD.FileName;
}
}
}
}
|
|
|
|
|
Are you trying to open the file that you are providing from Text Box??
if you are doing so then,
string filename = @"textBox1.Text";
this statement is wrong you should not precede with @ here,which means take the followed string as it is! In your case filename is takes as "textBox1.Text" which is not the file which you want to access.......
so change your line by removing @ symbol and qoutes.....
so your this line should be like this
string filename = textBox1.Text;
which will give you the file name provided in the testbox
hope this will work for you............
Happy coding!!!!!!
Deep
|
|
|
|
|
|
Hi,
The MMC SnapIn I'm developing has configuration data that has to be committed by the user.
So if the user has made some changes, but not yet committed the changes, how can you catch the fact that the MMC console is trying to exit, and allow the user the option to stop it exiting so they can commit the changes?
The SnapInBase class has an OnShutdown override method, but in the docs for this, it says that you must not bring up a modal dialog while it is being called. It's also not clear how to abort the exit from within this call.
Any help would be appreciated.
Peter
|
|
|
|
|
Hi all
I want to change ipdaddress on pda, which connected activesync
ip address "192.168.55.101" gateway "192.168.55.100"
I use IOCTL_NDIS_GET_ADAPTER_NAMES and IOCTL_NDIS_GET_ADAPTER_BINDINGS
but that name is "PPTP"
how to change ipaddress at activesync ?
|
|
|
|
|
Hi
I am building a windows Form application where the Forms names are stored in a data table as text , The name of the Form selected to run is retrieved from the data table , so it will be a string type , how can I call the related form knowing its name as a string only ?
Any Ideas ?
|
|
|
|
|
Via Reflection. Search the articles here for "plug-ins" and "add-ons" and "dynamic loading" and such.
|
|
|
|
|
use reflection,you can find the guideline about using this from msdn or google,it's quite easy..
|
|
|
|
|
I have an array with 4 elements in each record of 8 records, the first element is a string, the other 3 are int. How do I pull the 3 elements, i.e., 98, 97, 98 from the record, then add them together? Thanks
|
|
|
|
|
You could use a LINQ query to that for you. Without knowing your actual data structure it would be difficult to provide a sample query.
|
|
|
|
|
create a class
public class array_of_4element()
{
public array_of_4element(string s, params int[] i)
{
str = s;
num.CopyTo(i,0);
}
string str;
int[] num = new int[3];
public int sum()
{
return num[0]+num[1]+num[2];
}
}
so your
onetreeup wrote: an array with 4 elements in each record of 8 records
would be done in
<code>List<array_of_4element> 8_records = new List<array_of_4element>(8);
array_of_4element arr = new array_of_4element("text1", 98,97,98);
8_records.Add(arr);
8_records[0].sum();
</code>
8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}
modified on Monday, March 23, 2009 12:24 AM
|
|
|
|
|
Has anyone written the code to draw two dimensional pictures to display Nautilus spirals? That would save me a lot of time if I don't have to re-invent it for myself! ( Or am I just lazy!!)
Wej Parry
|
|
|
|
|
Is a Nautilus spiral where someone hammers nails into a board and runs string so it makes a curve ? If so, that's pretty trivial, about 10 minutes work. Where are you stuck ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|