|
how can I view external websites on my website in a panel or something similar to the browser control on WinForm?
|
|
|
|
|
there is this jQuery script called mootools.
|
|
|
|
|
I think this can easily be done using iFrame instead of Panel.
|
|
|
|
|
you can use iFrame and ser src attribute to web-page you wish to see.
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
How autocomplete extender used in asp .net?For eg:in a textbox,when we type 'A' then the items start with 'A' will come in textbox from database?How it will appear?
|
|
|
|
|
|
|
Hi all ,
i have one xml file,
format is:
<?xml version="1.0" encoding="utf-8" ?>
<catalog>
<timezone>
<text>sudheer</text>
<value>30</value>
<text>radha</text>
<value>50</value>
<text>mayur</text>
<value>55</value>
</timezone>
</catalog>
i am binding like this in .cs file:
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("~/App_Data/timezoneval.xml"));
XmlNodeList _name = doc.GetElementsByTagName("text");
so i am passing that _name as input parameter to my method
public string getname(string _name)
{
//
}
how to get value from xml using that text.
if anybody knows please let me know
Regards
Rama
|
|
|
|
|
try with
nameNode.NextSibling or else go with xmlreader
|
|
|
|
|
You can use XPath to extract the node(s) you are looking for
doc.SelectNodes("timezone[text=" + _name + "]");
(May not be 100% correct, but you get the idea)
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
_name is not a string, it is an XmlNodeList. That shouldn't even compile.
Loop through the NodeList and for each node get the InnerText. You can find an example on the first page of google search results for "XmlNodeList".
Also, you might want to revise your XML schema. If you want each text element to be associated with the value element following it they should be encapsulated in another element. Order is not always guaranteed in XML parsing.
|
|
|
|
|
|
Hi,
I add an Scripmannager in my webform in, order to use Ajax CalenderExtender.
I drag the calender extender and then drop in my text box. but nothing happend; noreover when I drag it and drop in source code page I face with this error :
the operation couldn't be completed.invalid formatetc structure
Do you have any suggestion?
if I wanna use drop down calender what is your idea?
thanks for your help.
|
|
|
|
|
|
You need to code with more than just your mouse.
I actually recommend not using your mouse at all for adding controls to a page. You end up with really poorly named controls. If you add controls by typing them in with source view, you get nice underlining to tell you when something is wrong.
|
|
|
|
|
Hello,
in this page I read something about master page;http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx
A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application
As we know, policy page is the same in all the project. as above link, can I create policy page with master page;
Could you please, come one explain more about master page.(a real using of it)
thanks
|
|
|
|
|
Yes Master page can be used to go a consistent look and feel to the entire application. One can include thing some application header and footer.So you can have the policy data or Policy page link on footer.
For details about master page have a look to the following link
Click here
Click here2
|
|
|
|
|
Master pages are typically used to provide things like the navigation links, the stylesheet and all of the other things that people used to used frames to do. All of the things that should be the same on every page in your site should go in the master page.
Other things you can add to the master page are references to common javascript files and libraries like jQuery, or google analytics. You can use your master page to implement the OnError event so that any unhandled errors on any page can be caught at the top level and logged, redirected etc.
|
|
|
|
|
Hello,
Firstly, I am sorry if it is dumb question.as I am practicing, in SQL server 2008 I create a database.then in VS2008, I right click in the node of Server Explorer and add the database to the project.
1) My question is, do I need to add the address in Web.config;
2) Do I have to add the database file in App_Data folder?
thanks for your help, in advance.
|
|
|
|
|
|
cld u please give me some link
|
|
|
|
|
with which language are you trying to connect the database ? are you using sql server ?
|
|
|
|
|
Before I forget, using vb 2005 and running IIS on my XP Pro pc...
Ok I'm working on a new intranet site for my company and running into a problem with the calendar. I have some info in a SQL Server 2008 Express database and I'm using that to "list" what days a location is working late. The problem is when going from December to January.
objConnection.OpenConnection()
'sql = "Select * From brewerLate Where month = 10"
sql = "Select * From brewerLate Where (month) = '" & intCurMonth & "'"
da = New SqlDataAdapter(sql, objConnection.cnn)
da.Fill(ds, "brewerLate")
sql = "Select * From portlandLate Where (month) = '" & intCurMonth & "'"
da = New SqlDataAdapter(sql, objConnection.cnn)
da.Fill(ds, "portlandLate")
objConnection.CloseConnection()
'Dim brewer As String = "October 01,October 15,October 29"
brewer = ds.Tables("brewerLate").Rows(0).Item(1)
days = brewer.Split(","c)
For Each strDay In days
If e.Day.Date = strDay Then
e.Cell.Controls.Add(New LiteralControl("<p>Brewer Working!</p>"))
e.Cell.BorderColor = Drawing.Color.Black
e.Cell.BorderWidth = 1
e.Cell.BorderStyle = BorderStyle.Solid
e.Cell.BackColor = Drawing.Color.LightCyan
End If
Next
intCurrentMonth is retreived from the Calendar1_VisibleMonthChanged event and for the initial load (Dim intCurMonth As Integer = Now.Month). All the data in the database is in the same format, the only difference is the month name. I was able to step through the code and it is retreiving the right data, For example strDay would equal January 07 but it will blow right past it.
This is in Calendar1_DayRender, almost forgot to mention that...
Thanks in advance!
modified on Thursday, October 7, 2010 2:45 PM
|
|
|
|
|
Hi All, I am winform developer for my entire 2 and half years of my working life. Now I want to do some web development. I don't know where to start.
any help will be helful.
thanks.
modified on Friday, October 8, 2010 8:16 AM
|
|
|
|
|
You could start by reading the forum guidelines at the top of this list. "New" is not appropriate or informative subject line. Probably why you have been ignored until now.
As for ASP.NET, how did you start with WinForms?
I know the language. I've read a book. - _Madmatt
|
|
|
|