|
thanks for all the help .. i finally found the problem.. there was an issue clashing with my vs.. so i uninstall ie7 and now it works like magic.
|
|
|
|
|
Hi
I want to do some real time debugging on my development machine(WinXP). I wrote an simple ASP.Net application using Vs2005.net in which the default page is p6count.aspx. None of the machine in my office can access this page. Can any body tell me what settings i need to do to access this page from any other machine within my office ?
I am able to ping my machine from all other machine in my offcie.
Thanks
Shailesh
|
|
|
|
|
VS 2005 creates asp.net project and runs by default inside Cassini not your web server. When you run you application locally, you will see something like http://localhost/<port number="">/p6count.aspx. That is where Cassini serving up your application
what you need to access the page from different machine is http://<your machine="" name="">/<port number="">/p6count.aspx
Yusuf
|
|
|
|
|
What is the Cassini BTW? The problem was with the winXP firewall. I made it off now i can access the p6count.aspx page.
Thanks any way for your time.
|
|
|
|
|
aman2006 wrote: What is the Cassini BTW?
Cassini is a *hidden* web server. It is used by Visual studio 2005 to host you development applications. Prior to VS 2005 Microsoft used to create the actual web applications inside IIS. With 2005 it does not get created until you are ready to publish it.
Here is more info on Cassisni. ^
Yusuf
|
|
|
|
|
I want to insert checkbox data into the database if the checkbox is checked. If the checkbox is not checked then don't insert the checkbox data. Mt code isn't working. Here is the code:
myCommand.Parameters.Add("Department", Data.SqlDbType.VarChar).Value = Department<br />
myCommand.Parameters.Add("Quality", Data.SqlDbType.VarChar).Value = Quality<br />
myCommand.Parameters.Add("Interpersonal", Data.SqlDbType.VarChar).Value = Interpersonal<br />
myCommand.Parameters.Add("Timelines", Data.SqlDbType.VarChar).Value = Timelines<br />
If CheckBox1.Checked Then<br />
myCommand.Parameters.Add("NA", Data.SqlDbType.VarChar).Value = NA<br />
End If<br />
myCommand.Parameters.Add("Comment", Data.SqlDbType.VarChar).Value = Comment<br />
myCommand.Parameters.Add("Domain_Login", Data.SqlDbType.VarChar).Value = UserName<br />
myCommand.Connection = myConnection<br />
myCommand.ExecuteNonQuery()
|
|
|
|
|
is NA an optional parameter in your proc ? What does 'not working' mean ? Does it blow up ? Does it give an unexpected result ? Does it never work out that checkbox1 is checked ?
BTW, for you to put this code in your presentation layer is bad design. I guess the fact that you have a checkbox1 means this is not production code, but still, it's better to form good habits than bad.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to create a Sharepoint web part that will consist of a gridview control. I cannot see any errors when debugging, and no exceptions (apparently) are thrown.
protected override void RenderContents(HtmlTextWriter writer)
{
writer.Write("<table border=\"0\" width = \"100%\"><tr><th>Test Web Part</th></tr><tr><td>");
gv_JobData.RenderControl(writer);
writer.Write("</td></tr><tr><td>");
lbl_Test.RenderControl(writer);
writer.Write("</td></tr></table>");
}
I get the table with it's title, and the test label, but absolutely nothing for the gridview. As I am getting no errors or exceptions, I'm a bit stuck. Any suggestions as to how to find out why the gridviews RenderControl method is called happily, but nothing gets rendered?
|
|
|
|
|
I moved all of my shared dses onto my master page, but have since discovered that by doing so in the designer the GridViews on my other pages (web content form) can't see them. Everything works fine at runtime though.
Is there a more graceful workaround at design time than copy/pasting the data source to refresh the schema, etc?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Well, I guess what I need to ask is, why are you using hte designer, and why are you using the designer as a place to store things that have nothing to do with the UI ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a UserControl based on a GridView. In a table of four columns, I have two instances of this user control, in columns 2 and four. Regardless of how I specifiy my table sizing (15%, 25%, 15%, 25%), or absolute sizing, the user controls still expand to the size of the text in the widest row in the GridView.
What is the proper way to constrain the size of my u.c., and its contained GridView, to its container, a TD element.
|
|
|
|
|
If length of the text is your problem then you can consider Text Wrapping in that place.
Thanks,
Arindam D Tewary
|
|
|
|
|
The GridView doesn't respect any attempts to fix its column size. Eventually I went with a table and a Repeater.
|
|
|
|
|
Hi Brady,
So you have a repeater and inside you have Table defined as template right?
Therfore, in table cell(i.e in <TD> of template table inside repeater) you must set text wrapping property to true. Effecttively the goal is "the template table should be able to wrap your text if text lenght more than cell width"
Thanks,
Arindam D Tewary
|
|
|
|
|
Thanks, but it works as expected in the repeater. It's the GridView I have problems with.
|
|
|
|
|
Hi All...
Please help me with the code to display Context Menu... I am using VS2003 and vb.net.
Thanks and Regards,
Rinjin
|
|
|
|
|
|
Hello Parwej...
Thanks for ur response...
I was following the same article. However, the author says "Assuming the existence of my ASP.NET ContextMenu control, let's see how to use it to add one or more context menus to an ASP.NET page". What does he mean here....
I am hardly 4 months old in .net and while trying to create a treeview I had to download certain dll's etc to get it to work in VS2003...similarly is there anny such things to be downloaded or installed and then continue.... everything seems very confusing to me at present.... Hope U will understand my state....
Thanks and Regards,
Reena
|
|
|
|
|
The VS2003 does not support the Treeview so that you need some third party component to do this.
I found one more URL please through this it might be help you:
http://www.cool-tips.net/tree1.aspx[^]
Why you are not using the VS2005 ? That will solve your every problems.
Actually problem is that i do not have VS2003 so i can not do so R&D with this problem.
Let me know if you further help.
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
Thanks Parwej for all ur help so far....
AJAX is soemthing I shouldnt be thinking at this stage....Maybe... However, I followed teh article mentioned in ur first thread and soemhow got it to work... however now the issue is when I reight click it displays the menu.... but I also want to high light the row in the grid that is selected...otherwise the user will nto know which row he selected right....This is my current issue..
Hope U can help...
We arent using VS2005 as our Teamlead has no exp using 2005 and has only worked on 2003...so he doesnt want us to experiment due to lack of time.... I know... sounds funny!!!
Regards,
Reena
|
|
|
|
|
Hi Reena, Good work that you are able to implement it!!!
I read that article again and found there a property RolloverColor which mention in section Figure 1 Members of the ContextMenu Control.
Probably you are not setting this property.
Can you recheck it and let me know ?
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
Hi all,
I am stuck around in a weird situation.I have an order form which lets user to select items. I have an Image button to submit the information.
The problem that i m facing is that some times the user double clicks the submit button or presses enter button twice. Hence the event occurs twice and duplicate records are saved.when i googled for the problems , i found the following solution where we disable the button at client side
[^] or open up a layer to prevent user from doing anything after clicking the submit button. But creating a layer doesn`t help if the user presses the enter key.
I also found a solution that explores the UseSubmitBehavior property
[^], but its only available for Button control and doesn`t support Image Button.
Does any body have any other options or at least some idea as to how to make the above functionality work?????
When you fail to plan, you are planning to fail.
|
|
|
|
|
Are you inserting into a database? If so you can check when inserting that you don't put in a duplicate record with in a time frame of 30 seconds.
|
|
|
|
|
I created a form in asp.net, when users clicks submit (after validation), i want the form to be saved to database, any help???
Ferron
|
|
|
|
|
Ok u need help following will help you
.
.
.
.
Go and read a book, try it, and if u get any prob post it here
When you fail to plan, you are planning to fail.
|
|
|
|