|
you are using vs2008? and you are trying to import this file. is it so?
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
yes i am using vs 2008 but at the last i solved it,the problem is in
IDE of vs 2008
Its because when i import database in vs 2005 server explorer database then without any problem database easily imported.
Now sir i just want to know what was wrong with vs 2008.
Kindly do replay because it may be happen again.
Sajjad ALi
Junior web developer
110 Solutions
|
|
|
|
|
Import the Database in Visual Studio?
IN Visual Studio we connect the Sql Server Database and do not import it.
dont get confused.
|
|
|
|
|
can any one guide me that i want to fill two dropdown lists country and cities relevant to that.....
my requirement is to select country and its cities must be filled automatically... before that i used to do it by filling country and cities in database using primary and foreign key relationship....
is there any api or webservice available for that????
umerumerumer
modified on Thursday, December 4, 2008 6:25 AM
|
|
|
|
|
Use Update panels in Ajax so that the States will get automatically updated once you select the countries.
For code reference, please refere to this sites:
1) Experts Exchange
2)MSDN
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Other then what meeram has suggested. You can do it through js as well.
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Hello there,
I've created UserControl which is used as a menu. It is populated dynamically and has two levels.
The weird thing is though that second level controls' click event is fired but it the code executed in it seems to have no effect at all:
public void SubCourseRoundMenuClick(object a, CommandEventArgs e)
{
pnlCourseEvents.Visible = false;
pnlCourseSubEvents.Style["display"] = "block";
}
Both properties changes to their old values when observed in any event fired after SubCourseRoundMenuClick.
All menu items and subitems are populated at the same order on every postback. EnableViewState=false on UserControl (though i've tried other way round as well).
For suspect ViewState is playing tricks on me.
This issue is really driving me bonkers so any advice or guidance would be much appreciated.
Best Regards,
Dave
|
|
|
|
|
Do you modify these values in page_prerender, which fires afterwards ?
I am not sure how viewstate factors into it. Or are you saying that the control resets to it's default state on the next postback ? Perhaps you need to store something in the viewstate to tell you the state of this control ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian,
What I'm saying is that anything I change in click event handler of UserControl doesn't seem to work. I've even tried adding private variable
private int test; . I've changed it in click event handler and it's back to 0 in any event fired afterwards. Bear in mind that it's the same postback!!!. And that is very very weird
Regards,
Dave
|
|
|
|
|
what is the purpose of repeater control in asp.net
|
|
|
|
|
|
The Repeater control displays data items in a repeating list. Similar to DataList, the content and layout of list items in Repeater is defined using templates.
Unlike DataList, Repeater has no built-in layout or styles.You must explicitly declare all HTML layout, formatting, and style tags within the templates of the control.
i hope below link will give enough info
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/repeater.aspx[^]
|
|
|
|
|
madan raj wrote: repeater control
Is it not, to some extent at least, implicit what a repeater control would do?
|
|
|
|
|
hi,
i am working on a asp.net project ,in which there is a need to upload a dovcument ,which will be converted to image.
the problem is i need to select a particular word or sentence to annotate.what i want to know is ,how can select a particluar area in a image , and identify the text.
regards
navin
|
|
|
|
|
Navinchandran wrote: i want to know is ,how can select a particluar area in a image , and identify the text.
Here I give you sample code.
This helps you.
Bitmap b = new Bitmap(500, 100);
Graphics g = Graphics.FromImage((System.Drawing.Image)b);
//g.FillRegion(Brushes.Red,
string message = "This is the string to highlight a word in.";
// Declare the word to highlight.
string searchWord = "string";
// Create a CharacterRange array with the searchWord
// location and length.
CharacterRange[] ranges =
new CharacterRange[]{new CharacterRange
(message.IndexOf(searchWord), searchWord.Length)};
// Construct a StringFormat object.
StringFormat stringFormat1 = new StringFormat();
// Set the ranges on the StringFormat object.
stringFormat1.SetMeasurableCharacterRanges(ranges);
// Declare the font to write the message in.
Font largeFont = new Font(FontFamily.GenericSansSerif, 16.0F,
GraphicsUnit.Pixel);
// Construct a new Rectangle.
Rectangle displayRectangle = new Rectangle(20, 20, 200, 100);
// Convert the Rectangle to a RectangleF.
RectangleF displayRectangleF = (RectangleF)displayRectangle;
// Get the Region to highlight by calling the
// MeasureCharacterRanges method.
Region[] charRegion = g.MeasureCharacterRanges(message,
largeFont, displayRectangleF, stringFormat1);
// Draw the message string on the form.
g.DrawString(message, largeFont, Brushes.Blue,
displayRectangleF);
// Fill in the region using a semi-transparent color.
g.FillRegion(new SolidBrush(Color.FromArgb(50, Color.Fuchsia)),
charRegion[0]);
b.Save(Server.MapPath("MyImage.png"), System.Drawing.Imaging.ImageFormat.Png);
Regard
IMrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I'm not sure what the other guy was saying, but you need an OCR library to find text in an image. Then you need to work out where that text is ( which is a different thing ) so you can highlight it. A far from trivial task.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I want that my query automatically runs in google and the output list of all the sites on first page get added to my sql database.
i am able to run my query get the output but dont know how to pull it into database.
Monu
|
|
|
|
|
Hi,
how does the output from google look? Do you have the concrete URL's or the content of the search results?
Somewhere in the code is the point where you have the result of the google query. There you have to implement a database access: Open the connection, building an insert command, executing the command and last but not least closing the connection.
Regards
Sebastian
|
|
|
|
|
Hi,
Actually i got data entered into a text box.
Send that data to google using a hyperlink to google.
In that fashion i got the second page from google ,its the normal search page you got when u submit ur query in google .
|
|
|
|
|
Hi,
I think you have to get the google page by sending an HTTP-Request programmatically. Then you are able to retrieve the response within your code. There you could extract all URLs and store them into a database.
|
|
|
|
|
|
Hi,
it is easy to get the client IP-Address with
<br />
Request.ServerVariables["REMOTE_ADDR"]<br />
If the client pc is a part of your intranet than you could try to use DNS to resolve the computer name from the IP. If this is not the case, you could try to accomplish this by using JavaScript, to get the name on the client side and then send this information to your server.
Hope this helps.
Regards
Sebastian
|
|
|
|
|
it gives ip address not the computer name please check..anyways thanks for response..
umerumerumer
|
|
|
|
|
I don't think so that you will able to retreive computer name. YoU will just get the IP Address.
|
|
|
|
|
Well that's what I said.
SeMartens wrote: it is easy to get the client IP-Address with
|
|
|
|