|
It means you have a web config that sets this key, below your main directory. You need to define this directory as an application of it's own, or remove the entry.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hai,
in my application asp.net(vb.net)
if ds.tables(0).rows.count>0 then
'do something
end if
i am getting error table 0 cant be found ,what would be the problem
plz reply
thanks and regards,
surendra
surendra
|
|
|
|
|
Gee - could it be that your dataset is empty ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
i will check it out now
surendra
|
|
|
|
|
If it doesn't exist, you have an empty dataset.
|
|
|
|
|
Hi,
I got a textbox on .aspx file under Ok button , talking id from textbox and getting specific information. But If I change the value of textbox then the reportviewer cant change the information, its remain same information. I have put some toggle breakpoint to see the code is working or not. Inside the code data is changing but reportviewer cant change data.
Waiting For Your Help
Sarfarj Ahmed
|
|
|
|
|
Could anyone help me on how i can write an ASp.Net to access data from a web page(someone else web page). I want to access the page and read the data into my own asp.net page.
The web page data is expected in Table format.
Preferably,if there can be a conversion of the webpage data to another format for my page to use.
thank u in advance
t.aransiola
|
|
|
|
|
You can use a WebRequest or a WebClient object to request the page.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi.
I'm a new member here.
My English is not very well, but I hope it´s good enough to make you understand me.
Well...
I'm with a litlle problems here.
I registered a "Click" event
handler for the dynamicly added control. However, when I
click the control , its event handler isn't called. But If I add and register the event handler operation in the Page_load, it works well.
Here is the code:
protected void CreateTable()
{
HtmlTable tablegen = new HtmlTable();
HtmlTableRow rowgen = new HtmlTableRow();
for (int i = 0; i <= 2; i++)
{
HtmlTableCell cellgen = new HtmlTableCell();
if (i == 0)
{
cellgen.Width = "50px";
cellgen.Align = "center";
cellgen.InnerText = "......"
}
else if(i == 1)
{
cellgen.Width = "50px";
cellgen.Align = "center";
cellgen.InnerText = ".....";
}
else if(i == 2)
{
cellgen.Width = "50px";
cellgen.Align = "center";
ImageButton imgButton = new ImageButton();
imgButton.ImageUrl = "Test.gif";
imgButton.ToolTip = "Test";
imgButton.Click +=
new ImageClickEventHandler(imgButton_Click);
cellgen.Controls.Add(imgButton);
}
rowgen.Cells.Add(cellgen);
}
tablegen.Rows.Add(rowgen);
I call this method from a click event of a button.
I need to create controls, in this case ImageButtons, that are
dynamically loaded, and they must be allocated in the third cell of a table in every row. The curios is that they don't call the event handler when created out of the Page_Load.
Somebody can help me ?
Maximilian Thanks
|
|
|
|
|
If you add controls dynamically, they need to be recreated before the Page_Load event ( usually in LoadViewState ), or the viewstate won't be restored for the control in time for the event to have a control to attach itself to, so it will be lost.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Set the event in the page_init
<br />
protected void Page_Init(object sender, EventArgs e)<br />
{<br />
CreateTable();<br />
}<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
this.Init += new EventHandler(Page_Init);<br />
}<br />
|
|
|
|
|
I have a Gridview connected to a Access table. One of the columns in the Gridview displays address, city, and state. How can I display this information on three separate lines within the cell for each row?
Our end goal here is to create a reality listing page that displays a small picture of each house along with multi line descriptions. I'm trying to use a Gridview for this. Is this the best way?
I want the page to look like this:
+ + + + + 123 Smith Ave
+ + + + + Maumee, OH
+ + + + + Price: 200,000
+ + + + +
+ + + + + 5422 Conant
+ + + + + Maumee, OH
+ + + + + Price: 168,000
+ + + + +
|
|
|
|
|
Insert <br/> tags to create line breaks
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
|
Thanks for the info and asp link. Great article!
|
|
|
|
|
Please tell me is their anyway ? I can use the textbox value as a HyperLink value on Report or ReportViewer.
Sarfaraj AHMED
|
|
|
|
|
Yeah I have done that.
Off the top of my head do a for loop for each gridview row in the grid view. Then use row.findcontrol() to get your check box and other values to update the database.
BTW, I got burned doing this because we had a group of users using the same application and some people would keep it open all day and save at the end of the day effectively overwriting what others had done. Be sure to add record locking of some sort if you are going to users update a group of records at once.
|
|
|
|
|
I work on VS 2005
How do i use the HtmlWriter class to add html tags to my web page using csharp code?
I have only a vague idea about this class.
Can you give me an example and show how i can do that?
Thanks in advance.
Regards
|
|
|
|
|
Response.Write("<tags>"Quality Software since 1983!" http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.
|
|
|
|
|
Thanks Jasmine..
I wanted to know how to make use of the HtmlTextWriter class for doing it.
(sorry it wasn't HtmlWriter!)
There are other classes also that are used like the HtmlTextWriterAttribute , HtmlTextWriterTag and HtmlTextWriterStyle classes.
Can you help me use these classes?
Thankyou.
Regards
|
|
|
|
|
Well, I don't see why you want to do things the hard way, but I suppose you must have a reason. There's good sample code for HtmlTextWriter in the MSDN documentation. Took me two clicks to find it.
Why are you using this?
|
|
|
|
|
I happen to know about the MSDN sample.
Just wanted to more about those classes, in case anybody has used it, can help me.
No question of going the harder way or anything.
Regards
|
|
|
|
|
Hi All,
I have a problem with autocomplete in ASP.net v2
the autocomplete dailog displayed in the buttom of the page and not directly below the textbox
|
|
|
|
|
I am in the process of learning ASP .net or ASP. I need to build a
schedule on this schedule I need to be able to block out certain times
for holiday/lunch, make it so that people run off the Active Directory
when they go to it, and make it so that it does a log of who adds and
schedules patients, able to add patient name and phone along with why
they are there for. Any suggestions please let me know. Thanks! This is for internal purposes only not for the web. Internal web server. please help. Thanks!
ps. slot for each Doctor.
|
|
|
|