|
You cannot convert it into int . The maximum value of an int is 2,147,483,647.
Alternatively, if needed, try using UInt (4,294,967,295) or long (9,223,372,036,854,775,807).
|
|
|
|
|
Hi,
i'm using a AJAX SlideShowExtender. i'm having a multiline textbox for commenting images by clicking stop button(so that it will save for that image). Now i want to get the details of comments to be displayed(if comments already saved) during the slideshow automatically. Anyone have idea plz let me Know.
thanks in advance.....
|
|
|
|
|
hi to all,
any one give the solution to me,normally grid view contents displays and expand in row-wise.i need how to display the grid content and expand in column-wise.
M.Saravanakumar
SunArk-GmbH.
|
|
|
|
|
kumaranvnr wrote: display the grid content and expand in column-wise
That should be simpler than expanding row-wise. All you need to play with column visibility. Pre-populate the column at the time of grid content bind and based on an event just(click of a plus sign or so) set the visibility of the column to true. Try out!
|
|
|
|
|
how to create database with sql connection in vb.net
|
|
|
|
|
Wrong forum. Try the VB forum.
But before you try that, try Googling "VB.NET database connection", that currently has 5,280,000 results.
|
|
|
|
|
In addition to what Keith said, you already asked in QA no need to ask again.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
We should have proper name for this triumvirate:
- Wrong forum
- Easily Googled
- Cross posted
Only needs to add bumping via repost FTW!
|
|
|
|
|
Keith Barrow wrote: proper name
I think it's called a trifecta
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
shouldn't it be a pentavirate(?) with these additions?
- Urgentz
- Gimme codez
|
|
|
|
|
I'm currently taking an HTML course and I'm seriously kicking myself with this one. Our professor released a very basic form in HTML (I will be including it at the end of the message) and it's pretty much a form to create an account and it asks some basic questions such as age and transport method.
He then released a continuation to that page which grabs all the information and depending on what you answered you get certain information on the screen. Pretty much an if exercise. He had us add a couple more options to test our coding skills and I cannot get the information to carry over.
Form:
<form>
First name: <input type="text" name="firstname" />
Last name: <input type="text" name="lastname" />
Username: <input typ="text" name="user" />
Password: <input type="password" name="pwd" />
<input type="radio" name="sex" value="male" /> Male
<input type="radio" name="sex" value="female" /> Female
<input type="radio" name="mstatus" value="single" /> Single
<input type="radio" name="mstatus" value="married" /> Married
<input type="checkbox" name="vhicle" value"Bike" /> I have a bike
<input type="checkbox" name="vhicle" value"Car" /> I have a car
<input type="checkbox" name="pet" value"dog" />I have a dog
<input type="checkbox" name="pet" value"cat" />I have a cat
<input type="submit" value="Submit" />
<form name="input" action="html_form_action.asp" method="get">
ASP continuation code:
pwd = Request.Form("pwd")
Response.Write("The user's name is " & firstname & " ")
Response.Write("The user's last name is " & lastname & " ")
Response.Write("The username is " & user & " ")
Response.Write("Password: " & pwd & " ")
operacion1=request.form("sex")
if (operacion1="male") then
response.write("Is a man.")
else
response.write("Is a woman.")
end if
operacion2=request.form("age")
if (operacion2="15-25") then
Response.Write("Is young.")
else
Response.Write("Is old.")
end if
operacion3=request.form("vhicle")
if (operacion3="Bike") then
Response.Write("Is cyclist.")
else
Response.Write("Is a driver.")
else
end if
operacion4=request.form("mstatus")
if (operacion4="single") then
Response.Write("Needs a blind date.")
else
Response.Write("Rest in peace.")
end if
operacion5=request.form("pet")
if (operacion5="dog") then
Response.Write("Hates cats.")
else
Response.Write("Hates dogs.")
end if
%>
I'm very new to this and I recognize that is very basic. This is just homework, not worth any points, voluntary for those who don't want to damage their conscience with helping another cheat. I'm taking the course in Spanish so don't b throwned off by some of the odd sounding variables.
|
|
|
|
|
I'm sorry, but what exactly is your question?
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
After I input all the information on the htm form, the submit button does not carry out my information. It just refreshes itself and the same form appears on screen.
|
|
|
|
|
So it depends what is before line:
ASP continuation code:
After you click submit, page reloads and quite a few events are fired that will let you handle information posted on form. You should override page_load event possibly checking the if it was postback and then process the information.
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
That's a whole other from the HTM form should end in . I worked with the code a little last night and fixed a lot of errors, but from what I understand they had nothing to do with the asp file retaining my info and displaying the information.
|
|
|
|
|
Oh, it looks like I completly misunderstood your problem. Your code is classic ASP, not ASP.NET, right?
In that case I'm affraid I can't help you as I have very little experience with it
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
deflinek wrote: Oh, it looks like I completly misunderstood your problem. Your code is classic ASP, not ASP.NET, right?
In that case I'm affraid I can't help you as I have very little experience with it
Oh I seriously did not noticed the .NET. I'm apologize for posting on the wrong forum. If I could get a mod tom move this to the right section this would be great. Thanks for trying to take on my problem. I'm still trying to figure this out lol.
|
|
|
|
|
how to fetch in linq to sql server
soumyashree sahoo
|
|
|
|
|
|
hi guys. im kinda new here. so please help me on my first web page using asp.net.
i cant figure out to insert an image into a table please help
|
|
|
|
|
Well, you need to design a webpage where you place a table and then image in one of it's row/column.
Example:
<table>
<tr>
<td>
<asp:Image ID="myImage" runat="source" ImageUrl="~/MyPicture.png" />
</td>
</tr>
</table>
|
|
|
|
|
Hi Guys,
I am loading buttons on a page load event dynamically. The buttons are added to a placeholder control on a aspx page. The problem I am having is that the dynamically created button event below (topic_Click) doesn't get fired.
Bascially, I am trying to add topics to aobjective.
Could you please help me. I would highly appreciate it.
protected void Page_Load(object sender, EventArgs e)
{
if (Session["s"] == null)
{
AddObjective();
AddTopic();
}
else if (Session["s"] != null)
{
List<Panel> list = new List<Panel>();
list = Session["s"] as List<Panel>;
foreach (var item in list)
{
AddtoPlaceHolder(item);
}
}
}
private void AddObjective()
{
Panel panel = new Panel();
Button objective = new Button();
objective.Text = "Add objective";
objective.Click += new EventHandler(objective_Click);
panel.Controls.Add(objective);
placeholder.Controls.Add(panel);
AddtoPlaceHolder(panel);
}
void AddtoPlaceHolder(Panel panel)
{
if (Session["s"] == null)
{
List<Panel> list = new List<Panel>();
list.Add(panel);
Session.Add("s", list);
}
else if(Session["s"] !=null)
{
List<Panel> list = Session["s"] as List<Panel>;
list.Add(panel);
Session.Add("s", list);
}
}
void objective_Click(object sender, EventArgs e)
{
if (Session["s"] != null)
{
AddObjective();
}
}
void topic_Click(object sender, EventArgs e)
{
throw new NotImplementedException(); =======> Problem doesn't execute
}
private void AddTopic()
{
Panel paneltopic = new Panel();
paneltopic.ID = Guid.NewGuid().ToString();
Button topic = new Button();
topic.ID = Guid.NewGuid().ToString();
topic.Text = "Insert topic";
topic.Click += new EventHandler(topic_Click);
paneltopic.Controls.Add(topic);
placeholder.Controls.Add(paneltopic);
AddtoPlaceHolder(paneltopic);
}
|
|
|
|
|
protected void topic_Click(object sender, EventArgs e)
{
throw new NotImplementedException(); =======> Problem doesn't execute
}
private void AddTopic()
{
Panel paneltopic = new Panel();
paneltopic.ID = Guid.NewGuid().ToString();
Button topic = new Button();
topic.ID = Guid.NewGuid().ToString();
topic.Text = "Insert topic";
topic.Click += new System.EventHandler(this.topic_Click);
paneltopic.Controls.Add(topic);
placeholder.Controls.Add(paneltopic);
AddtoPlaceHolder(paneltopic);
}
[code behind event handlers^]
|
|
|
|
|
if you copy and past the code from another page visual studio may change the name of the button check the the ButtonID if its correct with the code
|
|
|
|
|
You should probably tell the OP that, and not me.
The button ID has nothing to do with generating a postback to the server. In fact, you don't need the .ID attribute in code behind, it's there to support java script and css on the client side.
His problem is that he didn't generate a new event object, and just made a reference to an uninitialized event object.
|
|
|
|